diff options
| author | hathach <[email protected]> | 2026-04-20 22:11:17 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2026-04-20 22:11:17 +0700 |
| commit | da2368bc141c7e76e818df2336ffe672b7927748 (patch) | |
| tree | 446974c6158ed6e3bd4b4efe97f6907255c5168d /src/class | |
| parent | 9d0af750a5463f3a54c6fdd5932d82f7fc208ffc (diff) | |
fix usbnet hardcode speed. disable hil test for now
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/net/ecm_rndis_device.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/class/net/ecm_rndis_device.c b/src/class/net/ecm_rndis_device.c index eaa82c187..9282e0605 100644 --- a/src/class/net/ecm_rndis_device.c +++ b/src/class/net/ecm_rndis_device.c @@ -206,14 +206,15 @@ static void ecm_report(bool nc) { }, }; + const uint32_t link_bps = (tud_speed_get() == TUSB_SPEED_HIGH) ? 480000000U : 12000000U; const ecm_notify_t ecm_notify_csc = { .header = { .bmRequestType = 0xA1, .bRequest = 0x2A, /* CONNECTION_SPEED_CHANGE aka ConnectionSpeedChange */ .wLength = 8, }, - .downlink = 9728000, - .uplink = 9728000, + .downlink = link_bps, + .uplink = link_bps, }; ecm_notify_t notify = (nc) ? ecm_notify_nc : ecm_notify_csc; |
