qcacmn: Add logic to ignore 6Ghz AP if security is not valid

Add logic to
- Check if connect req freq is 6Ghz and security
  is not allowed for 6Ghz, reject connect.
- Ignore 6Ghz APs if connect req security is invalid
  for 6Ghz

Also added user config key_mgmt_mask_6ghz mask
to allow specific AKMs, by default all are allowed.

Add added user config check_6Ghz_security to enable
security checks as per spec.

Change-Id: I37518731faa4de67a49853e5ac544efa3b3ce1d6
CRs-Fixed: 2813013
This commit is contained in:
Abhishek Singh
2020-09-15 09:59:45 +05:30
committad av snandini
förälder 32cab9b00c
incheckning 1853c161d2
12 ändrade filer med 383 tillägg och 16 borttagningar

Visa fil

@@ -500,6 +500,7 @@ enum dot11_mode_filter {
* @ignore_auth_enc_type: Ignore enc type if
* this is set (For WPS/OSEN connection)
* @ignore_nol_chan: Ignore entry with channel in the NOL list
* @ignore_6ghz_channel: ignore 6Ghz channels
* @age_threshold: If set return entry which are newer than the age_threshold
* @num_of_bssid: number of bssid passed
* @num_of_ssid: number of ssid
@@ -530,7 +531,8 @@ struct scan_filter {
rrm_measurement_filter:1,
ignore_pmf_cap:1,
ignore_auth_enc_type:1,
ignore_nol_chan:1;
ignore_nol_chan:1,
ignore_6ghz_channel:1;
qdf_time_t age_threshold;
uint8_t num_of_bssid;
uint8_t num_of_ssid;