|
@@ -3194,88 +3194,6 @@ void lim_send_beacon_ind(tpAniSirGlobal pMac, tpPESession psessionEntry)
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
-static void lim_send_scan_offload_complete(tpAniSirGlobal pMac,
|
|
|
- tSirScanOffloadEvent *pScanEvent)
|
|
|
-{
|
|
|
-
|
|
|
- pMac->lim.gLimRspReqd = false;
|
|
|
- lim_send_sme_scan_rsp(pMac, pScanEvent->reasonCode,
|
|
|
- pScanEvent->sessionId, 0, pScanEvent->scanId);
|
|
|
-}
|
|
|
-
|
|
|
-void lim_process_rx_scan_event(tpAniSirGlobal pMac, void *buf)
|
|
|
-{
|
|
|
- tSirScanOffloadEvent *pScanEvent = (tSirScanOffloadEvent *) buf;
|
|
|
-
|
|
|
- switch (pScanEvent->event) {
|
|
|
- case SIR_SCAN_EVENT_STARTED:
|
|
|
- break;
|
|
|
- case SIR_SCAN_EVENT_COMPLETED:
|
|
|
- pe_debug("No.of beacons and probe response received per scan %d",
|
|
|
- pMac->lim.beacon_probe_rsp_cnt_per_scan);
|
|
|
-#ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM /* FEATURE_WLAN_DIAG_SUPPORT */
|
|
|
- lim_diag_event_report(pMac, WLAN_PE_DIAG_SCAN_COMPLETE_EVENT, NULL,
|
|
|
- eSIR_SUCCESS, eSIR_SUCCESS);
|
|
|
- if (pMac->lim.beacon_probe_rsp_cnt_per_scan)
|
|
|
- lim_diag_event_report(pMac,
|
|
|
- WLAN_PE_DIAG_SCAN_RESULT_FOUND_EVENT,
|
|
|
- NULL, eSIR_SUCCESS, eSIR_SUCCESS);
|
|
|
-#endif
|
|
|
- /* Fall through */
|
|
|
- case SIR_SCAN_EVENT_START_FAILED:
|
|
|
- if (ROC_SCAN_REQUESTOR_ID == pScanEvent->requestor) {
|
|
|
- lim_send_sme_roc_rsp(pMac, eWNI_SME_REMAIN_ON_CHN_RSP,
|
|
|
- eSIR_SME_SUCCESS,
|
|
|
- pScanEvent->sessionId,
|
|
|
- pScanEvent->scanId);
|
|
|
- qdf_mem_free(pMac->lim.gpLimRemainOnChanReq);
|
|
|
- pMac->lim.gpLimRemainOnChanReq = NULL;
|
|
|
- /*
|
|
|
- * If remain on channel timer expired and action frame
|
|
|
- * is pending then indicate confirmation with status
|
|
|
- * failure.
|
|
|
- */
|
|
|
- if (pMac->lim.mgmtFrameSessionId != 0xff) {
|
|
|
- lim_p2p_action_cnf(pMac, NULL, false, NULL);
|
|
|
- pMac->lim.mgmtFrameSessionId = 0xff;
|
|
|
- }
|
|
|
- } else if (PREAUTH_REQUESTOR_ID == pScanEvent->requestor) {
|
|
|
- lim_preauth_scan_event_handler(pMac, pScanEvent->event,
|
|
|
- pScanEvent->sessionId,
|
|
|
- pScanEvent->scanId);
|
|
|
- } else {
|
|
|
- lim_send_scan_offload_complete(pMac, pScanEvent);
|
|
|
- }
|
|
|
- break;
|
|
|
- case SIR_SCAN_EVENT_FOREIGN_CHANNEL:
|
|
|
- if (ROC_SCAN_REQUESTOR_ID == pScanEvent->requestor) {
|
|
|
- /*Send Ready on channel indication to SME */
|
|
|
- if (pMac->lim.gpLimRemainOnChanReq) {
|
|
|
- lim_send_sme_roc_rsp(pMac,
|
|
|
- eWNI_SME_REMAIN_ON_CHN_RDY_IND,
|
|
|
- eSIR_SME_SUCCESS,
|
|
|
- pScanEvent->sessionId,
|
|
|
- pScanEvent->scanId);
|
|
|
- } else {
|
|
|
- pe_err("gpLimRemainOnChanReq is NULL");
|
|
|
- }
|
|
|
- } else if (PREAUTH_REQUESTOR_ID == pScanEvent->requestor) {
|
|
|
- lim_preauth_scan_event_handler(pMac, pScanEvent->event,
|
|
|
- pScanEvent->sessionId,
|
|
|
- pScanEvent->scanId);
|
|
|
- }
|
|
|
- break;
|
|
|
- case SIR_SCAN_EVENT_BSS_CHANNEL:
|
|
|
- case SIR_SCAN_EVENT_DEQUEUED:
|
|
|
- case SIR_SCAN_EVENT_PREEMPTED:
|
|
|
- default:
|
|
|
- QDF_TRACE(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_DEBUG,
|
|
|
- "Received unhandled scan event %u",
|
|
|
- pScanEvent->event);
|
|
|
- }
|
|
|
- qdf_mem_free(buf);
|
|
|
-}
|
|
|
-
|
|
|
void lim_process_rx_channel_status_event(tpAniSirGlobal mac_ctx, void *buf)
|
|
|
{
|
|
|
struct lim_channel_status *chan_status = buf;
|