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
120
}
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);
return NULL;