Newer
Older
struct json_object *mobile_set_pin(struct device *dev, char *current_pin, char *new_pin)
if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_set_pin_zte(dev->ip, current_pin, new_pin);
else if (strcmp(dev->usb.if_name, "eth5") == 0)
struct json_object *mobile_disable_pin(struct device *dev, char *pin)
{
if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_disable_pin_zte(dev->ip, pin);
else if (strcmp(dev->usb.if_name, "eth5") == 0)
//return mobile_disable_pin_hilink(dev->ip, pin);
struct json_object *mobile_verify_pin(struct device *dev, char *pin)
if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_verify_pin_zte(dev->ip, pin);
else if (strcmp(dev->usb.if_name, "eth5") == 0)
//return mobile_verify_pin_hilink(dev->ip, pin);
struct json_object *mobile_enable_pin(struct device *dev, char *pin)
{
if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_enable_pin_zte(dev->ip, pin);
else if (strcmp(dev->usb.if_name, "eth5") == 0)
//return mobile_enable_pin_hilink(dev->ip, pin);
struct json_object *mobile_get_remaining_tries(struct device *dev)
{
if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_get_remaining_tries_zte(dev->ip);
else if (strcmp(dev->usb.if_name, "eth5") == 0)
//return mobile_get_remaining_tries_hilink(dev->ip);
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
struct json_object *mobile_unlock_sim(struct device *dev, char *pin, char *puk)
{
if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_unlock_sim_zte(dev->ip, pin, puk);
else if (strcmp(dev->usb.if_name, "eth5") == 0)
//return mobile_unlock_sim_hilink(dev->ip, pin, puk);
return NULL;
}
struct json_object *mobile_get_apn_profiles(struct device *dev)
{
if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_get_apn_profiles_zte(dev->ip);
else if (strcmp(dev->usb.if_name, "eth5") == 0)
//return mobile_get_apn_profiles_hilink(dev->ip);
return NULL;
}
struct json_object *mobile_delete_apn_profile(struct device *dev, char *name)
{
if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_delete_apn_profile_zte(dev->ip, name);
else if (strcmp(dev->usb.if_name, "eth5") == 0)
//return mobile_delete_apn_profile_hilink(dev->ip, name);
return NULL;
}
struct json_object *mobile_set_apn_profile(struct device *dev, char *name)
{
if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_set_apn_profile_zte(dev->ip, name);
else if (strcmp(dev->usb.if_name, "eth5") == 0)
//return mobile_set_apn_profile_hilink(dev->ip, name);
return NULL;
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
}
struct json_object *mobile_create_apn_profile(struct device *dev, char *profile_name, char *wan_apn, char *pdp_type)
{
if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_create_apn_profile_zte(dev->ip, profile_name, wan_apn, pdp_type);
else if (strcmp(dev->usb.if_name, "eth5") == 0)
//return mobile_create_apn_profile_hilink(dev->ip, profile_name, wan_apn, pdp_type);
return NULL;
}
struct json_object *mobile_get_current_apn(struct device *dev)
{
if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_get_current_apn_zte(dev->ip);
else if (strcmp(dev->usb.if_name, "eth5") == 0)
//return mobile_get_current_apn_hilink(dev->ip);
return NULL;
}
struct json_object *mobile_get_rssi(struct device *dev)
{
if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_get_rssi_zte(dev->ip);
else if (strcmp(dev->usb.if_name, "eth5") == 0)
//return mobile_get_rssi_hilink(dev->ip);
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
return NULL;
}
struct json_object *mobile_connect_network(struct device *dev)
{
if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_connect_network_zte(dev->ip);
else if (strcmp(dev->usb.if_name, "eth5") == 0)
//return mobile_connect_network_hilink(dev->ip);
return NULL;
}
struct json_object *mobile_disconnect_network(struct device *dev)
{
if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_disconnect_network_zte(dev->ip);
else if (strcmp(dev->usb.if_name, "eth5") == 0)
//return mobile_disconnect_network_hilink(dev->ip);
return NULL;
}
struct json_object *mobile_get_modem_state(struct device *dev)
{
if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_get_modem_state_zte(dev->ip);
else if (strcmp(dev->usb.if_name, "eth5") == 0)
//return mobile_get_modem_state_hilink(dev->ip);
return NULL;
}
struct json_object *mobile_enable_roaming(struct device *dev)
{
if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_enable_roaming_zte(dev->ip);
else if (strcmp(dev->usb.if_name, "eth5") == 0)
//return mobile_enable_roaming_hilink(dev->ip);
return NULL;
}
struct json_object *mobile_disable_roaming(struct device *dev)
{
if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_disable_roaming_zte(dev->ip);
else if (strcmp(dev->usb.if_name, "eth5") == 0)
//return mobile_disable_roaming_hilink(dev->ip);
return NULL;
}
struct json_object *mobile_get_roam_status(struct device *dev)
{
if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_get_roam_status_zte(dev->ip);
else if (strcmp(dev->usb.if_name, "eth5") == 0)
//return mobile_get_roam_status_hilink(dev->ip);