| /OK3568_Linux_fs/app/forlinx/quectelCM/ |
| H A D | qmap_bridge_mode.c | 51 …st char *ifname = profile->qmapnet_adapter[0] ? profile->qmapnet_adapter : profile->usbnet_adapter; in ql_bridge_mode_detect() 113 snprintf(filename, sizeof(filename), "/sys/class/net/%s/qmi/rawip", profile->usbnet_adapter); in ql_enable_qmi_wwan_rawip_mode() 159 … snprintf(filename, sizeof(filename), "/sys/class/net/%s/bridge_mode", profile->usbnet_adapter); in ql_set_driver_bridge_mode() 174 …tf(pl->linkname, sizeof(pl->linkname), "/sys/class/net/%s/device/driver", profile->usbnet_adapter); in ql_qmi_qmap_mode_detect() 198 …printf(pl->filename, sizeof(pl->filename), "/sys/class/net/%s/qmap_mode", profile->usbnet_adapter); in ql_qmi_qmap_mode_detect() 212 …filename), "/sys/class/net/%s/device/driver/module/parameters/qmap_mode", profile->usbnet_adapter); in ql_qmi_qmap_mode_detect() 231 "%.16s.%d", profile->usbnet_adapter, profile->muxid - 0x80); in ql_qmi_qmap_mode_detect() 234 … strncpy(profile->qmapnet_adapter, profile->usbnet_adapter, sizeof(profile->qmapnet_adapter)); in ql_qmi_qmap_mode_detect() 248 …intf(pl->filename, sizeof(pl->filename), "/sys/class/net/%s/qmi/add_mux", profile->usbnet_adapter); in ql_qmi_qmap_mode_detect() 251 dbg_time("If use QMAP by /sys/class/net/%s/qmi/add_mux", profile->usbnet_adapter); in ql_qmi_qmap_mode_detect() [all …]
|
| H A D | udhcpc_netlink.c | 54 snprintf(link_file, sizeof(link_file), "/sys/class/net/%s/link_state", profile->usbnet_adapter); in ql_set_driver_link_state() 82 if_link_down(profile->usbnet_adapter); in ql_set_driver_link_state() 91 char *ifname = profile->usbnet_adapter; in udhcpc_start() 105 if (strcmp(ifname, profile->usbnet_adapter)) in udhcpc_start() 107 if_link_up(profile->usbnet_adapter); in udhcpc_start() 167 char *ifname = profile->usbnet_adapter; in udhcpc_stop()
|
| H A D | main.c | 733 strncpy(profile.usbnet_adapter, argv[opt++], sizeof(profile.usbnet_adapter)); in main() 782 if (!(profile.qmichannel[0]) || !(profile.usbnet_adapter[0])) { in main() 784 char usbnet_adapter[32+1] = {'\0'}; in main() local 786 if (profile.usbnet_adapter[0]) in main() 787 strncpy(usbnet_adapter, profile.usbnet_adapter, sizeof(usbnet_adapter)); in main() 789 if (qmidevice_detect(qmichannel, usbnet_adapter, sizeof(qmichannel), &profile)) { in main() 792 else if (mhidevice_detect(qmichannel, usbnet_adapter, &profile)) { in main() 801 strncpy(profile.usbnet_adapter, usbnet_adapter, sizeof(profile.usbnet_adapter)); in main() 802 ql_get_netcard_driver_info(profile.usbnet_adapter); in main()
|
| H A D | device.c | 260 BOOL qmidevice_detect(char *qmichannel, char *usbnet_adapter, unsigned bufsize, PROFILE_T *profile)… in qmidevice_detect() argument 316 snprintf(usbnet_adapter, bufsize, "%s", n); in qmidevice_detect() 328 if (usbnet_adapter[0] && strcmp(usbnet_adapter, netcard)) in qmidevice_detect() 368 snprintf(usbnet_adapter, bufsize, "%s", netcard); in qmidevice_detect() 370 dbg_time("Auto find usbnet_adapter = %s", usbnet_adapter); in qmidevice_detect() 376 if (qmichannel[0] == '\0' || usbnet_adapter[0] == '\0') { in qmidevice_detect() 377 dbg_time("network interface '%s' or qmidev '%s' is not exist", usbnet_adapter, qmichannel); in qmidevice_detect() 387 int mhidevice_detect(char *qmichannel, char *usbnet_adapter, PROFILE_T *profile) { in mhidevice_detect() argument 389 strcpy(usbnet_adapter, "pcie_mhi0"); in mhidevice_detect() 391 strcpy(usbnet_adapter, "rmnet_mhi0"); in mhidevice_detect()
|
| H A D | udhcpc_script.c | 97 profile->usbnet_adapter, in udhcpc_start() 98 profile->qmapnet_adapter ? profile->qmapnet_adapter : profile->usbnet_adapter, in udhcpc_start() 128 profile->usbnet_adapter, in udhcpc_stop() 129 profile->qmapnet_adapter ? profile->qmapnet_adapter : profile->usbnet_adapter, in udhcpc_stop()
|
| H A D | udhcpc.c | 188 snprintf(link_file, sizeof(link_file), "/sys/class/net/%s/link_state", profile->usbnet_adapter); in ql_set_driver_link_state() 207 && strcmp(profile->qmapnet_adapter, profile->usbnet_adapter)) { in ql_set_driver_link_state() 213 snprintf(link_file, sizeof(link_file), "ifconfig %s down", profile->usbnet_adapter); in ql_set_driver_link_state() 471 char *ifname = profile->usbnet_adapter; in udhcpc_start() 484 if (strcmp(ifname, profile->usbnet_adapter)) { in udhcpc_start() 485 snprintf(shell_cmd, sizeof(shell_cmd), "ifconfig %s up", profile->usbnet_adapter); in udhcpc_start() 669 char *ifname = profile->usbnet_adapter; in udhcpc_stop()
|
| H A D | QMIThread.h | 177 char usbnet_adapter[32]; member 302 extern BOOL qmidevice_detect(char *qmichannel, char *usbnet_adapter, unsigned bufsize, PROFILE_T *p… 303 int mhidevice_detect(char *qmichannel, char *usbnet_adapter, PROFILE_T *profile);
|
| H A D | util.c | 375 strncpy(ifr.ifr_name, profile->usbnet_adapter, IFNAMSIZ); in ql_get_driver_rmnet_info() 404 strncpy(ifr.ifr_name, profile->usbnet_adapter, IFNAMSIZ); in ql_set_driver_qmap_setting()
|