qcacld-3.0: Cleaning up duplicate variable lteCoexAntShare

Replacing all occurences of mac_context->lteCoexAntShare
with mac_context->mlme_cfg->gen.as_enabled

Change-Id: I8c86d1d082446e9dc63fc35d478b2e59768dae95
CRs-Fixed: 2665255
This commit is contained in:
Utkarsh Bhatnagar 2020-04-15 21:21:21 +05:30 committed by nshrivas
parent 175ed11161
commit 03701c359a
5 changed files with 6 additions and 7 deletions

View File

@ -774,7 +774,6 @@ struct mac_context {
struct csr_roamstruct roam;
tRrmContext rrm;
uint8_t isCoalesingInIBSSAllowed;
uint8_t lteCoexAntShare;
uint8_t beacon_offload;
bool pmf_offload;
bool is_fils_roaming_supported;

View File

@ -307,7 +307,7 @@ static void lim_handle_join_rsp_status(struct mac_context *mac_ctx,
if (mac_ctx->roam.configParam.is_force_1x1 &&
is_vendor_ap_1_present && (session_entry->nss == 2) &&
(mac_ctx->lteCoexAntShare == 0 ||
(!mac_ctx->mlme_cfg->gen.as_enabled ||
wlan_reg_is_5ghz_ch_freq(session_entry->curr_op_freq))) {
/* SET vdev param */
pe_debug("sending SMPS intolrent vdev_param");

View File

@ -7333,7 +7333,7 @@ QDF_STATUS lim_populate_he_mcs_set(struct mac_context *mac_ctx,
(*(uint16_t *)peer_he_caps->tx_he_mcs_map_80_80));
if (session_entry->nss == NSS_2x2_MODE) {
if (mac_ctx->lteCoexAntShare &&
if (mac_ctx->mlme_cfg->gen.as_enabled &&
wlan_reg_is_24ghz_ch_freq(session_entry->curr_op_freq)) {
if (IS_2X2_CHAIN(session_entry->chainMask))
support_2x2 = true;

View File

@ -4010,7 +4010,7 @@ sme_fill_nss_chain_params(struct mac_context *mac_ctx,
* If target supports Antenna sharing, set NSS to 1 for 2.4GHz band for
* NDI vdev.
*/
if (device_mode == QDF_NDI_MODE && mac_ctx->lteCoexAntShare &&
if (device_mode == QDF_NDI_MODE && mac_ctx->mlme_cfg->gen.as_enabled &&
band == NSS_CHAINS_BAND_2GHZ)
max_supported_nss = NSS_1x1_MODE;
@ -12779,7 +12779,6 @@ void sme_update_tgt_services(mac_handle_t mac_handle,
mac_ctx->obss_scan_offload = cfg->obss_scan_offload;
sme_debug("obss_scan_offload: %d", mac_ctx->obss_scan_offload);
mac_ctx->lteCoexAntShare = cfg->lte_coex_ant_share;
mac_ctx->mlme_cfg->gen.as_enabled = cfg->lte_coex_ant_share;
mac_ctx->beacon_offload = cfg->beacon_offload;
mac_ctx->pmf_offload = cfg->pmf_offload;

View File

@ -15869,7 +15869,8 @@ QDF_STATUS csr_send_join_req_msg(struct mac_context *mac, uint32_t sessionId,
if (is_vendor_ap_present &&
!policy_mgr_is_hw_dbs_2x2_capable(mac->psoc) &&
((mac->roam.configParam.is_force_1x1 ==
FORCE_1X1_ENABLED_FOR_AS && mac->lteCoexAntShare) ||
FORCE_1X1_ENABLED_FOR_AS &&
mac->mlme_cfg->gen.as_enabled) ||
mac->roam.configParam.is_force_1x1 ==
FORCE_1X1_ENABLED_FORCED)) {
pSession->supported_nss_1x1 = true;
@ -15908,7 +15909,7 @@ QDF_STATUS csr_send_join_req_msg(struct mac_context *mac, uint32_t sessionId,
&vendor_ap_search_attr,
ACTION_OUI_SWITCH_TO_11N_MODE);
if (mac->roam.configParam.is_force_1x1 &&
mac->lteCoexAntShare &&
mac->mlme_cfg->gen.as_enabled &&
is_vendor_ap_present &&
(dot11mode == MLME_DOT11_MODE_ALL ||
dot11mode == MLME_DOT11_MODE_11AC ||