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
48f62656
Commit
48f62656
authored
7 years ago
by
Arun Muthusamy
Browse files
Options
Downloads
Patches
Plain Diff
rm static var declaration
parent
ddfe15c1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libmobile_wrapper.c
+8
-8
8 additions, 8 deletions
libmobile_wrapper.c
with
8 additions
and
8 deletions
libmobile_wrapper.c
+
8
−
8
View file @
48f62656
...
@@ -5,7 +5,7 @@ struct json_object *mobile_set_pin(struct device *dev, char *current_pin, char *
...
@@ -5,7 +5,7 @@ struct json_object *mobile_set_pin(struct device *dev, char *current_pin, char *
if
(
strcmp
(
dev
->
usb
.
if_name
,
"usb0"
)
==
0
)
if
(
strcmp
(
dev
->
usb
.
if_name
,
"usb0"
)
==
0
)
return
mobile_set_pin_zte
(
dev
->
ip
,
current_pin
,
new_pin
);
return
mobile_set_pin_zte
(
dev
->
ip
,
current_pin
,
new_pin
);
else
if
(
strcmp
(
dev
->
usb
.
if_name
,
"eth5"
)
==
0
)
else
if
(
strcmp
(
dev
->
usb
.
if_name
,
"eth5"
)
==
0
)
return
mobile_set_pin_hilink
(
"12345678"
,
"12345678"
);
return
mobile_set_pin_hilink
(
current_pin
,
new_pin
);
return
NULL
;
return
NULL
;
}
}
...
@@ -15,7 +15,7 @@ struct json_object *mobile_disable_pin(struct device *dev, char *pin)
...
@@ -15,7 +15,7 @@ struct json_object *mobile_disable_pin(struct device *dev, char *pin)
if
(
strcmp
(
dev
->
usb
.
if_name
,
"usb0"
)
==
0
)
if
(
strcmp
(
dev
->
usb
.
if_name
,
"usb0"
)
==
0
)
return
mobile_disable_pin_zte
(
dev
->
ip
,
pin
);
return
mobile_disable_pin_zte
(
dev
->
ip
,
pin
);
else
if
(
strcmp
(
dev
->
usb
.
if_name
,
"eth5"
)
==
0
)
else
if
(
strcmp
(
dev
->
usb
.
if_name
,
"eth5"
)
==
0
)
return
mobile_disable_pin_hilink
(
"12345678"
);
return
mobile_disable_pin_hilink
(
pin
);
return
NULL
;
return
NULL
;
}
}
...
@@ -25,7 +25,7 @@ struct json_object *mobile_verify_pin(struct device *dev, char *pin)
...
@@ -25,7 +25,7 @@ struct json_object *mobile_verify_pin(struct device *dev, char *pin)
if
(
strcmp
(
dev
->
usb
.
if_name
,
"usb0"
)
==
0
)
if
(
strcmp
(
dev
->
usb
.
if_name
,
"usb0"
)
==
0
)
return
mobile_verify_pin_zte
(
dev
->
ip
,
pin
);
return
mobile_verify_pin_zte
(
dev
->
ip
,
pin
);
else
if
(
strcmp
(
dev
->
usb
.
if_name
,
"eth5"
)
==
0
)
else
if
(
strcmp
(
dev
->
usb
.
if_name
,
"eth5"
)
==
0
)
return
mobile_set_pin_hilink
(
"12345678"
,
"12345678"
);
return
mobile_set_pin_hilink
(
pin
,
pin
);
return
NULL
;
return
NULL
;
}
}
...
@@ -35,7 +35,7 @@ struct json_object *mobile_enable_pin(struct device *dev, char *pin)
...
@@ -35,7 +35,7 @@ struct json_object *mobile_enable_pin(struct device *dev, char *pin)
if
(
strcmp
(
dev
->
usb
.
if_name
,
"usb0"
)
==
0
)
if
(
strcmp
(
dev
->
usb
.
if_name
,
"usb0"
)
==
0
)
return
mobile_enable_pin_zte
(
dev
->
ip
,
pin
);
return
mobile_enable_pin_zte
(
dev
->
ip
,
pin
);
else
if
(
strcmp
(
dev
->
usb
.
if_name
,
"eth5"
)
==
0
)
else
if
(
strcmp
(
dev
->
usb
.
if_name
,
"eth5"
)
==
0
)
return
mobile_enable_pin_hilink
(
"12345678"
);
return
mobile_enable_pin_hilink
(
pin
);
return
NULL
;
return
NULL
;
}
}
...
@@ -75,7 +75,7 @@ struct json_object *mobile_delete_apn_profile(struct device *dev, char *name)
...
@@ -75,7 +75,7 @@ struct json_object *mobile_delete_apn_profile(struct device *dev, char *name)
if
(
strcmp
(
dev
->
usb
.
if_name
,
"usb0"
)
==
0
)
if
(
strcmp
(
dev
->
usb
.
if_name
,
"usb0"
)
==
0
)
return
mobile_delete_apn_profile_zte
(
dev
->
ip
,
name
);
return
mobile_delete_apn_profile_zte
(
dev
->
ip
,
name
);
else
if
(
strcmp
(
dev
->
usb
.
if_name
,
"eth5"
)
==
0
)
else
if
(
strcmp
(
dev
->
usb
.
if_name
,
"eth5"
)
==
0
)
return
mobile_delete_apn_profile_hilink
(
1
);
return
mobile_delete_apn_profile_hilink
(
0
);
return
NULL
;
return
NULL
;
}
}
...
@@ -85,7 +85,7 @@ struct json_object *mobile_set_apn_profile(struct device *dev, char *name)
...
@@ -85,7 +85,7 @@ struct json_object *mobile_set_apn_profile(struct device *dev, char *name)
if
(
strcmp
(
dev
->
usb
.
if_name
,
"usb0"
)
==
0
)
if
(
strcmp
(
dev
->
usb
.
if_name
,
"usb0"
)
==
0
)
return
mobile_set_apn_profile_zte
(
dev
->
ip
,
name
);
return
mobile_set_apn_profile_zte
(
dev
->
ip
,
name
);
else
if
(
strcmp
(
dev
->
usb
.
if_name
,
"eth5"
)
==
0
)
else
if
(
strcmp
(
dev
->
usb
.
if_name
,
"eth5"
)
==
0
)
return
mobile_set_apn_profile_hilink
(
"arun"
,
"arun"
,
"arun"
,
"arun"
);
return
mobile_set_apn_profile_hilink
(
name
,
name
,
name
,
name
);
return
NULL
;
return
NULL
;
}
}
...
@@ -95,7 +95,7 @@ struct json_object *mobile_create_apn_profile(struct device *dev, char *profile_
...
@@ -95,7 +95,7 @@ struct json_object *mobile_create_apn_profile(struct device *dev, char *profile_
if
(
strcmp
(
dev
->
usb
.
if_name
,
"usb0"
)
==
0
)
if
(
strcmp
(
dev
->
usb
.
if_name
,
"usb0"
)
==
0
)
return
mobile_create_apn_profile_zte
(
dev
->
ip
,
profile_name
,
wan_apn
,
pdp_type
);
return
mobile_create_apn_profile_zte
(
dev
->
ip
,
profile_name
,
wan_apn
,
pdp_type
);
else
if
(
strcmp
(
dev
->
usb
.
if_name
,
"eth5"
)
==
0
)
else
if
(
strcmp
(
dev
->
usb
.
if_name
,
"eth5"
)
==
0
)
return
mobile_create_apn_profile_hilink
(
"test"
,
"test"
,
"test"
,
"test"
);
return
mobile_create_apn_profile_hilink
(
profile_name
,
profile_name
,
profile_name
,
profile_name
);
return
NULL
;
return
NULL
;
}
}
...
@@ -188,4 +188,4 @@ struct json_object *mobile_get_pin_status(struct device *dev)
...
@@ -188,4 +188,4 @@ struct json_object *mobile_get_pin_status(struct device *dev)
return
mobile_get_pin_status_hilink
();
return
mobile_get_pin_status_hilink
();
return
NULL
;
return
NULL
;
}
}
\ 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