qcacld-3.0: Handle disable EHT flag in connect request

If user sets flag ASSOC_REQ_DISABLE_EHT in connect request, driver
will send action oui "ffffff 00 01" to host mlme and also firmware
for action id ACTION_OUI_11BE_OUI_ALLOW, so that all the AP will
be not matched with this OUI and 802.11be mode will not be allowed,
possibly downgrade to 11ax will happen.
If user doesn't set ASSOC_REQ_DISABLE_EHT, driver/firmware will
recover to default oui setting.

Change-Id: I9eab732f1bd29018d44b215c1d6c9bfac9dafe95
CRs-Fixed: 3314489
这个提交包含在:
Liangwei Dong
2022-10-18 12:09:24 +08:00
提交者 Madan Koyyalamudi
父节点 f0287ac02a
当前提交 77d14af550
修改 12 个文件,包含 491 行新增20 行删除

查看文件

@@ -1128,6 +1128,30 @@ enum phy_ch_width wlan_mlme_convert_eht_op_bw_to_phy_ch_width(
return phy_bw;
}
bool wlan_mlme_get_usr_disable_sta_eht(struct wlan_objmgr_psoc *psoc)
{
struct wlan_mlme_psoc_ext_obj *mlme_obj = mlme_get_psoc_ext_obj(psoc);
if (!mlme_obj)
return true;
return mlme_obj->cfg.sta.usr_disable_eht;
}
void wlan_mlme_set_usr_disable_sta_eht(struct wlan_objmgr_psoc *psoc,
bool disable)
{
struct wlan_mlme_psoc_ext_obj *mlme_obj = mlme_get_psoc_ext_obj(psoc);
if (!mlme_obj)
return;
mlme_debug("set usr_disable_eht from %d to %d",
mlme_obj->cfg.sta.usr_disable_eht, disable);
mlme_obj->cfg.sta.usr_disable_eht = disable;
}
#endif
#ifdef WLAN_FEATURE_11BE_MLO