qcacmn: Add only frames with valid channel in scan cache

Kernel reject the beacon/probe resp frame with invalid channel in
DS,HT info and HE IE, but same frame is added in the scan cache
and when mlme refer this frame, connect issues are seen due to
invalid channel.

Thus do not add the entry in scan cache.

Change-Id: Ib2891f95034b04be26c5feefed7c4354d8bb367a
CRs-Fixed: 2708975
Dieser Commit ist enthalten in:
Utkarsh Bhatnagar
2020-06-17 04:40:44 +05:30
committet von nshrivas
Ursprung 3e9a617176
Commit 1035366308
5 geänderte Dateien mit 144 neuen und 32 gelöschten Zeilen

Datei anzeigen

@@ -58,6 +58,27 @@ enum scan_mode_6ghz {
true,\
"drop bcn on channel mismatch")
/*
* <ini>
* drop_bcn_on_invalid_freq - drop the beacon or probe resp with invalid freq
* @Min: 0
* @Max: 1
* @Default: 1
*
* This ini is used to decide whether to drop the beacon/probe resp or not
* if channel received in DS param, HT info and HE IE is invalid.
*
* Related: None
*
* Usage: External
*
* </ini>
*/
#define CFG_DROP_BCN_ON_INVALID_FREQ CFG_INI_BOOL(\
"drop_bcn_on_invalid_freq",\
true,\
"drop bcn on invalid freq in HT, DS, HE IE")
/*
* <ini>
* gActiveMaxChannelTime - Set max channel time for active scan
@@ -1206,6 +1227,7 @@ enum scan_mode_6ghz {
#define CFG_SCAN_ALL \
CFG(CFG_DROP_BCN_ON_CHANNEL_MISMATCH) \
CFG(CFG_DROP_BCN_ON_INVALID_FREQ) \
CFG(CFG_ENABLE_WAKE_LOCK_IN_SCAN) \
CFG(CFG_ACTIVE_MAX_CHANNEL_TIME) \
CFG(CFG_ENABLE_DFS_SCAN) \