This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new e2c154dffe wireless/bcm43xxx: configurable buffer size of escan result
e2c154dffe is described below

commit e2c154dffec23a6a56b5f8255014436786521415
Author: chao.an <anc...@xiaomi.com>
AuthorDate: Thu Jun 16 21:34:05 2022 +0800

    wireless/bcm43xxx: configurable buffer size of escan result
    
    Signed-off-by: chao.an <anc...@xiaomi.com>
---
 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

Reply via email to