mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
qcacld-3.0: Send correct tSirResultCodes on ROC response at LIM
Function lim_send_sme_rsp expects error code of tSirResultCodes type. Convert QDF_STATUS to tSirResultCodes before sending. Change-Id: I488167a22e8199455342a1ef3a17b0470d95b5bb CRs-Fixed: 2071677
This commit is contained in:
parent
ed1215ed10
commit
8070934344
1 changed files with 13 additions and 4 deletions
|
|
@ -137,7 +137,9 @@ int lim_process_remain_on_chnl_req(tpAniSirGlobal pMac, uint32_t *pMsg)
|
|||
if (status != QDF_STATUS_SUCCESS) {
|
||||
/* Post the meessage to Sme */
|
||||
lim_send_sme_rsp(pMac, eWNI_SME_REMAIN_ON_CHN_RSP,
|
||||
status, msgbuff->sessionId, msgbuff->scan_id);
|
||||
eSIR_SME_HAL_SEND_MESSAGE_FAIL,
|
||||
msgbuff->sessionId,
|
||||
msgbuff->scan_id);
|
||||
qdf_mem_free(pMac->lim.gpLimRemainOnChanReq);
|
||||
pMac->lim.gpLimRemainOnChanReq = NULL;
|
||||
}
|
||||
|
|
@ -338,9 +340,16 @@ void lim_remain_on_chn_rsp(tpAniSirGlobal pMac, QDF_STATUS status, uint32_t *dat
|
|||
}
|
||||
|
||||
/* Post the meessage to Sme */
|
||||
lim_send_sme_rsp(pMac, eWNI_SME_REMAIN_ON_CHN_RSP,
|
||||
status,
|
||||
MsgRemainonChannel->sessionId, 0);
|
||||
if (QDF_IS_STATUS_SUCCESS(status))
|
||||
lim_send_sme_rsp(pMac, eWNI_SME_REMAIN_ON_CHN_RSP,
|
||||
eSIR_SME_SUCCESS,
|
||||
MsgRemainonChannel->sessionId,
|
||||
0);
|
||||
else
|
||||
lim_send_sme_rsp(pMac, eWNI_SME_REMAIN_ON_CHN_RSP,
|
||||
eSIR_SME_REFUSED,
|
||||
MsgRemainonChannel->sessionId,
|
||||
0);
|
||||
|
||||
qdf_mem_free(pMac->lim.gpLimRemainOnChanReq);
|
||||
pMac->lim.gpLimRemainOnChanReq = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue