|
@@ -415,10 +415,10 @@ typedef struct sLimMlmLinkTestStopReq {
|
|
|
|
|
|
/* Function templates */
|
|
|
|
|
|
-bool lim_process_sme_req_messages(tpAniSirGlobal, struct scheduler_msg *);
|
|
|
-void lim_process_mlm_req_messages(tpAniSirGlobal, struct scheduler_msg *);
|
|
|
-void lim_process_mlm_rsp_messages(tpAniSirGlobal, uint32_t, uint32_t *);
|
|
|
-void lim_process_sme_del_bss_rsp(tpAniSirGlobal, uint32_t, struct pe_session *);
|
|
|
+bool lim_process_sme_req_messages(struct mac_context *, struct scheduler_msg *);
|
|
|
+void lim_process_mlm_req_messages(struct mac_context *, struct scheduler_msg *);
|
|
|
+void lim_process_mlm_rsp_messages(struct mac_context *, uint32_t, uint32_t *);
|
|
|
+void lim_process_sme_del_bss_rsp(struct mac_context *, uint32_t, struct pe_session *);
|
|
|
|
|
|
/**
|
|
|
* lim_process_mlm_start_cnf(): called to processes MLM_START_CNF message from
|
|
@@ -428,18 +428,18 @@ void lim_process_sme_del_bss_rsp(tpAniSirGlobal, uint32_t, struct pe_session *);
|
|
|
*
|
|
|
* Return: None
|
|
|
*/
|
|
|
-void lim_process_mlm_start_cnf(tpAniSirGlobal mac_ctx, uint32_t *msg_buf);
|
|
|
+void lim_process_mlm_start_cnf(struct mac_context *mac_ctx, uint32_t *msg_buf);
|
|
|
|
|
|
-void lim_get_random_bssid(tpAniSirGlobal mac, uint8_t *data);
|
|
|
+void lim_get_random_bssid(struct mac_context *mac, uint8_t *data);
|
|
|
|
|
|
/* Function to handle HT and HT IE CFG parameter intializations */
|
|
|
void handle_ht_capabilityand_ht_info(struct mac_context *mac,
|
|
|
struct pe_session *pe_session);
|
|
|
|
|
|
-void lim_handle_param_update(tpAniSirGlobal mac, eUpdateIEsType cfgId);
|
|
|
+void lim_handle_param_update(struct mac_context *mac, eUpdateIEsType cfgId);
|
|
|
|
|
|
/* Function to apply CFG parameters before join/reassoc/start BSS */
|
|
|
-void lim_apply_configuration(tpAniSirGlobal, struct pe_session *);
|
|
|
+void lim_apply_configuration(struct mac_context *, struct pe_session *);
|
|
|
|
|
|
/**
|
|
|
* lim_set_cfg_protection() - sets lim global cfg cache from the config
|
|
@@ -448,32 +448,32 @@ void lim_apply_configuration(tpAniSirGlobal, struct pe_session *);
|
|
|
*
|
|
|
* Return none
|
|
|
*/
|
|
|
-void lim_set_cfg_protection(tpAniSirGlobal mac, struct pe_session *pesessionEntry);
|
|
|
+void lim_set_cfg_protection(struct mac_context *mac, struct pe_session *pesessionEntry);
|
|
|
|
|
|
/* Function to Initialize MLM state machine on STA */
|
|
|
-QDF_STATUS lim_init_mlm(tpAniSirGlobal);
|
|
|
+QDF_STATUS lim_init_mlm(struct mac_context *);
|
|
|
|
|
|
/* Function to cleanup MLM state machine */
|
|
|
-void lim_cleanup_mlm(tpAniSirGlobal);
|
|
|
+void lim_cleanup_mlm(struct mac_context *);
|
|
|
|
|
|
/* Management frame handling functions */
|
|
|
-void lim_process_beacon_frame(tpAniSirGlobal, uint8_t *, struct pe_session *);
|
|
|
-void lim_process_probe_req_frame(tpAniSirGlobal, uint8_t *, struct pe_session *);
|
|
|
-void lim_process_probe_rsp_frame(tpAniSirGlobal, uint8_t *, struct pe_session *);
|
|
|
-void lim_process_probe_req_frame_multiple_bss(tpAniSirGlobal, uint8_t *,
|
|
|
+void lim_process_beacon_frame(struct mac_context *, uint8_t *, struct pe_session *);
|
|
|
+void lim_process_probe_req_frame(struct mac_context *, uint8_t *, struct pe_session *);
|
|
|
+void lim_process_probe_rsp_frame(struct mac_context *, uint8_t *, struct pe_session *);
|
|
|
+void lim_process_probe_req_frame_multiple_bss(struct mac_context *, uint8_t *,
|
|
|
struct pe_session *);
|
|
|
|
|
|
/* Process Auth frame when we have a session in progress. */
|
|
|
-void lim_process_auth_frame(tpAniSirGlobal, uint8_t *, struct pe_session *);
|
|
|
-QDF_STATUS lim_process_auth_frame_no_session(tpAniSirGlobal mac, uint8_t *,
|
|
|
+void lim_process_auth_frame(struct mac_context *, uint8_t *, struct pe_session *);
|
|
|
+QDF_STATUS lim_process_auth_frame_no_session(struct mac_context *mac, uint8_t *,
|
|
|
void *body);
|
|
|
|
|
|
-void lim_process_assoc_req_frame(tpAniSirGlobal, uint8_t *, uint8_t, struct pe_session *);
|
|
|
-void lim_send_mlm_assoc_ind(tpAniSirGlobal mac, tpDphHashNode pStaDs,
|
|
|
+void lim_process_assoc_req_frame(struct mac_context *, uint8_t *, uint8_t, struct pe_session *);
|
|
|
+void lim_send_mlm_assoc_ind(struct mac_context *mac, tpDphHashNode pStaDs,
|
|
|
struct pe_session *pe_session);
|
|
|
|
|
|
-void lim_process_assoc_rsp_frame(tpAniSirGlobal, uint8_t *, uint8_t, struct pe_session *);
|
|
|
-void lim_process_disassoc_frame(tpAniSirGlobal, uint8_t *, struct pe_session *);
|
|
|
+void lim_process_assoc_rsp_frame(struct mac_context *, uint8_t *, uint8_t, struct pe_session *);
|
|
|
+void lim_process_disassoc_frame(struct mac_context *, uint8_t *, struct pe_session *);
|
|
|
/*
|
|
|
* lim_perform_disassoc() - Actual action taken after receiving disassoc
|
|
|
* @mac_ctx: Global MAC context
|
|
@@ -484,7 +484,7 @@ void lim_process_disassoc_frame(tpAniSirGlobal, uint8_t *, struct pe_session *);
|
|
|
*
|
|
|
* Return: None
|
|
|
*/
|
|
|
-void lim_perform_disassoc(tpAniSirGlobal mac_ctx, int32_t frame_rssi,
|
|
|
+void lim_perform_disassoc(struct mac_context *mac_ctx, int32_t frame_rssi,
|
|
|
uint16_t rc, struct pe_session *pe_session,
|
|
|
tSirMacAddr addr);
|
|
|
/*
|
|
@@ -496,15 +496,15 @@ void lim_perform_disassoc(tpAniSirGlobal mac_ctx, int32_t frame_rssi,
|
|
|
* Return: None
|
|
|
*/
|
|
|
#ifdef FEATURE_WLAN_TDLS
|
|
|
-void lim_disassoc_tdls_peers(tpAniSirGlobal mac_ctx,
|
|
|
+void lim_disassoc_tdls_peers(struct mac_context *mac_ctx,
|
|
|
struct pe_session *pe_session, tSirMacAddr addr);
|
|
|
#else
|
|
|
-static inline void lim_disassoc_tdls_peers(tpAniSirGlobal mac_ctx,
|
|
|
+static inline void lim_disassoc_tdls_peers(struct mac_context *mac_ctx,
|
|
|
struct pe_session *pe_session, tSirMacAddr addr)
|
|
|
{
|
|
|
}
|
|
|
#endif
|
|
|
-void lim_process_deauth_frame(tpAniSirGlobal, uint8_t *, struct pe_session *);
|
|
|
+void lim_process_deauth_frame(struct mac_context *, uint8_t *, struct pe_session *);
|
|
|
/*
|
|
|
* lim_perform_deauth() - Actual action taken after receiving deauth
|
|
|
* @mac_ctx: Global MAC context
|
|
@@ -515,26 +515,26 @@ void lim_process_deauth_frame(tpAniSirGlobal, uint8_t *, struct pe_session *);
|
|
|
*
|
|
|
* Return: None
|
|
|
*/
|
|
|
-void lim_perform_deauth(tpAniSirGlobal mac_ctx, struct pe_session *pe_session,
|
|
|
+void lim_perform_deauth(struct mac_context *mac_ctx, struct pe_session *pe_session,
|
|
|
uint16_t rc, tSirMacAddr addr, int32_t frame_rssi);
|
|
|
-void lim_process_action_frame(tpAniSirGlobal, uint8_t *, struct pe_session *);
|
|
|
-void lim_process_action_frame_no_session(tpAniSirGlobal mac, uint8_t *pRxMetaInfo);
|
|
|
+void lim_process_action_frame(struct mac_context *, uint8_t *, struct pe_session *);
|
|
|
+void lim_process_action_frame_no_session(struct mac_context *mac, uint8_t *pRxMetaInfo);
|
|
|
|
|
|
-void lim_populate_p2p_mac_header(tpAniSirGlobal, uint8_t *);
|
|
|
-void lim_populate_mac_header(tpAniSirGlobal, uint8_t *, uint8_t, uint8_t,
|
|
|
+void lim_populate_p2p_mac_header(struct mac_context *, uint8_t *);
|
|
|
+void lim_populate_mac_header(struct mac_context *, uint8_t *, uint8_t, uint8_t,
|
|
|
tSirMacAddr, tSirMacAddr);
|
|
|
-QDF_STATUS lim_send_probe_req_mgmt_frame(tpAniSirGlobal, tSirMacSSid *,
|
|
|
+QDF_STATUS lim_send_probe_req_mgmt_frame(struct mac_context *, tSirMacSSid *,
|
|
|
tSirMacAddr, uint8_t, tSirMacAddr,
|
|
|
uint32_t, uint16_t *, uint8_t *);
|
|
|
-void lim_send_probe_rsp_mgmt_frame(tpAniSirGlobal, tSirMacAddr, tpAniSSID, short,
|
|
|
+void lim_send_probe_rsp_mgmt_frame(struct mac_context *, tSirMacAddr, tpAniSSID, short,
|
|
|
uint8_t, struct pe_session *, uint8_t);
|
|
|
-void lim_send_auth_mgmt_frame(tpAniSirGlobal, tSirMacAuthFrameBody *, tSirMacAddr,
|
|
|
+void lim_send_auth_mgmt_frame(struct mac_context *, tSirMacAuthFrameBody *, tSirMacAddr,
|
|
|
uint8_t, struct pe_session *);
|
|
|
-void lim_send_assoc_req_mgmt_frame(tpAniSirGlobal, tLimMlmAssocReq *, struct pe_session *);
|
|
|
+void lim_send_assoc_req_mgmt_frame(struct mac_context *, tLimMlmAssocReq *, struct pe_session *);
|
|
|
#ifdef WLAN_FEATURE_HOST_ROAM
|
|
|
-void lim_send_reassoc_req_with_ft_ies_mgmt_frame(tpAniSirGlobal mac,
|
|
|
+void lim_send_reassoc_req_with_ft_ies_mgmt_frame(struct mac_context *mac,
|
|
|
tLimMlmReassocReq *pMlmReassocReq, struct pe_session *pe_session);
|
|
|
-void lim_send_reassoc_req_mgmt_frame(tpAniSirGlobal, tLimMlmReassocReq *,
|
|
|
+void lim_send_reassoc_req_mgmt_frame(struct mac_context *, tLimMlmReassocReq *,
|
|
|
struct pe_session *);
|
|
|
/**
|
|
|
* lim_process_rx_scan_handler() -
|
|
@@ -549,10 +549,10 @@ void lim_process_rx_scan_handler(struct wlan_objmgr_vdev *vdev,
|
|
|
struct scan_event *event, void *arg);
|
|
|
#else
|
|
|
static inline void lim_send_reassoc_req_with_ft_ies_mgmt_frame(
|
|
|
- tpAniSirGlobal mac, tLimMlmReassocReq *pMlmReassocReq,
|
|
|
+ struct mac_context *mac, tLimMlmReassocReq *pMlmReassocReq,
|
|
|
struct pe_session *pe_session)
|
|
|
{}
|
|
|
-static inline void lim_send_reassoc_req_mgmt_frame(tpAniSirGlobal mac_ctx,
|
|
|
+static inline void lim_send_reassoc_req_mgmt_frame(struct mac_context *mac_ctx,
|
|
|
tLimMlmReassocReq *reassoc_req, struct pe_session *pe_session)
|
|
|
{}
|
|
|
static inline void lim_process_rx_scan_handler(struct wlan_objmgr_vdev *vdev,
|
|
@@ -568,7 +568,7 @@ static inline void lim_process_rx_scan_handler(struct wlan_objmgr_vdev *vdev,
|
|
|
*
|
|
|
* Return: void
|
|
|
*/
|
|
|
-void lim_process_set_he_bss_color(tpAniSirGlobal mac_ctx, uint32_t *msg_buf);
|
|
|
+void lim_process_set_he_bss_color(struct mac_context *mac_ctx, uint32_t *msg_buf);
|
|
|
|
|
|
/**
|
|
|
* lim_process_obss_color_collision_info() - Process the obss color collision
|
|
@@ -578,7 +578,7 @@ void lim_process_set_he_bss_color(tpAniSirGlobal mac_ctx, uint32_t *msg_buf);
|
|
|
*
|
|
|
* Return: void
|
|
|
*/
|
|
|
-void lim_process_obss_color_collision_info(tpAniSirGlobal mac_ctx,
|
|
|
+void lim_process_obss_color_collision_info(struct mac_context *mac_ctx,
|
|
|
uint32_t *msg_buf);
|
|
|
|
|
|
/**
|
|
@@ -589,66 +589,66 @@ void lim_process_obss_color_collision_info(tpAniSirGlobal mac_ctx,
|
|
|
*
|
|
|
* Return: void
|
|
|
*/
|
|
|
-void lim_send_obss_color_collision_cfg(tpAniSirGlobal mac_ctx,
|
|
|
+void lim_send_obss_color_collision_cfg(struct mac_context *mac_ctx,
|
|
|
struct pe_session *session,
|
|
|
enum wmi_obss_color_collision_evt_type
|
|
|
event_type);
|
|
|
#else
|
|
|
-static inline void lim_process_set_he_bss_color(tpAniSirGlobal mac_ctx,
|
|
|
+static inline void lim_process_set_he_bss_color(struct mac_context *mac_ctx,
|
|
|
uint32_t *msg_buf)
|
|
|
{}
|
|
|
-static inline void lim_process_obss_color_collision_info(tpAniSirGlobal mac_ctx,
|
|
|
+static inline void lim_process_obss_color_collision_info(struct mac_context *mac_ctx,
|
|
|
uint32_t *msg_buf)
|
|
|
{}
|
|
|
-static inline void lim_send_obss_color_collision_cfg(tpAniSirGlobal mac_ctx,
|
|
|
+static inline void lim_send_obss_color_collision_cfg(struct mac_context *mac_ctx,
|
|
|
struct pe_session *session,
|
|
|
enum wmi_obss_color_collision_evt_type event_type)
|
|
|
{}
|
|
|
#endif
|
|
|
-void lim_send_delts_req_action_frame(tpAniSirGlobal mac, tSirMacAddr peer,
|
|
|
+void lim_send_delts_req_action_frame(struct mac_context *mac, tSirMacAddr peer,
|
|
|
uint8_t wmmTspecPresent,
|
|
|
tSirMacTSInfo * pTsinfo,
|
|
|
tSirMacTspecIE * pTspecIe,
|
|
|
struct pe_session *pe_session);
|
|
|
-void lim_send_addts_req_action_frame(tpAniSirGlobal mac, tSirMacAddr peerMacAddr,
|
|
|
+void lim_send_addts_req_action_frame(struct mac_context *mac, tSirMacAddr peerMacAddr,
|
|
|
tSirAddtsReqInfo *addts, struct pe_session *);
|
|
|
-void lim_send_addts_rsp_action_frame(tpAniSirGlobal mac, tSirMacAddr peerMacAddr,
|
|
|
+void lim_send_addts_rsp_action_frame(struct mac_context *mac, tSirMacAddr peerMacAddr,
|
|
|
uint16_t statusCode, tSirAddtsReqInfo *addts,
|
|
|
tSirMacScheduleIE *pSchedule, struct pe_session *);
|
|
|
|
|
|
-void lim_send_assoc_rsp_mgmt_frame(tpAniSirGlobal, uint16_t, uint16_t, tSirMacAddr,
|
|
|
+void lim_send_assoc_rsp_mgmt_frame(struct mac_context *, uint16_t, uint16_t, tSirMacAddr,
|
|
|
uint8_t, tpDphHashNode pSta, struct pe_session *);
|
|
|
|
|
|
-void lim_send_disassoc_mgmt_frame(tpAniSirGlobal, uint16_t, tSirMacAddr,
|
|
|
+void lim_send_disassoc_mgmt_frame(struct mac_context *, uint16_t, tSirMacAddr,
|
|
|
struct pe_session *, bool waitForAck);
|
|
|
-void lim_send_deauth_mgmt_frame(tpAniSirGlobal, uint16_t, tSirMacAddr, struct pe_session *,
|
|
|
+void lim_send_deauth_mgmt_frame(struct mac_context *, uint16_t, tSirMacAddr, struct pe_session *,
|
|
|
bool waitForAck);
|
|
|
|
|
|
-void lim_process_mlm_update_hidden_ssid_rsp(tpAniSirGlobal mac_ctx,
|
|
|
+void lim_process_mlm_update_hidden_ssid_rsp(struct mac_context *mac_ctx,
|
|
|
struct scheduler_msg *msg);
|
|
|
|
|
|
-tSirResultCodes lim_mlm_add_bss(tpAniSirGlobal, tLimMlmStartReq *,
|
|
|
+tSirResultCodes lim_mlm_add_bss(struct mac_context *, tLimMlmStartReq *,
|
|
|
struct pe_session *pe_session);
|
|
|
|
|
|
-QDF_STATUS lim_send_channel_switch_mgmt_frame(tpAniSirGlobal, tSirMacAddr,
|
|
|
+QDF_STATUS lim_send_channel_switch_mgmt_frame(struct mac_context *, tSirMacAddr,
|
|
|
uint8_t, uint8_t, uint8_t,
|
|
|
struct pe_session *);
|
|
|
|
|
|
-QDF_STATUS lim_send_extended_chan_switch_action_frame(tpAniSirGlobal mac_ctx,
|
|
|
+QDF_STATUS lim_send_extended_chan_switch_action_frame(struct mac_context *mac_ctx,
|
|
|
tSirMacAddr peer, uint8_t mode, uint8_t new_op_class,
|
|
|
uint8_t new_channel, uint8_t count, struct pe_session *session_entry);
|
|
|
QDF_STATUS lim_p2p_oper_chan_change_confirm_action_frame(
|
|
|
- tpAniSirGlobal mac_ctx, tSirMacAddr peer,
|
|
|
+ struct mac_context *mac_ctx, tSirMacAddr peer,
|
|
|
struct pe_session *session_entry);
|
|
|
|
|
|
-QDF_STATUS lim_send_vht_opmode_notification_frame(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS lim_send_vht_opmode_notification_frame(struct mac_context *mac,
|
|
|
tSirMacAddr peer, uint8_t nMode,
|
|
|
struct pe_session *pe_session);
|
|
|
|
|
|
-QDF_STATUS lim_send_neighbor_report_request_frame(tpAniSirGlobal,
|
|
|
+QDF_STATUS lim_send_neighbor_report_request_frame(struct mac_context *,
|
|
|
tpSirMacNeighborReportReq,
|
|
|
tSirMacAddr, struct pe_session *);
|
|
|
-QDF_STATUS lim_send_link_report_action_frame(tpAniSirGlobal, tpSirMacLinkReport,
|
|
|
+QDF_STATUS lim_send_link_report_action_frame(struct mac_context *, tpSirMacLinkReport,
|
|
|
tSirMacAddr, struct pe_session *);
|
|
|
|
|
|
/**
|
|
@@ -664,7 +664,7 @@ QDF_STATUS lim_send_link_report_action_frame(tpAniSirGlobal, tpSirMacLinkReport,
|
|
|
* Return: Ret Status
|
|
|
*/
|
|
|
QDF_STATUS
|
|
|
-lim_send_radio_measure_report_action_frame(tpAniSirGlobal mac,
|
|
|
+lim_send_radio_measure_report_action_frame(struct mac_context *mac,
|
|
|
uint8_t dialog_token,
|
|
|
uint8_t num_report,
|
|
|
bool is_last_frame,
|
|
@@ -673,30 +673,30 @@ lim_send_radio_measure_report_action_frame(tpAniSirGlobal mac,
|
|
|
struct pe_session *pe_session);
|
|
|
|
|
|
#ifdef FEATURE_WLAN_TDLS
|
|
|
-void lim_init_tdls_data(tpAniSirGlobal, struct pe_session *);
|
|
|
-QDF_STATUS lim_process_sme_tdls_mgmt_send_req(tpAniSirGlobal mac,
|
|
|
+void lim_init_tdls_data(struct mac_context *, struct pe_session *);
|
|
|
+QDF_STATUS lim_process_sme_tdls_mgmt_send_req(struct mac_context *mac,
|
|
|
uint32_t *pMsgBuf);
|
|
|
-QDF_STATUS lim_process_sme_tdls_add_sta_req(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS lim_process_sme_tdls_add_sta_req(struct mac_context *mac,
|
|
|
uint32_t *pMsgBuf);
|
|
|
-QDF_STATUS lim_process_sme_tdls_del_sta_req(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS lim_process_sme_tdls_del_sta_req(struct mac_context *mac,
|
|
|
uint32_t *pMsgBuf);
|
|
|
void lim_send_sme_mgmt_tx_completion(
|
|
|
- tpAniSirGlobal mac,
|
|
|
+ struct mac_context *mac,
|
|
|
uint32_t sme_session_id,
|
|
|
uint32_t txCompleteStatus);
|
|
|
-QDF_STATUS lim_delete_tdls_peers(tpAniSirGlobal mac_ctx,
|
|
|
+QDF_STATUS lim_delete_tdls_peers(struct mac_context *mac_ctx,
|
|
|
struct pe_session *session_entry);
|
|
|
-QDF_STATUS lim_process_tdls_add_sta_rsp(tpAniSirGlobal mac, void *msg, struct pe_session *);
|
|
|
-void lim_process_tdls_del_sta_rsp(tpAniSirGlobal mac_ctx,
|
|
|
+QDF_STATUS lim_process_tdls_add_sta_rsp(struct mac_context *mac, void *msg, struct pe_session *);
|
|
|
+void lim_process_tdls_del_sta_rsp(struct mac_context *mac_ctx,
|
|
|
struct scheduler_msg *lim_msg,
|
|
|
struct pe_session *session_entry);
|
|
|
#else
|
|
|
-static inline QDF_STATUS lim_delete_tdls_peers(tpAniSirGlobal mac_ctx,
|
|
|
+static inline QDF_STATUS lim_delete_tdls_peers(struct mac_context *mac_ctx,
|
|
|
struct pe_session *session_entry)
|
|
|
{
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
-static inline void lim_init_tdls_data(tpAniSirGlobal mac,
|
|
|
+static inline void lim_init_tdls_data(struct mac_context *mac,
|
|
|
struct pe_session *pe_session)
|
|
|
{
|
|
|
|
|
@@ -705,19 +705,19 @@ static inline void lim_init_tdls_data(tpAniSirGlobal mac,
|
|
|
|
|
|
/* Algorithms & Link Monitoring related functions */
|
|
|
/* / Function that handles heartbeat failure */
|
|
|
-void lim_handle_heart_beat_failure(tpAniSirGlobal, struct pe_session *);
|
|
|
+void lim_handle_heart_beat_failure(struct mac_context *, struct pe_session *);
|
|
|
|
|
|
/* / Function that triggers link tear down with AP upon HB failure */
|
|
|
-void lim_tear_down_link_with_ap(tpAniSirGlobal, uint8_t, tSirMacReasonCodes);
|
|
|
+void lim_tear_down_link_with_ap(struct mac_context *, uint8_t, tSirMacReasonCodes);
|
|
|
|
|
|
/* / Function that processes Max retries interrupt from TFP */
|
|
|
void limHandleMaxRetriesInterrupt(uint32_t);
|
|
|
|
|
|
/* / Function that defers the messages received */
|
|
|
-uint32_t lim_defer_msg(tpAniSirGlobal, struct scheduler_msg *);
|
|
|
+uint32_t lim_defer_msg(struct mac_context *, struct scheduler_msg *);
|
|
|
|
|
|
/* / Function that Switches the Channel and sets the CB Mode */
|
|
|
-void lim_set_channel(tpAniSirGlobal mac, uint8_t channel,
|
|
|
+void lim_set_channel(struct mac_context *mac, uint8_t channel,
|
|
|
uint8_t ch_center_freq_seg0, uint8_t ch_center_freq_seg1,
|
|
|
enum phy_ch_width ch_width, int8_t maxTxPower,
|
|
|
uint8_t peSessionId, uint32_t cac_duration_ms,
|
|
@@ -726,60 +726,60 @@ void lim_set_channel(tpAniSirGlobal mac, uint8_t channel,
|
|
|
|
|
|
#ifdef ANI_SUPPORT_11H
|
|
|
/* / Function that sends Measurement Report action frame */
|
|
|
-QDF_STATUS lim_send_meas_report_frame(tpAniSirGlobal, tpSirMacMeasReqActionFrame,
|
|
|
+QDF_STATUS lim_send_meas_report_frame(struct mac_context *, tpSirMacMeasReqActionFrame,
|
|
|
tSirMacAddr, struct pe_session *pe_session);
|
|
|
|
|
|
/* / Function that sends TPC Report action frame */
|
|
|
-QDF_STATUS lim_send_tpc_report_frame(tpAniSirGlobal, tpSirMacTpcReqActionFrame,
|
|
|
+QDF_STATUS lim_send_tpc_report_frame(struct mac_context *, tpSirMacTpcReqActionFrame,
|
|
|
tSirMacAddr, struct pe_session *pe_session);
|
|
|
#endif
|
|
|
|
|
|
/* / Function that sends TPC Request action frame */
|
|
|
-void lim_send_tpc_request_frame(tpAniSirGlobal, tSirMacAddr,
|
|
|
+void lim_send_tpc_request_frame(struct mac_context *, tSirMacAddr,
|
|
|
struct pe_session *pe_session);
|
|
|
|
|
|
/* Function(s) to handle responses received from HAL */
|
|
|
-void lim_process_mlm_add_bss_rsp(tpAniSirGlobal mac,
|
|
|
+void lim_process_mlm_add_bss_rsp(struct mac_context *mac,
|
|
|
struct scheduler_msg *limMsgQ);
|
|
|
-void lim_process_mlm_add_sta_rsp(tpAniSirGlobal mac,
|
|
|
+void lim_process_mlm_add_sta_rsp(struct mac_context *mac,
|
|
|
struct scheduler_msg *limMsgQt,
|
|
|
struct pe_session *pe_session);
|
|
|
-void lim_process_mlm_del_sta_rsp(tpAniSirGlobal mac,
|
|
|
+void lim_process_mlm_del_sta_rsp(struct mac_context *mac,
|
|
|
struct scheduler_msg *limMsgQ);
|
|
|
-void lim_process_mlm_del_bss_rsp(tpAniSirGlobal mac,
|
|
|
+void lim_process_mlm_del_bss_rsp(struct mac_context *mac,
|
|
|
struct scheduler_msg *limMsgQ,
|
|
|
struct pe_session *);
|
|
|
-void lim_process_sta_mlm_add_sta_rsp(tpAniSirGlobal mac,
|
|
|
+void lim_process_sta_mlm_add_sta_rsp(struct mac_context *mac,
|
|
|
struct scheduler_msg *limMsgQ,
|
|
|
struct pe_session *pe_session);
|
|
|
-void lim_process_sta_mlm_del_sta_rsp(tpAniSirGlobal mac,
|
|
|
+void lim_process_sta_mlm_del_sta_rsp(struct mac_context *mac,
|
|
|
struct scheduler_msg *limMsgQ,
|
|
|
struct pe_session *pe_session);
|
|
|
-void lim_process_sta_mlm_del_bss_rsp(tpAniSirGlobal mac,
|
|
|
+void lim_process_sta_mlm_del_bss_rsp(struct mac_context *mac,
|
|
|
struct scheduler_msg *limMsgQ,
|
|
|
struct pe_session *pe_session);
|
|
|
-void lim_process_mlm_set_sta_key_rsp(tpAniSirGlobal mac,
|
|
|
+void lim_process_mlm_set_sta_key_rsp(struct mac_context *mac,
|
|
|
struct scheduler_msg *limMsgQ);
|
|
|
-void lim_process_mlm_set_bss_key_rsp(tpAniSirGlobal mac,
|
|
|
+void lim_process_mlm_set_bss_key_rsp(struct mac_context *mac,
|
|
|
struct scheduler_msg *limMsgQ);
|
|
|
|
|
|
/* Function to process WMA_SWITCH_CHANNEL_RSP message */
|
|
|
-void lim_process_switch_channel_rsp(tpAniSirGlobal mac, void *);
|
|
|
+void lim_process_switch_channel_rsp(struct mac_context *mac, void *);
|
|
|
|
|
|
-void lim_covert_channel_scan_type(tpAniSirGlobal mac, uint8_t channelNum,
|
|
|
+void lim_covert_channel_scan_type(struct mac_context *mac, uint8_t channelNum,
|
|
|
bool passiveToActive);
|
|
|
-void lim_set_dfs_channel_list(tpAniSirGlobal mac, uint8_t channelNum,
|
|
|
+void lim_set_dfs_channel_list(struct mac_context *mac, uint8_t channelNum,
|
|
|
tSirDFSChannelList *dfsChannelList);
|
|
|
-void limContinueChannelLearn(tpAniSirGlobal);
|
|
|
+void limContinueChannelLearn(struct mac_context *);
|
|
|
QDF_STATUS lim_sta_send_down_link(join_params *param);
|
|
|
|
|
|
#ifdef WLAN_FEATURE_11W
|
|
|
/* 11w send SA query request action frame */
|
|
|
-QDF_STATUS lim_send_sa_query_request_frame(tpAniSirGlobal mac, uint8_t *transId,
|
|
|
+QDF_STATUS lim_send_sa_query_request_frame(struct mac_context *mac, uint8_t *transId,
|
|
|
tSirMacAddr peer,
|
|
|
struct pe_session *pe_session);
|
|
|
/* 11w SA query request action frame handler */
|
|
|
-QDF_STATUS lim_send_sa_query_response_frame(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS lim_send_sa_query_response_frame(struct mac_context *mac,
|
|
|
uint8_t *transId, tSirMacAddr peer,
|
|
|
struct pe_session *pe_session);
|
|
|
#endif
|
|
@@ -810,7 +810,7 @@ QDF_STATUS lim_send_sa_query_response_frame(tpAniSirGlobal mac,
|
|
|
* @return None
|
|
|
*/
|
|
|
static inline void
|
|
|
-lim_post_sme_message(tpAniSirGlobal mac, uint32_t msgType, uint32_t *pMsgBuf)
|
|
|
+lim_post_sme_message(struct mac_context *mac, uint32_t msgType, uint32_t *pMsgBuf)
|
|
|
{
|
|
|
struct scheduler_msg msg = {0};
|
|
|
|
|
@@ -857,7 +857,7 @@ lim_post_sme_message(tpAniSirGlobal mac, uint32_t msgType, uint32_t *pMsgBuf)
|
|
|
* @return None
|
|
|
*/
|
|
|
static inline void
|
|
|
-lim_post_mlm_message(tpAniSirGlobal mac, uint32_t msgType, uint32_t *pMsgBuf)
|
|
|
+lim_post_mlm_message(struct mac_context *mac, uint32_t msgType, uint32_t *pMsgBuf)
|
|
|
{
|
|
|
struct scheduler_msg msg = {0};
|
|
|
|
|
@@ -929,31 +929,31 @@ lim_get_ielen_from_bss_description(tpSirBssDescription pBssDescr)
|
|
|
*
|
|
|
* return: success: QDF_STATUS_SUCCESS failure: QDF_STATUS_E_FAILURE
|
|
|
*/
|
|
|
-QDF_STATUS lim_send_beacon_ind(tpAniSirGlobal mac_ctx, struct pe_session *session,
|
|
|
+QDF_STATUS lim_send_beacon_ind(struct mac_context *mac_ctx, struct pe_session *session,
|
|
|
enum sir_bcn_update_reason reason);
|
|
|
|
|
|
void
|
|
|
-lim_send_vdev_restart(tpAniSirGlobal mac, struct pe_session *pe_session,
|
|
|
+lim_send_vdev_restart(struct mac_context *mac, struct pe_session *pe_session,
|
|
|
uint8_t sessionId);
|
|
|
|
|
|
-void lim_get_wpspbc_sessions(tpAniSirGlobal mac, struct qdf_mac_addr addr,
|
|
|
+void lim_get_wpspbc_sessions(struct mac_context *mac, struct qdf_mac_addr addr,
|
|
|
uint8_t *uuid_e, eWPSPBCOverlap *overlap,
|
|
|
struct pe_session *pe_session);
|
|
|
-void limWPSPBCTimeout(tpAniSirGlobal mac, struct pe_session *pe_session);
|
|
|
-void lim_wpspbc_close(tpAniSirGlobal mac, struct pe_session *pe_session);
|
|
|
-void lim_remove_pbc_sessions(tpAniSirGlobal mac,
|
|
|
+void limWPSPBCTimeout(struct mac_context *mac, struct pe_session *pe_session);
|
|
|
+void lim_wpspbc_close(struct mac_context *mac, struct pe_session *pe_session);
|
|
|
+void lim_remove_pbc_sessions(struct mac_context *mac,
|
|
|
struct qdf_mac_addr pRemoveMac,
|
|
|
struct pe_session *pe_session);
|
|
|
|
|
|
#define LIM_WPS_OVERLAP_TIMER_MS 10000
|
|
|
|
|
|
-void lim_process_remain_on_chn_timeout(tpAniSirGlobal mac);
|
|
|
-void lim_send_p2p_action_frame(tpAniSirGlobal mac, struct scheduler_msg *pMsg);
|
|
|
+void lim_process_remain_on_chn_timeout(struct mac_context *mac);
|
|
|
+void lim_send_p2p_action_frame(struct mac_context *mac, struct scheduler_msg *pMsg);
|
|
|
|
|
|
-void lim_process_disassoc_ack_timeout(tpAniSirGlobal mac);
|
|
|
-void lim_process_deauth_ack_timeout(tpAniSirGlobal mac);
|
|
|
-QDF_STATUS lim_send_disassoc_cnf(tpAniSirGlobal mac);
|
|
|
-QDF_STATUS lim_send_deauth_cnf(tpAniSirGlobal mac);
|
|
|
+void lim_process_disassoc_ack_timeout(struct mac_context *mac);
|
|
|
+void lim_process_deauth_ack_timeout(struct mac_context *mac);
|
|
|
+QDF_STATUS lim_send_disassoc_cnf(struct mac_context *mac);
|
|
|
+QDF_STATUS lim_send_deauth_cnf(struct mac_context *mac);
|
|
|
|
|
|
/**
|
|
|
* lim_disassoc_tx_complete_cnf() - callback to indicate Tx completion
|
|
@@ -987,17 +987,17 @@ typedef struct sSetLinkCbackParams {
|
|
|
void *cbackDataPtr;
|
|
|
} tSetLinkCbackParams;
|
|
|
|
|
|
-int lim_process_remain_on_chnl_req(tpAniSirGlobal mac, uint32_t *pMsg);
|
|
|
-void lim_remain_on_chn_rsp(tpAniSirGlobal mac, QDF_STATUS status, uint32_t *data);
|
|
|
-void lim_send_sme_disassoc_deauth_ntf(tpAniSirGlobal mac_ctx,
|
|
|
+int lim_process_remain_on_chnl_req(struct mac_context *mac, uint32_t *pMsg);
|
|
|
+void lim_remain_on_chn_rsp(struct mac_context *mac, QDF_STATUS status, uint32_t *data);
|
|
|
+void lim_send_sme_disassoc_deauth_ntf(struct mac_context *mac_ctx,
|
|
|
QDF_STATUS status, uint32_t *ctx);
|
|
|
|
|
|
#ifdef FEATURE_WLAN_TDLS
|
|
|
-QDF_STATUS lim_process_sme_del_all_tdls_peers(tpAniSirGlobal p_mac,
|
|
|
+QDF_STATUS lim_process_sme_del_all_tdls_peers(struct mac_context *p_mac,
|
|
|
uint32_t *msg_buf);
|
|
|
#else
|
|
|
static inline
|
|
|
-QDF_STATUS lim_process_sme_del_all_tdls_peers(tpAniSirGlobal p_mac,
|
|
|
+QDF_STATUS lim_process_sme_del_all_tdls_peers(struct mac_context *p_mac,
|
|
|
uint32_t *msg_buf)
|
|
|
{
|
|
|
return QDF_STATUS_SUCCESS;
|
|
@@ -1011,7 +1011,7 @@ QDF_STATUS lim_process_sme_del_all_tdls_peers(tpAniSirGlobal p_mac,
|
|
|
*
|
|
|
* Return: None
|
|
|
*/
|
|
|
-void lim_send_bcn_rsp(tpAniSirGlobal mac_ctx, tpSendbeaconParams rsp);
|
|
|
+void lim_send_bcn_rsp(struct mac_context *mac_ctx, tpSendbeaconParams rsp);
|
|
|
|
|
|
/**
|
|
|
* lim_process_rx_channel_status_event() - processes
|
|
@@ -1021,7 +1021,7 @@ void lim_send_bcn_rsp(tpAniSirGlobal mac_ctx, tpSendbeaconParams rsp);
|
|
|
*
|
|
|
* Return: None
|
|
|
*/
|
|
|
-void lim_process_rx_channel_status_event(tpAniSirGlobal mac_ctx, void *buf);
|
|
|
+void lim_process_rx_channel_status_event(struct mac_context *mac_ctx, void *buf);
|
|
|
|
|
|
/* / Bit value data structure */
|
|
|
typedef enum sHalBitVal /* For Bit operations */
|
|
@@ -1036,7 +1036,7 @@ enum {
|
|
|
eDBG
|
|
|
};
|
|
|
|
|
|
-QDF_STATUS lim_send_addba_response_frame(tpAniSirGlobal mac_ctx,
|
|
|
+QDF_STATUS lim_send_addba_response_frame(struct mac_context *mac_ctx,
|
|
|
tSirMacAddr peer_mac, uint16_t tid,
|
|
|
struct pe_session *session,
|
|
|
uint8_t addba_extn_present,
|
|
@@ -1051,7 +1051,7 @@ QDF_STATUS lim_send_addba_response_frame(tpAniSirGlobal mac_ctx,
|
|
|
*
|
|
|
* @Return None
|
|
|
*/
|
|
|
-void lim_process_join_failure_timeout(tpAniSirGlobal mac_ctx);
|
|
|
+void lim_process_join_failure_timeout(struct mac_context *mac_ctx);
|
|
|
|
|
|
/**
|
|
|
* lim_process_auth_failure_timeout() - This function is called to process Min
|
|
@@ -1063,7 +1063,7 @@ void lim_process_join_failure_timeout(tpAniSirGlobal mac_ctx);
|
|
|
*
|
|
|
* @Return: None
|
|
|
*/
|
|
|
-void lim_process_auth_failure_timeout(tpAniSirGlobal mac_ctx);
|
|
|
+void lim_process_auth_failure_timeout(struct mac_context *mac_ctx);
|
|
|
|
|
|
/**
|
|
|
* lim_process_assoc_failure_timeout() - This function is called to process Min
|
|
@@ -1076,7 +1076,7 @@ void lim_process_auth_failure_timeout(tpAniSirGlobal mac_ctx);
|
|
|
*
|
|
|
* @Return: None
|
|
|
*/
|
|
|
-void lim_process_assoc_failure_timeout(tpAniSirGlobal mac_ctx,
|
|
|
+void lim_process_assoc_failure_timeout(struct mac_context *mac_ctx,
|
|
|
uint32_t msg_type);
|
|
|
|
|
|
/**
|
|
@@ -1086,7 +1086,7 @@ void lim_process_assoc_failure_timeout(tpAniSirGlobal mac_ctx,
|
|
|
*
|
|
|
* Return: None
|
|
|
*/
|
|
|
-void lim_send_mgmt_frame_tx(tpAniSirGlobal mac_ctx,
|
|
|
+void lim_send_mgmt_frame_tx(struct mac_context *mac_ctx,
|
|
|
struct scheduler_msg *msg);
|
|
|
|
|
|
/**
|
|
@@ -1096,7 +1096,7 @@ void lim_send_mgmt_frame_tx(tpAniSirGlobal mac_ctx,
|
|
|
*
|
|
|
* Return: None
|
|
|
*/
|
|
|
-void lim_send_csa_restart_req(tpAniSirGlobal mac_ctx, uint8_t vdev_id);
|
|
|
+void lim_send_csa_restart_req(struct mac_context *mac_ctx, uint8_t vdev_id);
|
|
|
|
|
|
/**
|
|
|
* lim_process_mlm_start_req() - process MLM_START_REQ message
|
|
@@ -1109,7 +1109,7 @@ void lim_send_csa_restart_req(tpAniSirGlobal mac_ctx, uint8_t vdev_id);
|
|
|
*
|
|
|
* Return: None
|
|
|
*/
|
|
|
-void lim_process_mlm_start_req(tpAniSirGlobal mac_ctx,
|
|
|
+void lim_process_mlm_start_req(struct mac_context *mac_ctx,
|
|
|
tLimMlmStartReq *mlm_start_req);
|
|
|
|
|
|
/**
|
|
@@ -1138,7 +1138,7 @@ void lim_process_mlm_start_req(tpAniSirGlobal mac_ctx,
|
|
|
*
|
|
|
* @Return: None
|
|
|
*/
|
|
|
-void lim_process_mlm_join_req(tpAniSirGlobal mac_ctx,
|
|
|
+void lim_process_mlm_join_req(struct mac_context *mac_ctx,
|
|
|
tLimMlmJoinReq *mlm_join_req);
|
|
|
|
|
|
/*
|
|
@@ -1152,7 +1152,7 @@ void lim_process_mlm_join_req(tpAniSirGlobal mac_ctx,
|
|
|
*
|
|
|
* @Return: None
|
|
|
*/
|
|
|
-void lim_process_mlm_deauth_req(tpAniSirGlobal mac_ctx, uint32_t *msg_buf);
|
|
|
+void lim_process_mlm_deauth_req(struct mac_context *mac_ctx, uint32_t *msg_buf);
|
|
|
|
|
|
#ifdef CONFIG_VDEV_SM
|
|
|
/**
|