|
@@ -244,7 +244,8 @@ QDF_STATUS csr_neighbor_roam_preauth_rsp_handler(struct mac_context *mac_ctx,
|
|
|
sme_debug("After Pre-Auth: BSSID " QDF_MAC_ADDR_STR ", Ch:%d",
|
|
|
QDF_MAC_ADDR_ARRAY(
|
|
|
preauth_rsp_node->pBssDescription->bssId),
|
|
|
- (int)preauth_rsp_node->pBssDescription->channelId);
|
|
|
+ (int)wlan_reg_freq_to_chan(mac_ctx->pdev,
|
|
|
+ preauth_rsp_node->pBssDescription->chan_freq));
|
|
|
|
|
|
csr_neighbor_roam_send_lfr_metric_event(mac_ctx, session_id,
|
|
|
preauth_rsp_node->pBssDescription->bssId,
|
|
@@ -454,6 +455,7 @@ static uint32_t csr_get_dot11_mode(struct mac_context *mac_ctx,
|
|
|
session_id);
|
|
|
enum csr_cfgdot11mode ucfg_dot11_mode, cfg_dot11_mode;
|
|
|
QDF_STATUS status;
|
|
|
+ uint8_t bss_chan_id;
|
|
|
tDot11fBeaconIEs *ies_local = NULL;
|
|
|
uint32_t dot11mode = 0;
|
|
|
|
|
@@ -476,6 +478,8 @@ static uint32_t csr_get_dot11_mode(struct mac_context *mac_ctx,
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+ bss_chan_id = wlan_reg_freq_to_chan(mac_ctx->pdev,
|
|
|
+ bss_desc->chan_freq);
|
|
|
if (csr_is_phy_mode_match(mac_ctx,
|
|
|
csr_session->pCurRoamProfile->phyMode,
|
|
|
bss_desc, csr_session->pCurRoamProfile,
|
|
@@ -483,7 +487,7 @@ static uint32_t csr_get_dot11_mode(struct mac_context *mac_ctx,
|
|
|
ucfg_dot11_mode = cfg_dot11_mode;
|
|
|
else {
|
|
|
sme_err("Can not find match phy mode");
|
|
|
- if (WLAN_REG_IS_5GHZ_CH(bss_desc->channelId))
|
|
|
+ if (WLAN_REG_IS_5GHZ_CH(bss_chan_id))
|
|
|
ucfg_dot11_mode = eCSR_CFG_DOT11_MODE_11A;
|
|
|
else
|
|
|
ucfg_dot11_mode = eCSR_CFG_DOT11_MODE_11G;
|
|
@@ -495,9 +499,9 @@ static uint32_t csr_get_dot11_mode(struct mac_context *mac_ctx,
|
|
|
sme_debug("dot11mode %d ucfg_dot11_mode %d",
|
|
|
dot11mode, ucfg_dot11_mode);
|
|
|
|
|
|
- if (bss_desc->channelId <= 14 &&
|
|
|
- !mac_ctx->mlme_cfg->vht_caps.vht_cap_info.b24ghz_band &&
|
|
|
- MLME_DOT11_MODE_11AC == dot11mode) {
|
|
|
+ if (bss_chan_id <= 14 &&
|
|
|
+ !mac_ctx->mlme_cfg->vht_caps.vht_cap_info.b24ghz_band &&
|
|
|
+ MLME_DOT11_MODE_11AC == dot11mode) {
|
|
|
/* Need to disable VHT operation in 2.4 GHz band */
|
|
|
dot11mode = MLME_DOT11_MODE_11N;
|
|
|
}
|
|
@@ -544,7 +548,8 @@ QDF_STATUS csr_roam_issue_ft_preauth_req(struct mac_context *mac_ctx,
|
|
|
/* Save the SME Session ID. We need it while processing preauth resp */
|
|
|
csr_session->ftSmeContext.smeSessionId = session_id;
|
|
|
preauth_req->messageType = eWNI_SME_FT_PRE_AUTH_REQ;
|
|
|
- preauth_req->preAuthchannelNum = bss_desc->channelId;
|
|
|
+ preauth_req->preAuthchannelNum =
|
|
|
+ wlan_reg_freq_to_chan(mac_ctx->pdev, bss_desc->chan_freq);
|
|
|
preauth_req->dot11mode = dot11mode;
|
|
|
|
|
|
qdf_mem_copy((void *)&preauth_req->currbssId,
|
|
@@ -762,9 +767,8 @@ QDF_STATUS csr_neighbor_roam_issue_preauth_req(struct mac_context *mac_ctx,
|
|
|
eCsrPerformPreauth, true);
|
|
|
|
|
|
sme_debug("Before Pre-Auth: BSSID " QDF_MAC_ADDR_STR ", Ch:%d",
|
|
|
- QDF_MAC_ADDR_ARRAY(
|
|
|
- neighbor_bss_node->pBssDescription->bssId),
|
|
|
- (int)neighbor_bss_node->pBssDescription->channelId);
|
|
|
+ QDF_MAC_ADDR_ARRAY(neighbor_bss_node->pBssDescription->bssId),
|
|
|
+ neighbor_bss_node->pBssDescription->chan_freq);
|
|
|
|
|
|
if (QDF_STATUS_SUCCESS != status) {
|
|
|
sme_err("Return failed preauth request status %d",
|