From 2772efc862cd0cac46c7276dcbfca05cf572b51d Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Sun, 19 Jun 2022 21:28:26 +0800 Subject: [PATCH] wireless/bcm43xxx: remove small chunks to improve clm download speed Chunk length is fine as long as it does not exceed 1400 Signed-off-by: chao.an --- drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c b/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c index aa767d17a3d..38ab340a765 100644 --- a/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c +++ b/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c @@ -59,20 +59,13 @@ #define BCMF_SCAN_RESULT_ENTRIES CONFIG_IEEE80211_BROADCOM_SCAN_RESULT_ENTRIES /* CLM file is cut into pieces of MAX_CHUNK_LEN. - * It is relatively small because dongles (FW) have a small maximum size - * input payload restriction for ioctl's ... something like 1900'ish bytes. - * So chunk len should not exceed 1400 bytes * * NOTE: CONFIG_NET_ETH_PKTSIZE is the MTU plus the size of the Ethernet * header (14 bytes). */ -#ifdef CONFIG_IEEE80211_BROADCOM_FWFILES /* REVISIT */ -# define MAX_CHUNK_LEN (100) -#else -# define MAX_CHUNK_LEN \ - (CONFIG_NET_ETH_PKTSIZE > 1514 ? 1400 : CONFIG_NET_ETH_PKTSIZE - 114) -#endif +#define MAX_CHUNK_LEN \ + (CONFIG_NET_ETH_PKTSIZE > 1514 ? 1400 : CONFIG_NET_ETH_PKTSIZE - 114) /* Helper to get iw_event size */