From e2c154dffec23a6a56b5f8255014436786521415 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Thu, 16 Jun 2022 21:34:05 +0800 Subject: [PATCH] wireless/bcm43xxx: configurable buffer size of escan result Signed-off-by: chao.an --- drivers/wireless/ieee80211/bcm43xxx/Kconfig | 6 ++++++ drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/wireless/ieee80211/bcm43xxx/Kconfig b/drivers/wireless/ieee80211/bcm43xxx/Kconfig index d79a954cfe..d57b0e3c4c 100644 --- a/drivers/wireless/ieee80211/bcm43xxx/Kconfig +++ b/drivers/wireless/ieee80211/bcm43xxx/Kconfig @@ -125,6 +125,12 @@ config IEEE80211_BROADCOM_SCHED_PRIORITY This parameter should be set the bcmf daemon thread schedule priority +config IEEE80211_BROADCOM_SCAN_RESULT_SIZE + int "Broadcom BCMF escan result size" + default 1024 + ---help--- + This parameter should be set the bcmf escan result buffer size + if IEEE80211_BROADCOM_FULLMAC config IEEE80211_BROADCOM_NINTERFACES diff --git a/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c b/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c index d573cfef5a..cb3aacbe0a 100644 --- a/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c +++ b/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c @@ -56,7 +56,7 @@ #define DOT11_BSSTYPE_ANY 2 #define BCMF_SCAN_TIMEOUT_TICK (5*CLOCKS_PER_SEC) #define BCMF_AUTH_TIMEOUT_MS 20000 /* was 10000 */ -#define BCMF_SCAN_RESULT_SIZE 1024 +#define BCMF_SCAN_RESULT_SIZE CONFIG_IEEE80211_BROADCOM_SCAN_RESULT_SIZE /* CLM file is cut into pieces of MAX_CHUNK_LEN. * It is relatively small because dongles (FW) have a small maximum size