diff options
| author | Service qcabuildsw <qcabuildsw@localhost> | 2016-09-20 17:45:10 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-09-20 17:45:10 -0700 |
| commit | d9be4bba043e4e28cb30d850183443a4939f17b0 (patch) | |
| tree | 4c2fc93c42ab9fb8db1115702811008996d8b7e9 | |
| parent | 26aafeff8f36c69618c2886b35a77cd4028795d9 (diff) | |
| parent | 1de51e3876865af33ee3214708cd64eec10db05f (diff) | |
Merge "qcacld-3.0: Use preauth channel to fetch the band during roaming" into wlan-cld3.driver.lnx.1.1-dev
| -rw-r--r-- | core/mac/src/pe/lim/lim_send_frames_host_roam.c | 14 | ||||
| -rw-r--r-- | core/mac/src/pe/lim/lim_send_management_frames.c | 16 |
2 files changed, 17 insertions, 13 deletions
diff --git a/core/mac/src/pe/lim/lim_send_frames_host_roam.c b/core/mac/src/pe/lim/lim_send_frames_host_roam.c index b4cff732b25b..5594dfc78843 100644 --- a/core/mac/src/pe/lim/lim_send_frames_host_roam.c +++ b/core/mac/src/pe/lim/lim_send_frames_host_roam.c @@ -407,12 +407,16 @@ void lim_send_reassoc_req_with_ft_ies_mgmt_frame(tpAniSirGlobal mac_ctx, lim_log(mac_ctx, LOG1, FL("Re-assoc Req Frame is: ")); sir_dump_buf(mac_ctx, SIR_LIM_MODULE_ID, LOG1, (uint8_t *) frame, (bytes + ft_ies_length)); - if ((SIR_BAND_5_GHZ == - lim_get_rf_band(pe_session->currentOperChannel)) || - (pe_session->pePersona == QDF_P2P_CLIENT_MODE) || - (pe_session->pePersona == QDF_P2P_GO_MODE)) { + + if ((NULL != pe_session->ftPEContext.pFTPreAuthReq) && + (SIR_BAND_5_GHZ == lim_get_rf_band( + pe_session->ftPEContext.pFTPreAuthReq->preAuthchannelNum))) + tx_flag |= HAL_USE_BD_RATE2_FOR_MANAGEMENT_FRAME; + else if ((SIR_BAND_5_GHZ == + lim_get_rf_band(pe_session->currentOperChannel)) + || (pe_session->pePersona == QDF_P2P_CLIENT_MODE) + || (pe_session->pePersona == QDF_P2P_GO_MODE)) tx_flag |= HAL_USE_BD_RATE2_FOR_MANAGEMENT_FRAME; - } if (NULL != pe_session->assocReq) { qdf_mem_free(pe_session->assocReq); 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 43899d80751d..dbd4ff3d9dfd 100644 --- a/core/mac/src/pe/lim/lim_send_management_frames.c +++ b/core/mac/src/pe/lim/lim_send_management_frames.c @@ -2265,15 +2265,15 @@ alloc_packet: } sir_dump_buf(mac_ctx, SIR_LIM_MODULE_ID, LOG2, frame, frame_len); - if ((SIR_BAND_5_GHZ == lim_get_rf_band(session->currentOperChannel)) - || (session->pePersona == QDF_P2P_CLIENT_MODE) - || (session->pePersona == QDF_P2P_GO_MODE) - || ((NULL != session->ftPEContext.pFTPreAuthReq) && - (SIR_BAND_5_GHZ == - lim_get_rf_band(session->ftPEContext.pFTPreAuthReq-> - preAuthchannelNum)))) + if ((NULL != session->ftPEContext.pFTPreAuthReq) && + (SIR_BAND_5_GHZ == lim_get_rf_band( + session->ftPEContext.pFTPreAuthReq->preAuthchannelNum))) + tx_flag |= HAL_USE_BD_RATE2_FOR_MANAGEMENT_FRAME; + else if ((SIR_BAND_5_GHZ == + lim_get_rf_band(session->currentOperChannel)) + || (session->pePersona == QDF_P2P_CLIENT_MODE) + || (session->pePersona == QDF_P2P_GO_MODE)) tx_flag |= HAL_USE_BD_RATE2_FOR_MANAGEMENT_FRAME; - if (session->pePersona == QDF_P2P_CLIENT_MODE || session->pePersona == QDF_STA_MODE) |
