4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 21:03:32 +08:00

Merge pull request #3204 from lymzzyh/rndis

[RNDIS]fix speed on HS
This commit is contained in:
Bernard Xiong 2019-11-16 10:06:42 +08:00 committed by GitHub
commit 2a73319282
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -421,7 +421,7 @@ static rt_err_t _rndis_query_response(ufunction_t func,rndis_query_msg_t msg)
case OID_GEN_LINK_SPEED:
resp = _create_resp(4);
if(resp == RT_NULL) break;
_set_resp(resp, func->device->dcd->device_is_hs ? (480UL * 1000 *1000) : (12UL * 1000 * 1000) / 100);
_set_resp(resp, (func->device->dcd->device_is_hs ? (480UL * 1000 *1000) : (12UL * 1000 * 1000)) / 100);
break;
case OID_GEN_MEDIA_CONNECT_STATUS: