qcacld-3.0: Add NL policy for vendor ACS command attributes
Add NL policy for vendor ACS command attributes and check if EHT is enabled when the bandwidth is set to 320MHz. Change-Id: Ieae4668757d0d05b19a8ebe2ddc6b9e8705a0cac CRs-Fixed: 3120986
Este commit está contenido en:

cometido por
Madan Koyyalamudi

padre
b5e8c8898b
commit
af219a4a6a
@@ -2861,6 +2861,10 @@ wlan_hdd_cfg80211_do_acs_policy[QCA_WLAN_VENDOR_ATTR_ACS_MAX + 1] = {
|
||||
.len = sizeof(NLA_U8) * NUM_CHANNELS },
|
||||
[QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST] = { .type = NLA_BINARY,
|
||||
.len = sizeof(NLA_U32) * NUM_CHANNELS },
|
||||
[QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED] = { .type = NLA_FLAG },
|
||||
[QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP] = { .type = NLA_U16 },
|
||||
[QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED] = { .type = NLA_FLAG },
|
||||
[QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL] = { .type = NLA_U8 },
|
||||
};
|
||||
|
||||
int hdd_start_vendor_acs(struct hdd_adapter *adapter)
|
||||
@@ -3268,6 +3272,15 @@ static int __wlan_hdd_cfg80211_do_acs(struct wiphy *wiphy,
|
||||
ch_width = 20;
|
||||
}
|
||||
|
||||
if (tb[QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED])
|
||||
eht_enabled =
|
||||
nla_get_flag(tb[QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED]);
|
||||
else
|
||||
eht_enabled = 0;
|
||||
|
||||
if (ch_width == 320 && !eht_enabled)
|
||||
ch_width = 160;
|
||||
|
||||
/* this may be possible, when sap_force_11n_for_11ac or
|
||||
* go_force_11n_for_11ac is set
|
||||
*/
|
||||
|
Referencia en una nueva incidencia
Block a user