|
@@ -45,7 +45,7 @@
|
|
|
/* Macro to count heartbeat */
|
|
|
#define limResetHBPktCount(psessionEntry) (psessionEntry->LimRxedBeaconCntDuringHB = 0)
|
|
|
|
|
|
-/* Useful macros for fetching various states in pMac->lim */
|
|
|
+/* Useful macros for fetching various states in mac->lim */
|
|
|
/* gLimSystemRole */
|
|
|
#define GET_LIM_SYSTEM_ROLE(psessionEntry) (psessionEntry->limSystemRole)
|
|
|
#define LIM_IS_AP_ROLE(psessionEntry) (GET_LIM_SYSTEM_ROLE(psessionEntry) == eLIM_AP_ROLE)
|
|
@@ -57,19 +57,19 @@
|
|
|
#define LIM_IS_NDI_ROLE(psessionEntry) \
|
|
|
(GET_LIM_SYSTEM_ROLE(psessionEntry) == eLIM_NDI_ROLE)
|
|
|
/* gLimSmeState */
|
|
|
-#define GET_LIM_SME_STATE(pMac) (pMac->lim.gLimSmeState)
|
|
|
-#define SET_LIM_SME_STATE(pMac, state) (pMac->lim.gLimSmeState = state)
|
|
|
+#define GET_LIM_SME_STATE(mac) (mac->lim.gLimSmeState)
|
|
|
+#define SET_LIM_SME_STATE(mac, state) (mac->lim.gLimSmeState = state)
|
|
|
/* gLimMlmState */
|
|
|
-#define GET_LIM_MLM_STATE(pMac) (pMac->lim.gLimMlmState)
|
|
|
-#define SET_LIM_MLM_STATE(pMac, state) (pMac->lim.gLimMlmState = state)
|
|
|
+#define GET_LIM_MLM_STATE(mac) (mac->lim.gLimMlmState)
|
|
|
+#define SET_LIM_MLM_STATE(mac, state) (mac->lim.gLimMlmState = state)
|
|
|
/*tpdphHashNode mlmStaContext*/
|
|
|
#define GET_LIM_STA_CONTEXT_MLM_STATE(pStaDs) (pStaDs->mlmStaContext.mlmState)
|
|
|
#define SET_LIM_STA_CONTEXT_MLM_STATE(pStaDs, state) (pStaDs->mlmStaContext.mlmState = state)
|
|
|
#define LIM_IS_CONNECTION_ACTIVE(psessionEntry) (psessionEntry->LimRxedBeaconCntDuringHB)
|
|
|
-/*pMac->lim.gLimProcessDefdMsgs*/
|
|
|
-#define GET_LIM_PROCESS_DEFD_MESGS(pMac) (pMac->lim.gLimProcessDefdMsgs)
|
|
|
-#define SET_LIM_PROCESS_DEFD_MESGS(pMac, val) \
|
|
|
- pMac->lim.gLimProcessDefdMsgs = val; \
|
|
|
+/*mac->lim.gLimProcessDefdMsgs*/
|
|
|
+#define GET_LIM_PROCESS_DEFD_MESGS(mac) (mac->lim.gLimProcessDefdMsgs)
|
|
|
+#define SET_LIM_PROCESS_DEFD_MESGS(mac, val) \
|
|
|
+ mac->lim.gLimProcessDefdMsgs = val; \
|
|
|
pe_debug("%s Defer LIM messages - value %d", __func__, val);
|
|
|
|
|
|
/* LIM exported function templates */
|
|
@@ -108,13 +108,13 @@ typedef enum eMgmtFrmDropReason {
|
|
|
* This called upon LIM thread creation.
|
|
|
*/
|
|
|
extern QDF_STATUS lim_initialize(tpAniSirGlobal);
|
|
|
-QDF_STATUS pe_open(tpAniSirGlobal pMac, struct cds_config_info *cds_cfg);
|
|
|
-QDF_STATUS pe_close(tpAniSirGlobal pMac);
|
|
|
-void pe_register_tl_handle(tpAniSirGlobal pMac);
|
|
|
-QDF_STATUS lim_start(tpAniSirGlobal pMac);
|
|
|
-QDF_STATUS pe_start(tpAniSirGlobal pMac);
|
|
|
-void pe_stop(tpAniSirGlobal pMac);
|
|
|
-QDF_STATUS peProcessMsg(tpAniSirGlobal pMac, struct scheduler_msg *limMsg);
|
|
|
+QDF_STATUS pe_open(tpAniSirGlobal mac, struct cds_config_info *cds_cfg);
|
|
|
+QDF_STATUS pe_close(tpAniSirGlobal mac);
|
|
|
+void pe_register_tl_handle(tpAniSirGlobal mac);
|
|
|
+QDF_STATUS lim_start(tpAniSirGlobal mac);
|
|
|
+QDF_STATUS pe_start(tpAniSirGlobal mac);
|
|
|
+void pe_stop(tpAniSirGlobal mac);
|
|
|
+QDF_STATUS peProcessMsg(tpAniSirGlobal mac, struct scheduler_msg *limMsg);
|
|
|
|
|
|
/**
|
|
|
* pe_register_mgmt_rx_frm_callback() - registers callback for receiving
|
|
@@ -144,12 +144,12 @@ void pe_deregister_mgmt_rx_frm_callback(tpAniSirGlobal mac_ctx);
|
|
|
/**
|
|
|
* pe_register_callbacks_with_wma() - register SME and PE callback functions to
|
|
|
* WMA.
|
|
|
- * @pMac: mac global ctx
|
|
|
+ * @mac: mac global ctx
|
|
|
* @ready_req: Ready request parameters, containing callback pointers
|
|
|
*
|
|
|
* Return: None
|
|
|
*/
|
|
|
-void pe_register_callbacks_with_wma(tpAniSirGlobal pMac,
|
|
|
+void pe_register_callbacks_with_wma(tpAniSirGlobal mac,
|
|
|
tSirSmeReadyReq *ready_req);
|
|
|
|
|
|
/**
|
|
@@ -202,20 +202,20 @@ extern QDF_STATUS lim_handle_ibss_coalescing(tpAniSirGlobal,
|
|
|
tpSchBeaconStruct,
|
|
|
uint8_t *, struct pe_session *);
|
|
|
/* / Function used by other Sirius modules to read global SME state */
|
|
|
-static inline tLimSmeStates lim_get_sme_state(tpAniSirGlobal pMac)
|
|
|
+static inline tLimSmeStates lim_get_sme_state(tpAniSirGlobal mac)
|
|
|
{
|
|
|
- return pMac->lim.gLimSmeState;
|
|
|
+ return mac->lim.gLimSmeState;
|
|
|
}
|
|
|
|
|
|
extern void lim_received_hb_handler(tpAniSirGlobal, uint8_t, struct pe_session *);
|
|
|
extern void limCheckAndQuietBSS(tpAniSirGlobal);
|
|
|
/* / Function that triggers STA context deletion */
|
|
|
-extern void lim_trigger_sta_deletion(tpAniSirGlobal pMac, tpDphHashNode pStaDs,
|
|
|
+extern void lim_trigger_sta_deletion(tpAniSirGlobal mac, tpDphHashNode pStaDs,
|
|
|
struct pe_session *psessionEntry);
|
|
|
|
|
|
#ifdef FEATURE_WLAN_TDLS
|
|
|
/* Function that sends TDLS Del Sta indication to SME */
|
|
|
-extern void lim_send_sme_tdls_del_sta_ind(tpAniSirGlobal pMac, tpDphHashNode pStaDs,
|
|
|
+extern void lim_send_sme_tdls_del_sta_ind(tpAniSirGlobal mac, tpDphHashNode pStaDs,
|
|
|
struct pe_session *psessionEntry,
|
|
|
uint16_t reasonCode);
|
|
|
/**
|
|
@@ -240,15 +240,15 @@ static inline void lim_set_tdls_flags(roam_offload_synch_ind *roam_sync_ind_ptr,
|
|
|
/* / Function that checks for change in AP's capabilties on STA */
|
|
|
extern void lim_detect_change_in_ap_capabilities(tpAniSirGlobal,
|
|
|
tpSirProbeRespBeacon, struct pe_session *);
|
|
|
-QDF_STATUS lim_update_short_slot(tpAniSirGlobal pMac,
|
|
|
+QDF_STATUS lim_update_short_slot(tpAniSirGlobal mac,
|
|
|
tpSirProbeRespBeacon pBeacon,
|
|
|
tpUpdateBeaconParams pBeaconParams,
|
|
|
struct pe_session *);
|
|
|
|
|
|
-void lim_ps_offload_handle_missed_beacon_ind(tpAniSirGlobal pMac,
|
|
|
+void lim_ps_offload_handle_missed_beacon_ind(tpAniSirGlobal mac,
|
|
|
struct scheduler_msg *pMsg);
|
|
|
-void lim_send_heart_beat_timeout_ind(tpAniSirGlobal pMac, struct pe_session *psessionEntry);
|
|
|
-tMgmtFrmDropReason lim_is_pkt_candidate_for_drop(tpAniSirGlobal pMac,
|
|
|
+void lim_send_heart_beat_timeout_ind(tpAniSirGlobal mac, struct pe_session *psessionEntry);
|
|
|
+tMgmtFrmDropReason lim_is_pkt_candidate_for_drop(tpAniSirGlobal mac,
|
|
|
uint8_t *pRxPacketInfo,
|
|
|
uint32_t subType);
|
|
|
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
|
|
@@ -290,15 +290,15 @@ void lim_mon_init_session(tpAniSirGlobal mac_ptr,
|
|
|
#define limGetWsmMode(psessionEntry, pVal) (*(pVal) = (psessionEntry)->limWsmEnabled)
|
|
|
#define limGet11dMode(psessionEntry, pVal) (*(pVal) = (psessionEntry)->lim11dEnabled)
|
|
|
/* ----------------------------------------------------------------------- */
|
|
|
-static inline void lim_get_phy_mode(tpAniSirGlobal pMac, uint32_t *phyMode,
|
|
|
+static inline void lim_get_phy_mode(tpAniSirGlobal mac, uint32_t *phyMode,
|
|
|
struct pe_session *psessionEntry)
|
|
|
{
|
|
|
*phyMode =
|
|
|
- psessionEntry ? psessionEntry->gLimPhyMode : pMac->lim.gLimPhyMode;
|
|
|
+ psessionEntry ? psessionEntry->gLimPhyMode : mac->lim.gLimPhyMode;
|
|
|
}
|
|
|
|
|
|
/* ----------------------------------------------------------------------- */
|
|
|
-static inline void lim_get_rf_band_new(tpAniSirGlobal pMac,
|
|
|
+static inline void lim_get_rf_band_new(tpAniSirGlobal mac,
|
|
|
enum band_info *band,
|
|
|
struct pe_session *psessionEntry)
|
|
|
{
|
|
@@ -328,7 +328,7 @@ QDF_STATUS pe_mc_process_handler(struct scheduler_msg *msg);
|
|
|
\param struct scheduler_msg pMsg
|
|
|
\return none
|
|
|
-----------------------------------------------------------------*/
|
|
|
-void pe_free_msg(tpAniSirGlobal pMac, struct scheduler_msg *pMsg);
|
|
|
+void pe_free_msg(tpAniSirGlobal mac, struct scheduler_msg *pMsg);
|
|
|
|
|
|
/*--------------------------------------------------------------------------
|
|
|
|
|
@@ -336,14 +336,14 @@ void pe_free_msg(tpAniSirGlobal pMac, struct scheduler_msg *pMsg);
|
|
|
|
|
|
LIM calls this api to send the remain on channel response to SME.
|
|
|
|
|
|
- \param pMac - Pointer to Global MAC structure
|
|
|
+ \param mac - Pointer to Global MAC structure
|
|
|
\param status - status of the response
|
|
|
\param data - pointer to msg
|
|
|
|
|
|
\return void
|
|
|
|
|
|
--------------------------------------------------------------------------*/
|
|
|
-void lim_remain_on_chn_rsp(tpAniSirGlobal pMac, QDF_STATUS status, uint32_t *data);
|
|
|
+void lim_remain_on_chn_rsp(tpAniSirGlobal mac, QDF_STATUS status, uint32_t *data);
|
|
|
|
|
|
/**
|
|
|
* lim_process_abort_scan_ind() - abort the scan which is presently being run
|
|
@@ -355,14 +355,14 @@ void lim_remain_on_chn_rsp(tpAniSirGlobal pMac, QDF_STATUS status, uint32_t *dat
|
|
|
*
|
|
|
* @return: None
|
|
|
*/
|
|
|
-void lim_process_abort_scan_ind(tpAniSirGlobal pMac, uint8_t vdev_id,
|
|
|
+void lim_process_abort_scan_ind(tpAniSirGlobal mac, uint8_t vdev_id,
|
|
|
uint32_t scan_id, uint32_t scan_requestor_id);
|
|
|
|
|
|
void __lim_process_sme_assoc_cnf_new(tpAniSirGlobal, uint32_t, uint32_t *);
|
|
|
|
|
|
/**
|
|
|
* lim_process_sme_addts_rsp_timeout(): Send addts rsp timeout to SME
|
|
|
- * @pMac: Pointer to Global MAC structure
|
|
|
+ * @mac: Pointer to Global MAC structure
|
|
|
* @param: Addts rsp timer count
|
|
|
*
|
|
|
* This function is used to reset the addts sent flag and
|
|
@@ -370,7 +370,7 @@ void __lim_process_sme_assoc_cnf_new(tpAniSirGlobal, uint32_t, uint32_t *);
|
|
|
*
|
|
|
* Return: None
|
|
|
*/
|
|
|
-void lim_process_sme_addts_rsp_timeout(tpAniSirGlobal pMac, uint32_t param);
|
|
|
+void lim_process_sme_addts_rsp_timeout(tpAniSirGlobal mac, uint32_t param);
|
|
|
#ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH
|
|
|
void lim_fill_join_rsp_ht_caps(struct pe_session *session, tpSirSmeJoinRsp rsp);
|
|
|
#else
|