|
@@ -515,43 +515,6 @@ void lim_print_msg_name(tpAniSirGlobal pMac, uint16_t logLevel, uint32_t msgType
|
|
|
pe_debug("Msg: %s", lim_msg_str(msgType));
|
|
|
}
|
|
|
|
|
|
-void lim_send_open_system_auth(void *ctx, uint32_t param)
|
|
|
-{
|
|
|
- tLimMlmAuthReq *auth_req;
|
|
|
- tpPESession session_entry;
|
|
|
- tpAniSirGlobal mac_ctx = (tpAniSirGlobal)ctx;
|
|
|
- uint8_t session_id;
|
|
|
-
|
|
|
- session_id = mac_ctx->lim.limTimers.open_sys_auth_timer.sessionId;
|
|
|
- session_entry = pe_find_session_by_session_id(mac_ctx, session_id);
|
|
|
-
|
|
|
- if (!session_entry)
|
|
|
- return;
|
|
|
- /* Trigger MAC based Authentication */
|
|
|
- auth_req = qdf_mem_malloc(sizeof(tLimMlmAuthReq));
|
|
|
- if (!auth_req) {
|
|
|
- pe_err("mlmAuthReq :Memory alloc failed");
|
|
|
- lim_handle_sme_join_result(mac_ctx,
|
|
|
- eSIR_SME_AUTH_TIMEOUT_RESULT_CODE,
|
|
|
- eSIR_MAC_AUTH_ALGO_NOT_SUPPORTED_STATUS,
|
|
|
- session_entry);
|
|
|
- tx_timer_deactivate(&mac_ctx->lim.limTimers.
|
|
|
- open_sys_auth_timer);
|
|
|
- return;
|
|
|
- }
|
|
|
- sir_copy_mac_addr(auth_req->peerMacAddr, session_entry->bssId);
|
|
|
- auth_req->authType = eSIR_OPEN_SYSTEM;
|
|
|
- /* Update PE session Id */
|
|
|
- auth_req->sessionId = session_id;
|
|
|
- if (wlan_cfg_get_int(mac_ctx, WNI_CFG_AUTHENTICATE_FAILURE_TIMEOUT,
|
|
|
- (uint32_t *) &auth_req->authFailureTimeout) != eSIR_SUCCESS) {
|
|
|
- pe_err("Fail:retrieve AuthFailureTimeout");
|
|
|
- }
|
|
|
- lim_post_mlm_message(mac_ctx, LIM_MLM_AUTH_REQ, (uint32_t *) auth_req);
|
|
|
- tx_timer_deactivate(&mac_ctx->lim.limTimers.open_sys_auth_timer);
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
/**
|
|
|
* lim_init_mlm() - This function is called by limProcessSmeMessages() to
|
|
|
* initialize MLM state machine on STA
|