mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
qcacld-3.0: Remove support for eWNI_SME_GET_WPSPBC_SESSION_REQ
Change "qcacld-3.0: Remove csr_send_mb_get_wpspbc_sessions()" (Change-Id: Id745fdfe8b111f9e53b98fde90fa67de556dd3fc) removed the only funtion which issues the eWNI_SME_GET_WPSPBC_SESSION_REQ message. Since this message is now obsolete, remove support for this message from LIM. Change-Id: Ia95c4911600a45d1004b9e6148b1b04f414e2475 CRs-Fixed: 2134950
This commit is contained in:
parent
c42892c802
commit
1659538a43
4 changed files with 0 additions and 88 deletions
|
|
@ -93,7 +93,6 @@ enum eWniMsgTypes {
|
|||
eWNI_SME_GET_STATISTICS_RSP,
|
||||
eWNI_SME_GET_RSSI_REQ,
|
||||
eWNI_SME_GET_ASSOC_STAS_REQ,
|
||||
eWNI_SME_GET_WPSPBC_SESSION_REQ,
|
||||
eWNI_SME_WPS_PBC_PROBE_REQ_IND,
|
||||
eWNI_SME_UPPER_LAYER_ASSOC_CNF,
|
||||
eWNI_SME_SESSION_UPDATE_PARAM,
|
||||
|
|
|
|||
|
|
@ -1445,7 +1445,6 @@ static void lim_process_messages(tpAniSirGlobal mac_ctx,
|
|||
case eWNI_SME_DELTS_REQ:
|
||||
case eWNI_SME_GET_ASSOC_STAS_REQ:
|
||||
case eWNI_SME_SESSION_UPDATE_PARAM:
|
||||
case eWNI_SME_GET_WPSPBC_SESSION_REQ:
|
||||
case eWNI_SME_CHNG_MCC_BEACON_INTERVAL:
|
||||
case eWNI_SME_NEIGHBOR_REPORT_REQ_IND:
|
||||
case eWNI_SME_BEACON_REPORT_RESP_XMIT_IND:
|
||||
|
|
|
|||
|
|
@ -3086,88 +3086,6 @@ lim_assoc_sta_end:
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* lim_process_sme_get_wpspbc_sessions - process sme get wpspbc req
|
||||
*
|
||||
* @mac_ctx: Pointer to Global MAC structure
|
||||
* @msg_buf: pointer to WPS PBC overlap query message
|
||||
*
|
||||
* This function parses get WPS PBC overlap information
|
||||
* message and call callback to pass WPS PBC overlap
|
||||
* information back to hdd.
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
static void lim_process_sme_get_wpspbc_sessions(tpAniSirGlobal mac_ctx,
|
||||
uint32_t *msg_buf)
|
||||
{
|
||||
tSirSmeGetWPSPBCSessionsReq get_wps_pbc_sessions_req;
|
||||
tpPESession session_entry = NULL;
|
||||
tSap_Event sap_event;
|
||||
tpWLAN_SAPEventCB sap_event_cb = NULL;
|
||||
uint8_t session_id = CSR_SESSION_ID_INVALID;
|
||||
tSap_GetWPSPBCSessionEvent *sap_get_wpspbc_event;
|
||||
|
||||
if (msg_buf == NULL) {
|
||||
pe_err("Buffer is Pointing to NULL");
|
||||
return;
|
||||
}
|
||||
|
||||
sap_get_wpspbc_event = &sap_event.sapevt.sapGetWPSPBCSessionEvent;
|
||||
sap_get_wpspbc_event->status = QDF_STATUS_E_FAULT;
|
||||
|
||||
qdf_mem_copy(&get_wps_pbc_sessions_req, msg_buf,
|
||||
sizeof(struct sSirSmeGetWPSPBCSessionsReq));
|
||||
/*
|
||||
* Get Associated stations from PE
|
||||
* Find PE session Entry
|
||||
*/
|
||||
session_entry = pe_find_session_by_bssid(mac_ctx,
|
||||
get_wps_pbc_sessions_req.bssid.bytes, &session_id);
|
||||
if (session_entry == NULL) {
|
||||
pe_err("session does not exist for given bssId");
|
||||
goto lim_get_wpspbc_sessions_end;
|
||||
}
|
||||
|
||||
if (!LIM_IS_AP_ROLE(session_entry)) {
|
||||
pe_err("Received unexpected message in role %X",
|
||||
GET_LIM_SYSTEM_ROLE(session_entry));
|
||||
goto lim_get_wpspbc_sessions_end;
|
||||
}
|
||||
/*
|
||||
* Call hdd callback with sap event to send the
|
||||
* WPS PBC overlap information
|
||||
*/
|
||||
sap_event.sapHddEventCode = eSAP_GET_WPSPBC_SESSION_EVENT;
|
||||
sap_get_wpspbc_event->module = QDF_MODULE_ID_PE;
|
||||
|
||||
if (qdf_is_macaddr_zero(&get_wps_pbc_sessions_req.remove_mac)) {
|
||||
lim_get_wpspbc_sessions(mac_ctx,
|
||||
sap_get_wpspbc_event->addr,
|
||||
sap_get_wpspbc_event->UUID_E,
|
||||
&sap_get_wpspbc_event->wpsPBCOverlap,
|
||||
session_entry);
|
||||
} else {
|
||||
lim_remove_pbc_sessions(mac_ctx,
|
||||
get_wps_pbc_sessions_req.remove_mac,
|
||||
session_entry);
|
||||
/* don't have to inform the HDD/Host */
|
||||
return;
|
||||
}
|
||||
|
||||
pe_debug("wpsPBCOverlap %d", sap_get_wpspbc_event->wpsPBCOverlap);
|
||||
lim_print_mac_addr(mac_ctx,
|
||||
sap_get_wpspbc_event->addr.bytes, LOGD);
|
||||
|
||||
sap_get_wpspbc_event->status = QDF_STATUS_SUCCESS;
|
||||
|
||||
lim_get_wpspbc_sessions_end:
|
||||
sap_event_cb =
|
||||
(tpWLAN_SAPEventCB)get_wps_pbc_sessions_req.pSapEventCallback;
|
||||
if (NULL != sap_event_cb)
|
||||
sap_event_cb(&sap_event, get_wps_pbc_sessions_req.pUsrContext);
|
||||
}
|
||||
|
||||
/**
|
||||
* __lim_counter_measures()
|
||||
*
|
||||
|
|
@ -4982,9 +4900,6 @@ bool lim_process_sme_req_messages(tpAniSirGlobal pMac,
|
|||
__lim_process_roam_scan_offload_req(pMac, pMsgBuf);
|
||||
bufConsumed = false;
|
||||
break;
|
||||
case eWNI_SME_GET_WPSPBC_SESSION_REQ:
|
||||
lim_process_sme_get_wpspbc_sessions(pMac, pMsgBuf);
|
||||
break;
|
||||
case eWNI_SME_CHNG_MCC_BEACON_INTERVAL:
|
||||
/* Update the beaconInterval */
|
||||
__lim_process_sme_change_bi(pMac, pMsgBuf);
|
||||
|
|
|
|||
|
|
@ -269,7 +269,6 @@ uint8_t *mac_trace_get_sme_msg_string(uint16_t sme_msg)
|
|||
CASE_RETURN_STRING(eWNI_SME_GET_STATISTICS_RSP);
|
||||
CASE_RETURN_STRING(eWNI_SME_GET_RSSI_REQ);
|
||||
CASE_RETURN_STRING(eWNI_SME_GET_ASSOC_STAS_REQ);
|
||||
CASE_RETURN_STRING(eWNI_SME_GET_WPSPBC_SESSION_REQ);
|
||||
CASE_RETURN_STRING(eWNI_SME_WPS_PBC_PROBE_REQ_IND);
|
||||
CASE_RETURN_STRING(eWNI_SME_UPPER_LAYER_ASSOC_CNF);
|
||||
CASE_RETURN_STRING(eWNI_SME_SESSION_UPDATE_PARAM);
|
||||
|
|
|
|||
Loading…
Reference in a new issue