Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mdmngr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
IOPSYS
mdmngr
Commits
fa741c12
Commit
fa741c12
authored
7 years ago
by
Jakob Olsson
Browse files
Options
Downloads
Patches
Plain Diff
add some missing declarations from libmobile_wrapper, correction to calls
parent
744299c9
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dongle_infrastructure.c
+9
-9
9 additions, 9 deletions
dongle_infrastructure.c
libmobile_wrapper.h
+6
-0
6 additions, 0 deletions
libmobile_wrapper.h
with
15 additions
and
9 deletions
dongle_infrastructure.c
+
9
−
9
View file @
fa741c12
...
@@ -79,7 +79,7 @@ int set_pin(struct ubus_context *ctx, struct ubus_object *obj,
...
@@ -79,7 +79,7 @@ int set_pin(struct ubus_context *ctx, struct ubus_object *obj,
goto
fail_input
;
goto
fail_input
;
}
}
if
(
!
pin_status
(
&
bb
,
global_dev
->
ip
))
{
if
(
!
pin_status
(
&
bb
,
global_dev
))
{
ubus_send_reply
(
ctx
,
req
,
bb
.
head
);
ubus_send_reply
(
ctx
,
req
,
bb
.
head
);
goto
disabled
;
goto
disabled
;
}
}
...
@@ -189,7 +189,7 @@ int enable_pin(struct ubus_context *ctx, struct ubus_object *obj,
...
@@ -189,7 +189,7 @@ int enable_pin(struct ubus_context *ctx, struct ubus_object *obj,
goto
fail_input
;
goto
fail_input
;
}
}
if
(
pin_status
(
&
bb
,
global_dev
->
ip
))
{
if
(
pin_status
(
&
bb
,
global_dev
))
{
debug_print
(
"pin already enabled"
);
debug_print
(
"pin already enabled"
);
ubus_send_reply
(
ctx
,
req
,
bb
.
head
);
ubus_send_reply
(
ctx
,
req
,
bb
.
head
);
goto
enabled
;
goto
enabled
;
...
@@ -244,7 +244,7 @@ int verify_pin(struct ubus_context *ctx, struct ubus_object *obj,
...
@@ -244,7 +244,7 @@ int verify_pin(struct ubus_context *ctx, struct ubus_object *obj,
goto
fail_input
;
goto
fail_input
;
}
}
if
(
!
pin_status
(
&
bb
,
global_dev
->
ip
))
{
if
(
!
pin_status
(
&
bb
,
global_dev
))
{
debug_print
(
"pin disabled"
);
debug_print
(
"pin disabled"
);
ubus_send_reply
(
ctx
,
req
,
bb
.
head
);
ubus_send_reply
(
ctx
,
req
,
bb
.
head
);
goto
disabled
;
goto
disabled
;
...
@@ -471,7 +471,7 @@ int connect_network(struct ubus_context *ctx, struct ubus_object *obj,
...
@@ -471,7 +471,7 @@ int connect_network(struct ubus_context *ctx, struct ubus_object *obj,
{
{
struct
json_object
*
response
;
struct
json_object
*
response
;
response
=
mobile_connect_network
_zte
(
global_dev
->
ip
);
response
=
mobile_connect_network
(
global_dev
);
if
(
!
response
)
if
(
!
response
)
goto
fail_unknown
;
goto
fail_unknown
;
...
@@ -487,7 +487,7 @@ int disconnect_network(struct ubus_context *ctx, struct ubus_object *obj,
...
@@ -487,7 +487,7 @@ int disconnect_network(struct ubus_context *ctx, struct ubus_object *obj,
{
{
struct
json_object
*
response
;
struct
json_object
*
response
;
response
=
mobile_disconnect_network
_zte
(
global_dev
->
ip
);
response
=
mobile_disconnect_network
(
global_dev
);
if
(
!
response
)
if
(
!
response
)
goto
fail_unknown
;
goto
fail_unknown
;
...
@@ -503,7 +503,7 @@ int modem_state(struct ubus_context *ctx, struct ubus_object *obj,
...
@@ -503,7 +503,7 @@ int modem_state(struct ubus_context *ctx, struct ubus_object *obj,
{
{
struct
json_object
*
response
;
struct
json_object
*
response
;
response
=
mobile_get_modem_state
_zte
(
global_dev
->
ip
);
response
=
mobile_get_modem_state
(
global_dev
);
if
(
!
response
)
if
(
!
response
)
goto
fail_unknown
;
goto
fail_unknown
;
...
@@ -519,7 +519,7 @@ int enable_roaming(struct ubus_context *ctx, struct ubus_object *obj,
...
@@ -519,7 +519,7 @@ int enable_roaming(struct ubus_context *ctx, struct ubus_object *obj,
{
{
struct
json_object
*
response
;
struct
json_object
*
response
;
response
=
mobile_enable_roaming
_zte
(
global_dev
->
ip
);
response
=
mobile_enable_roaming
(
global_dev
);
if
(
!
response
)
if
(
!
response
)
goto
fail_unknown
;
goto
fail_unknown
;
...
@@ -535,7 +535,7 @@ int disable_roaming(struct ubus_context *ctx, struct ubus_object *obj,
...
@@ -535,7 +535,7 @@ int disable_roaming(struct ubus_context *ctx, struct ubus_object *obj,
{
{
struct
json_object
*
response
;
struct
json_object
*
response
;
response
=
mobile_disable_roaming
_zte
(
global_dev
->
ip
);
response
=
mobile_disable_roaming
(
global_dev
);
if
(
!
response
)
if
(
!
response
)
goto
fail_unknown
;
goto
fail_unknown
;
...
@@ -551,7 +551,7 @@ int roam_status(struct ubus_context *ctx, struct ubus_object *obj,
...
@@ -551,7 +551,7 @@ int roam_status(struct ubus_context *ctx, struct ubus_object *obj,
{
{
struct
json_object
*
response
;
struct
json_object
*
response
;
response
=
mobile_get_roam_status
_zte
(
global_dev
->
ip
);
response
=
mobile_get_roam_status
(
global_dev
);
if
(
!
response
)
if
(
!
response
)
goto
fail_unknown
;
goto
fail_unknown
;
...
...
This diff is collapsed.
Click to expand it.
libmobile_wrapper.h
+
6
−
0
View file @
fa741c12
...
@@ -34,5 +34,11 @@ struct json_object *mobile_set_apn_profile(struct device *dev, char *name);
...
@@ -34,5 +34,11 @@ struct json_object *mobile_set_apn_profile(struct device *dev, char *name);
struct
json_object
*
mobile_create_apn_profile
(
struct
device
*
dev
,
char
*
profile_name
,
char
*
wan_apn
,
char
*
pdp_type
);
struct
json_object
*
mobile_create_apn_profile
(
struct
device
*
dev
,
char
*
profile_name
,
char
*
wan_apn
,
char
*
pdp_type
);
struct
json_object
*
mobile_get_current_apn
(
struct
device
*
dev
);
struct
json_object
*
mobile_get_current_apn
(
struct
device
*
dev
);
struct
json_object
*
mobile_get_rssi
(
struct
device
*
dev
);
struct
json_object
*
mobile_get_rssi
(
struct
device
*
dev
);
struct
json_object
*
mobile_connect_network
(
struct
device
*
dev
);
struct
json_object
*
mobile_disconnect_network
(
struct
device
*
dev
);
struct
json_object
*
mobile_get_modem_state
(
struct
device
*
dev
);
struct
json_object
*
mobile_enable_roaming
(
struct
device
*
dev
);
struct
json_object
*
mobile_disable_roaming
(
struct
device
*
dev
);
struct
json_object
*
mobile_get_roam_status
(
struct
device
*
dev
);
struct
json_object
*
mobile_get_pin_status
(
struct
device
*
dev
);
struct
json_object
*
mobile_get_pin_status
(
struct
device
*
dev
);
#endif
#endif
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment