更新
This commit is contained in:
parent
8f02fbfe75
commit
694237b196
@ -445,11 +445,11 @@ int mhidevice_detect(char *qmichannel, char *usbnet_adapter, PROFILE_T *profile)
|
||||
}
|
||||
|
||||
// 解决硬编码导致不兼容hv问题
|
||||
snprintf(path, sizeof(path), "%s/%s_IPCR", rootdir, d_name);
|
||||
snprintf(path, sizeof(path), "%s/%s_IPCR", rootdir, ent->d_name);
|
||||
if (access(path, F_OK)) {
|
||||
snprintf(path, sizeof(path), "%s/%s_QMI0", rootdir, d_name);
|
||||
snprintf(path, sizeof(path), "%s/%s_QMI0", rootdir, ent->d_name);
|
||||
if (access(path, F_OK)) {
|
||||
snprintf(path, sizeof(path), "%s/%s_MBIM", rootdir, d_name);
|
||||
snprintf(path, sizeof(path), "%s/%s_MBIM", rootdir, ent->d_name);
|
||||
if (!access(path, F_OK))
|
||||
software_interface = SOFTWARE_MBIM;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user