review cdc-ecm enum success but comunication error

1. review usbd_cdc_ecm_eth_tx send data fail
2. review CDC_ECM_DESCRIPTOR_INIT macro wMaxSegmentSize parameter error
This commit is contained in:
yukelab
2024-06-05 11:10:08 +08:00
committed by sakumisu
parent cf0137686d
commit 883c0a5dc5
2 changed files with 3 additions and 5 deletions

View File

@@ -588,7 +588,7 @@ eth_statistics, wMaxSegmentSize, wNumberMCFilters, bNumberPowerFilters, str_idx)
CDC_FUNC_DESC_ETHERNET_NETWORKING, /* Ethernet Networking functional descriptor subtype */\
str_idx, /* Device's MAC string index */\
DBVAL_BE(eth_statistics), /* Ethernet statistics (bitmap) */\
WBVAL(wMaxPacketSize),/* wMaxSegmentSize: Ethernet Maximum Segment size, typically 1514 bytes */\
WBVAL(wMaxSegmentSize),/* wMaxSegmentSize: Ethernet Maximum Segment size, typically 1514 bytes */\
WBVAL(wNumberMCFilters), /* wNumberMCFilters: the number of multicast filters */\
bNumberPowerFilters, /* bNumberPowerFilters: the number of wakeup power filters */\
0x07, /* bLength */ \