wireless/bcm43xxx: sort scan result by rssi

1. Replace SCAN_RESULT_SIZE to SCAN_RESULT_ENTRIES
2. filter scan result with better rssi
3. Sort scan result by rssi

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an
2022-06-18 01:26:13 +08:00
committed by Xiang Xiao
parent 615a296b30
commit e6a23e7b8a
3 changed files with 200 additions and 286 deletions
+4 -4
View File
@@ -125,11 +125,11 @@ 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
config IEEE80211_BROADCOM_SCAN_RESULT_ENTRIES
int "Broadcom BCMF escan result entries"
default 10
---help---
This parameter should be set the bcmf escan result buffer size
This parameter should be set the bcmf escan result buffer entries
if IEEE80211_BROADCOM_FULLMAC
File diff suppressed because it is too large Load Diff
@@ -89,8 +89,8 @@ struct bcmf_dev_s
int scan_status; /* Current scan status */
struct wdog_s scan_timeout; /* Scan timeout timer */
FAR uint8_t *scan_result; /* Temp buffer that holds results */
unsigned int scan_result_size; /* Current size of temp buffer */
FAR wl_bss_info_t *scan_result; /* Temp buffer that holds results */
unsigned int scan_result_entries; /* Current entries of temp buffer */
sem_t auth_signal; /* Authentication notification signal */
int auth_status; /* Authentication status */