qcacld-3.0: Update phymode before starting SAP and STA

Check phymode to verify it is allowed for the current country
before starting SAP or connecting STA.

Change-Id: Ica5e70bbd421c4dc18a34545f63e436bc482fc46
CRs-fixed: 2658294
This commit is contained in:
Lincoln Tran
2020-03-19 16:04:10 -07:00
committed by nshrivas
parent ffd5db1bb9
commit 745f9e7d1f
3 changed files with 15 additions and 0 deletions

View File

@@ -474,6 +474,7 @@ enum sap_acs_dfs_mode {
struct sap_config {
tSap_SSIDInfo_t SSIDinfo;
eCsrPhyMode sap_orig_hw_mode; /* Previous wireless Mode */
eCsrPhyMode SapHw_mode; /* Wireless Mode */
eSapMacAddrACL SapMacaddr_acl;
struct qdf_mac_addr accept_mac[MAX_ACL_MAC_ADDRESS]; /* MAC filtering */