Device RNDIS: Fix linux enumeration#251
Conversation
21a6788 to
e17f5b3
Compare
|
hello @ayedm1, |
|
Hello, as stated in #171, should the device really respond with its own MAC address ( On this documentation I cannot see any difference between the permanent address and the current address OIDs, except regarding their lifetime. So I don't think there should have one OID returning Also, when I tested, my PC took the returned MAC address as its own address, not the device address. |
|
@rahmanih Can you look at @yames-smile's latest comment, please? |
rahmanih
left a comment
There was a problem hiding this comment.
Tested on STM32 Device.
- before the fix :
[ +0.000005] usb 1-9: Product: STM32 RNDIS Device
[ +0.000004] usb 1-9: Manufacturer: STMicroelectronics
[ +0.000004] usb 1-9: SerialNumber: RNDIS001
[ +0.004446] rndis_host 1-9:1.0: RNDIS_MSG_QUERY(0x01010101) invalid response - off 16 len 4
[ +0.000015] rndis_host 1-9:1.0: rndis get ethaddr, -33
[ +0.000960] rndis_host: probe of 1-9:1.0 failed with error -33
- after the fix :
[ +0.000005] usb 1-9: Product: STM32 RNDIS Device
[ +0.000004] usb 1-9: Manufacturer: STMicroelectronics
[ +0.000003] usb 1-9: SerialNumber: RNDIS001
[ +0.006858] rndis_host 1-9:1.0 eth1: register 'rndis_host' at usb-0000:00:14.0-9, RNDIS device, 00:02:02:03:00:00
[ +0.017132] rndis_host 1-9:1.0 enx000202030000: renamed from eth1
LGTM 🥇
Not Yet , ,need further tests |
|
Hello @rahmanih, in your test did you configure |
missed that! I'll do it right now. |
need further tests based latest comments.
I did the test on a Linux Fedora distribution and found that both implementation is working fine, Linux Fedore is automatically self-assigning the MC address. @ayedm1 I think it is better to use the same |
|
|
||
| break; | ||
|
|
||
| case UX_DEVICE_CLASS_RNDIS_OID_802_3_PERMANENT_ADDRESS : |
There was a problem hiding this comment.
let's have this request exactly like the UX_DEVICE_CLASS_RNDIS_OID_802_3_CURRENT_ADDRESS
e17f5b3 to
4ac8fa9
Compare
4ac8fa9 to
3634023
Compare
|
@fdesbiens ready for merge. |
No description provided.