AddDevice: class EF subclass 04 protocol 01
Test PR / Build (en_US) (pull_request) Successful in 1m54s
Test PR / Build (es_ES) (pull_request) Successful in 1m59s
Test PR / Build (ru_RU) (pull_request) Successful in 2m7s
Build system / Build (es_ES) (push) Successful in 2m6s
Build system / Build (ru_RU) (push) Successful in 2m15s
Build system / Build (en_US) (push) Successful in 2m20s
Build system / Publish Images (push) Successful in 2m32s

This commit was merged in pull request #583.
This commit is contained in:
2026-07-21 17:51:53 +00:00
committed by Burer
parent 686f18772a
commit db846b5eee
2 changed files with 14 additions and 3 deletions
+10 -1
View File
@@ -267,12 +267,21 @@ proc AddDevice stdcall uses ebx esi edi, .pipe0:dword, .config:dword, .interface
; Accept E0h/01/03 (Wireless Controller / RF / RNDIS) ...
cmp [esi+interface_descr.bInterfaceClass], 0xE0
jne .try_acm
jne .try_misc
cmp [esi+interface_descr.bInterfaceSubClass], 0x01
jne .decline
cmp [esi+interface_descr.bInterfaceProtocol], 0x03
jne .decline
jmp .accept
; ... EFh/04/01 (Miscellaneous / RNDIS over Ethernet: phone tethering) ...
.try_misc:
cmp [esi+interface_descr.bInterfaceClass], 0xEF
jne .try_acm
cmp [esi+interface_descr.bInterfaceSubClass], 0x04
jne .decline
cmp [esi+interface_descr.bInterfaceProtocol], 0x01
jne .decline
jmp .accept
; ... and 02h/02/FF (RNDIS masquerading as CDC-ACM).
.try_acm:
cmp [esi+interface_descr.bInterfaceClass], 0x02
+4 -2
View File
@@ -176,9 +176,11 @@ INIT_USBDRV_FILE
ADD_CLASS 'usbcdc' , 0x02, X , X
; RNDIS network (Remote NDIS): LTE modems in HiLink mode, USB tethering.
; Two encodings exist: Wireless-Controller/RF/RNDIS and an ACM masquerade
; (the latter is declined by usbcdc, so the scan falls through to us).
; Three encodings exist: Wireless-Controller/RF/RNDIS, Miscellaneous/
; RNDIS-over-Ethernet (phone tethering) and an ACM masquerade (the
; latter is declined by usbcdc, so the scan falls through to us).
ADD_CLASS 'usbrndis' , 0xE0, 0x01, 0x03
ADD_CLASS 'usbrndis' , 0xEF, 0x04, 0x01
ADD_CLASS 'usbrndis' , 0x02, 0x02, 0xFF
;ADD_CLASS 'usbimage' , 0x06, 1 , 1