qcacld-3.0: Disable 11be when not supported by target
Disable 11be when not supported by target Change-Id: Iecf9ab3eab5a9e69b01fb03b30b028b57019b10d CRs-Fixed: 3291961
This commit is contained in:

committad av
Madan Koyyalamudi

förälder
b5256983ff
incheckning
1472d9ad6d
@@ -83,6 +83,7 @@
|
||||
#include "wlan_policy_mgr_ucfg.h"
|
||||
#include "wlan_wifi_pos_interface.h"
|
||||
#include "wlan_cp_stats_mc_ucfg_api.h"
|
||||
#include "wlan_psoc_mlme_ucfg_api.h"
|
||||
|
||||
static QDF_STATUS init_sme_cmd_list(struct mac_context *mac);
|
||||
|
||||
@@ -15293,6 +15294,10 @@ void sme_update_score_config(mac_handle_t mac_handle, eCsrPhyMode phy_mode,
|
||||
uint32_t channel_bonding_mode;
|
||||
QDF_STATUS status;
|
||||
struct psoc_phy_config config = {0};
|
||||
bool eht_cap;
|
||||
|
||||
ucfg_psoc_mlme_get_11be_capab(mac_ctx->psoc, &eht_cap);
|
||||
config.eht_cap = eht_cap;
|
||||
|
||||
qdf_mem_zero(&vdev_ini_cfg, sizeof(struct wlan_mlme_nss_chains));
|
||||
/* Populate the nss chain params from ini for this vdev type */
|
||||
@@ -15302,9 +15307,6 @@ void sme_update_score_config(mac_handle_t mac_handle, eCsrPhyMode phy_mode,
|
||||
config.vdev_nss_24g = vdev_ini_cfg.rx_nss[NSS_CHAINS_BAND_2GHZ];
|
||||
config.vdev_nss_5g = vdev_ini_cfg.rx_nss[NSS_CHAINS_BAND_5GHZ];
|
||||
|
||||
if (sme_is_phy_mode_11be(phy_mode))
|
||||
config.eht_cap = 1;
|
||||
|
||||
if (config.eht_cap ||
|
||||
phy_mode == eCSR_DOT11_MODE_AUTO ||
|
||||
phy_mode == eCSR_DOT11_MODE_11ax ||
|
||||
@@ -15320,9 +15322,6 @@ void sme_update_score_config(mac_handle_t mac_handle, eCsrPhyMode phy_mode,
|
||||
phy_mode == eCSR_DOT11_MODE_11n_ONLY)
|
||||
config.ht_cap = 1;
|
||||
|
||||
if (!IS_FEATURE_11BE_SUPPORTED_BY_FW)
|
||||
config.eht_cap = 0;
|
||||
|
||||
if (!IS_FEATURE_SUPPORTED_BY_FW(DOT11AX))
|
||||
config.he_cap = 0;
|
||||
|
||||
|
Referens i nytt ärende
Block a user