qcacmn: From connection manager filter only ESS type of AP

ESS (Extended Service Set) operating mode allows wireless
device to roam anywhere within the area covered by multiple
APs.

IBSS (Independent Basic Service Set) allows wireless device
to connect in peer-to-Peer mode only.

Fix is to allow connection manager module to filter only
those AP(s) which is/are part of ESS network.

Change-Id: I9536557daa624b9e44505efa0e0720e47b645517
CRs-Fixed: 3015220
This commit is contained in:
abhinav kumar
2021-08-17 01:32:08 +05:30
committato da Madan Koyyalamudi
parent 9503c2a865
commit a368b81e70
3 ha cambiato i file con 11 aggiunte e 0 eliminazioni

Vedi File

@@ -750,6 +750,13 @@ bool scm_filter_match(struct wlan_objmgr_psoc *psoc,
return false;
}
if (!util_is_bss_type_match(filter->bss_type, db_entry->cap_info)) {
scm_debug(QDF_MAC_ADDR_FMT" : Ignore as bss type didn't match cap_info %x bss_type %d",
QDF_MAC_ADDR_REF(db_entry->bssid.bytes),
db_entry->cap_info.value, filter->bss_type);
return false;
}
/* Match realm */
if (!scm_is_fils_config_match(filter, db_entry)) {
scm_debug(QDF_MAC_ADDR_FMT" :Ignore as fils config didn't match",

Vedi File

@@ -687,6 +687,7 @@ enum dot11_mode_filter {
* @num_of_bssid: number of bssid passed
* @num_of_ssid: number of ssid
* @num_of_channels: number of channels
* @bss_type: bss type IBSS or BSS or ANY
* @pmf_cap: Pmf capability
* @dot11mode: Filter APs based upon dot11mode
* @band: to get specific band 2.4G, 5G or 4.9 G
@@ -719,6 +720,7 @@ struct scan_filter {
uint8_t num_of_bssid;
uint8_t num_of_ssid;
uint16_t num_of_channels;
enum wlan_bss_type bss_type;
enum wlan_pmf_cap pmf_cap;
enum dot11_mode_filter dot11mode;
enum wlan_band band;