summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2026-04-28 22:02:31 +0700
committerGitHub <[email protected]>2026-04-28 22:02:31 +0700
commit4a4420cd070f4460f6f5ed3c17011d78c325d7c0 (patch)
tree7595327abe8468e63eb470bf73a4531fb1c87495 /src/class
parent4c7fd70e53b34bf63ef9334f2b5624cac48299f1 (diff)
parentf2654a675b67b0b83337dd4df13afd498c3a0809 (diff)
Merge pull request #3605 from hathach/musb-followup-3594
Enhance dcd musb, double packet, refactor EP0, fix DATAEND race with EP0
Diffstat (limited to 'src/class')
-rw-r--r--src/class/net/ecm_rndis_device.c5
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;