Skip to content
Snippets Groups Projects
Commit 2eef786f authored by Jakob Olsson's avatar Jakob Olsson
Browse files

dongle_infrastructure: use define-like variable for strncmp rather than string

parent 5bcc39d4
No related branches found
No related tags found
No related merge requests found
......@@ -1850,8 +1850,7 @@ struct ubus_object *dongle_create_dynamic_object(struct dongle_container *dev)
debug_print("object name %s\n", obj->name);
dynamic_methods = obj_methods;
if (strncmp(dev->usb.if_name, "eth5", 5) == 0) {
if (strncmp(dev->usb.if_name, HILINK, 5) == 0) {
dynamic_methods[11].policy = create_apn_policy_huawei;
dynamic_methods[11].n_policy = ARRAY_SIZE(create_apn_policy_huawei);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment