qcacld-3.0: Use pre_auth_channel_freq to replace preAuthchannelNum
Add pre_auth_channel_freq into struct sSirFTPreAuthReq and replace
preAuthchannelNum.
Change-Id: I47f8a1e4057b4efd2a307b26c066a695e5338aa2
CRs-Fixed: 2568598
diff --git a/core/mac/src/pe/lim/lim_send_management_frames.c b/core/mac/src/pe/lim/lim_send_management_frames.c
index c859d77..2c6dbc5 100644
--- a/core/mac/src/pe/lim/lim_send_management_frames.c
+++ b/core/mac/src/pe/lim/lim_send_management_frames.c
@@ -2779,9 +2779,8 @@
frame, frame_len);
if ((session->ftPEContext.pFTPreAuthReq) &&
- (lim_get_rf_band(
- session->ftPEContext.pFTPreAuthReq->preAuthchannelNum)) ==
- BAND_5G)
+ (!wlan_reg_is_24ghz_ch_freq(
+ session->ftPEContext.pFTPreAuthReq->pre_auth_channel_freq)))
tx_flag |= HAL_USE_BD_RATE2_FOR_MANAGEMENT_FRAME;
else if (wlan_reg_is_5ghz_ch_freq(session->curr_op_freq) ||
session->opmode == QDF_P2P_CLIENT_MODE ||
@@ -2801,8 +2800,8 @@
session, QDF_STATUS_SUCCESS, QDF_STATUS_SUCCESS);
if (session->ftPEContext.pFTPreAuthReq)
- ch_freq_tx_frame = cds_chan_to_freq(
- session->ftPEContext.pFTPreAuthReq->preAuthchannelNum);
+ ch_freq_tx_frame = session->ftPEContext.
+ pFTPreAuthReq->pre_auth_channel_freq;
qdf_status = wma_tx_frameWithTxComplete(mac_ctx, packet,
(uint16_t)frame_len,