Skip to content

Commit

Permalink
change rndis_encapsulated_resp_buffer size to 156
Browse files Browse the repository at this point in the history
  • Loading branch information
sakumisu committed Aug 5, 2023
1 parent c8b832e commit 94505f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cherryusb_config_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
#endif

#ifndef CONFIG_USBDEV_RNDIS_RESP_BUFFER_SIZE
#define CONFIG_USBDEV_RNDIS_RESP_BUFFER_SIZE 128
#define CONFIG_USBDEV_RNDIS_RESP_BUFFER_SIZE 156
#endif

#ifndef CONFIG_USBDEV_RNDIS_ETH_MAX_FRAME_SIZE
Expand Down
5 changes: 5 additions & 0 deletions class/wireless/usbd_rndis.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ struct usbd_rndis_priv {
uint8_t mac[6];
} g_usbd_rndis;

#if CONFIG_USBDEV_RNDIS_RESP_BUFFER_SIZE < 140
#undef CONFIG_USBDEV_RNDIS_RESP_BUFFER_SIZE
#define CONFIG_USBDEV_RNDIS_RESP_BUFFER_SIZE 156
#endif

USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_rndis_rx_buffer[CONFIG_USBDEV_RNDIS_ETH_MAX_FRAME_SIZE + 44];
USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_rndis_tx_buffer[CONFIG_USBDEV_RNDIS_ETH_MAX_FRAME_SIZE + 44];

Expand Down

0 comments on commit 94505f9

Please sign in to comment.