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
此提交包含在:
Abhishek Singh
2020-09-15 09:59:45 +05:30
提交者 snandini
父節點 32cab9b00c
當前提交 1853c161d2
共有 12 個檔案被更改,包括 383 行新增16 行删除

查看文件

@@ -40,11 +40,16 @@
* for production.
* @dot11mode_filter: dot11mode filter used to restrict connection to
* 11n/11ac/11ax.
* @sae_pwe: SAE mechanism for PWE derivation
* 0 = hunting-and-pecking loop only
* 1 = hash-to-element only
* 2 = both hunting-and-pecking loop and hash-to-element enabled
*/
struct osif_connect_params {
struct element_info scan_ie;
bool force_rsne_override;
enum dot11_mode_filter dot11mode_filter;
uint8_t sae_pwe;
};
/**

查看文件

@@ -348,6 +348,7 @@ osif_cm_fill_connect_params(struct wlan_cm_connect_req *req,
}
req->dot11mode_filter = params->dot11mode_filter;
req->force_rsne_override = params->force_rsne_override;
req->sae_pwe = params->sae_pwe;
}
static void osif_cm_free_connect_req(struct wlan_cm_connect_req *connect_req)