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
91
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;
}