|
@@ -88,7 +88,7 @@
|
|
|
#define CSR_MAX_BSSID_COUNT (SME_ACTIVE_LIST_CMD_TIMEOUT_VALUE/3000) - 2
|
|
|
#define CSR_CUSTOM_CONC_GO_BI 100
|
|
|
extern uint8_t csr_wpa_oui[][CSR_WPA_OUI_SIZE];
|
|
|
-bool csr_is_supported_channel(tpAniSirGlobal mac, uint8_t channelId);
|
|
|
+bool csr_is_supported_channel(struct mac_context *mac, uint8_t channelId);
|
|
|
|
|
|
enum csr_scancomplete_nextcommand {
|
|
|
eCsrNextScanNothing,
|
|
@@ -194,20 +194,20 @@ struct scan_result_list {
|
|
|
(eCsrForcedDisassocMICFailure == \
|
|
|
(pCommand)->u.roamCmd.roamReason)))
|
|
|
|
|
|
-enum csr_roam_state csr_roam_state_change(tpAniSirGlobal mac,
|
|
|
+enum csr_roam_state csr_roam_state_change(struct mac_context *mac,
|
|
|
enum csr_roam_state NewRoamState,
|
|
|
uint8_t sessionId);
|
|
|
-void csr_roaming_state_msg_processor(tpAniSirGlobal mac, void *pMsgBuf);
|
|
|
-void csr_roam_joined_state_msg_processor(tpAniSirGlobal mac, void *pMsgBuf);
|
|
|
+void csr_roaming_state_msg_processor(struct mac_context *mac, void *pMsgBuf);
|
|
|
+void csr_roam_joined_state_msg_processor(struct mac_context *mac, void *pMsgBuf);
|
|
|
void csr_scan_callback(struct wlan_objmgr_vdev *vdev,
|
|
|
struct scan_event *event, void *arg);
|
|
|
-void csr_release_command_roam(tpAniSirGlobal mac, tSmeCmd *pCommand);
|
|
|
-void csr_release_command_wm_status_change(tpAniSirGlobal mac,
|
|
|
+void csr_release_command_roam(struct mac_context *mac, tSmeCmd *pCommand);
|
|
|
+void csr_release_command_wm_status_change(struct mac_context *mac,
|
|
|
tSmeCmd *pCommand);
|
|
|
-void csr_release_roc_req_cmd(tpAniSirGlobal mac_ctx,
|
|
|
+void csr_release_roc_req_cmd(struct mac_context *mac_ctx,
|
|
|
tSmeCmd *pCommand);
|
|
|
|
|
|
-QDF_STATUS csr_roam_save_connected_bss_desc(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_roam_save_connected_bss_desc(struct mac_context *mac,
|
|
|
uint32_t sessionId,
|
|
|
tSirBssDescription *pBssDesc);
|
|
|
bool csr_is_network_type_equal(tSirBssDescription *pSirBssDesc1,
|
|
@@ -218,25 +218,25 @@ bool csr_is_network_type_equal(tSirBssDescription *pSirBssDesc1,
|
|
|
* pScanFilter when it is done with the filter.
|
|
|
*/
|
|
|
QDF_STATUS
|
|
|
-csr_roam_prepare_filter_from_profile(tpAniSirGlobal mac,
|
|
|
+csr_roam_prepare_filter_from_profile(struct mac_context *mac,
|
|
|
struct csr_roam_profile *pProfile,
|
|
|
tCsrScanResultFilter *pScanFilter);
|
|
|
|
|
|
-QDF_STATUS csr_roam_copy_profile(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_roam_copy_profile(struct mac_context *mac,
|
|
|
struct csr_roam_profile *pDstProfile,
|
|
|
struct csr_roam_profile *pSrcProfile);
|
|
|
-QDF_STATUS csr_roam_start(tpAniSirGlobal mac);
|
|
|
-void csr_roam_stop(tpAniSirGlobal mac, uint32_t sessionId);
|
|
|
-void csr_roam_startMICFailureTimer(tpAniSirGlobal mac);
|
|
|
-void csr_roam_stopMICFailureTimer(tpAniSirGlobal mac);
|
|
|
-void csr_roam_startTKIPCounterMeasureTimer(tpAniSirGlobal mac);
|
|
|
-void csr_roam_stopTKIPCounterMeasureTimer(tpAniSirGlobal mac);
|
|
|
-
|
|
|
-QDF_STATUS csr_scan_open(tpAniSirGlobal mac);
|
|
|
-QDF_STATUS csr_scan_close(tpAniSirGlobal mac);
|
|
|
-bool csr_scan_append_bss_description(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_roam_start(struct mac_context *mac);
|
|
|
+void csr_roam_stop(struct mac_context *mac, uint32_t sessionId);
|
|
|
+void csr_roam_startMICFailureTimer(struct mac_context *mac);
|
|
|
+void csr_roam_stopMICFailureTimer(struct mac_context *mac);
|
|
|
+void csr_roam_startTKIPCounterMeasureTimer(struct mac_context *mac);
|
|
|
+void csr_roam_stopTKIPCounterMeasureTimer(struct mac_context *mac);
|
|
|
+
|
|
|
+QDF_STATUS csr_scan_open(struct mac_context *mac);
|
|
|
+QDF_STATUS csr_scan_close(struct mac_context *mac);
|
|
|
+bool csr_scan_append_bss_description(struct mac_context *mac,
|
|
|
tSirBssDescription *pSirBssDescription);
|
|
|
-QDF_STATUS csr_scan_for_ssid(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_scan_for_ssid(struct mac_context *mac, uint32_t sessionId,
|
|
|
struct csr_roam_profile *pProfile, uint32_t roamId,
|
|
|
bool notify);
|
|
|
/**
|
|
@@ -249,39 +249,39 @@ QDF_STATUS csr_scan_for_ssid(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
*
|
|
|
* Return: 0 for success, non zero for failure
|
|
|
*/
|
|
|
-QDF_STATUS csr_scan_abort_mac_scan(tpAniSirGlobal mac, uint32_t vdev_id,
|
|
|
+QDF_STATUS csr_scan_abort_mac_scan(struct mac_context *mac, uint32_t vdev_id,
|
|
|
uint32_t scan_id);
|
|
|
-QDF_STATUS csr_remove_nonscan_cmd_from_pending_list(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_remove_nonscan_cmd_from_pending_list(struct mac_context *mac,
|
|
|
uint8_t sessionId, eSmeCommandType commandType);
|
|
|
|
|
|
/* If fForce is true we will save the new String that is learn't. */
|
|
|
/* Typically it will be true in case of Join or user initiated ioctl */
|
|
|
-bool csr_learn_11dcountry_information(tpAniSirGlobal mac,
|
|
|
+bool csr_learn_11dcountry_information(struct mac_context *mac,
|
|
|
tSirBssDescription *pSirBssDesc,
|
|
|
tDot11fBeaconIEs *pIes, bool fForce);
|
|
|
-void csr_apply_country_information(tpAniSirGlobal mac);
|
|
|
-void csr_set_cfg_scan_control_list(tpAniSirGlobal mac, uint8_t *countryCode,
|
|
|
+void csr_apply_country_information(struct mac_context *mac);
|
|
|
+void csr_set_cfg_scan_control_list(struct mac_context *mac, uint8_t *countryCode,
|
|
|
struct csr_channel *pChannelList);
|
|
|
-void csr_free_scan_result_entry(tpAniSirGlobal mac, struct tag_csrscan_result
|
|
|
+void csr_free_scan_result_entry(struct mac_context *mac, struct tag_csrscan_result
|
|
|
*pResult);
|
|
|
|
|
|
-QDF_STATUS csr_roam_call_callback(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_roam_call_callback(struct mac_context *mac, uint32_t sessionId,
|
|
|
struct csr_roam_info *roam_info,
|
|
|
uint32_t roamId,
|
|
|
eRoamCmdStatus u1, eCsrRoamResult u2);
|
|
|
-QDF_STATUS csr_roam_issue_connect(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_roam_issue_connect(struct mac_context *mac, uint32_t sessionId,
|
|
|
struct csr_roam_profile *pProfile,
|
|
|
tScanResultHandle hBSSList,
|
|
|
enum csr_roam_reason reason, uint32_t roamId,
|
|
|
bool fImediate, bool fClearScan);
|
|
|
-QDF_STATUS csr_roam_issue_reassoc(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_roam_issue_reassoc(struct mac_context *mac, uint32_t sessionId,
|
|
|
struct csr_roam_profile *pProfile,
|
|
|
tCsrRoamModifyProfileFields *pModProfileFields,
|
|
|
enum csr_roam_reason reason, uint32_t roamId,
|
|
|
bool fImediate);
|
|
|
-void csr_roam_complete(tpAniSirGlobal mac, enum csr_roamcomplete_result Result,
|
|
|
+void csr_roam_complete(struct mac_context *mac, enum csr_roamcomplete_result Result,
|
|
|
void *Context, uint8_t session_id);
|
|
|
-QDF_STATUS csr_roam_issue_set_context_req(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_roam_issue_set_context_req(struct mac_context *mac,
|
|
|
uint32_t sessionId,
|
|
|
eCsrEncryptionType EncryptType,
|
|
|
tSirBssDescription *pBssDescription,
|
|
@@ -290,106 +290,106 @@ QDF_STATUS csr_roam_issue_set_context_req(tpAniSirGlobal mac,
|
|
|
tAniKeyDirection aniKeyDirection,
|
|
|
uint8_t keyId, uint16_t keyLength,
|
|
|
uint8_t *pKey, uint8_t paeRole);
|
|
|
-QDF_STATUS csr_roam_process_disassoc_deauth(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_roam_process_disassoc_deauth(struct mac_context *mac,
|
|
|
tSmeCmd *pCommand,
|
|
|
bool fDisassoc, bool fMICFailure);
|
|
|
-QDF_STATUS csr_roam_save_connected_information(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_roam_save_connected_information(struct mac_context *mac,
|
|
|
uint32_t sessionId,
|
|
|
struct csr_roam_profile *pProfile,
|
|
|
tSirBssDescription *pSirBssDesc,
|
|
|
tDot11fBeaconIEs *pIes);
|
|
|
-void csr_roam_check_for_link_status_change(tpAniSirGlobal mac,
|
|
|
+void csr_roam_check_for_link_status_change(struct mac_context *mac,
|
|
|
tSirSmeRsp *pSirMsg);
|
|
|
|
|
|
#ifndef QCA_SUPPORT_CP_STATS
|
|
|
-void csr_roam_stats_rsp_processor(tpAniSirGlobal mac, tSirSmeRsp *pSirMsg);
|
|
|
+void csr_roam_stats_rsp_processor(struct mac_context *mac, tSirSmeRsp *pSirMsg);
|
|
|
#else
|
|
|
-static inline void csr_roam_stats_rsp_processor(tpAniSirGlobal mac,
|
|
|
+static inline void csr_roam_stats_rsp_processor(struct mac_context *mac,
|
|
|
tSirSmeRsp *pSirMsg) {}
|
|
|
#endif /* QCA_SUPPORT_CP_STATS */
|
|
|
|
|
|
-QDF_STATUS csr_roam_issue_start_bss(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_roam_issue_start_bss(struct mac_context *mac, uint32_t sessionId,
|
|
|
struct csr_roamstart_bssparams *pParam,
|
|
|
struct csr_roam_profile *pProfile,
|
|
|
tSirBssDescription *pBssDesc,
|
|
|
uint32_t roamId);
|
|
|
-QDF_STATUS csr_roam_issue_stop_bss(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_roam_issue_stop_bss(struct mac_context *mac, uint32_t sessionId,
|
|
|
enum csr_roam_substate NewSubstate);
|
|
|
-bool csr_is_same_profile(tpAniSirGlobal mac, tCsrRoamConnectedProfile
|
|
|
+bool csr_is_same_profile(struct mac_context *mac, tCsrRoamConnectedProfile
|
|
|
*pProfile1, struct csr_roam_profile *pProfile2);
|
|
|
-bool csr_is_roam_command_waiting_for_session(tpAniSirGlobal mac,
|
|
|
+bool csr_is_roam_command_waiting_for_session(struct mac_context *mac,
|
|
|
uint32_t sessionId);
|
|
|
-eRoamCmdStatus csr_get_roam_complete_status(tpAniSirGlobal mac,
|
|
|
+eRoamCmdStatus csr_get_roam_complete_status(struct mac_context *mac,
|
|
|
uint32_t sessionId);
|
|
|
/* pBand can be NULL if caller doesn't need to get it */
|
|
|
-QDF_STATUS csr_roam_issue_disassociate_cmd(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_roam_issue_disassociate_cmd(struct mac_context *mac,
|
|
|
uint32_t sessionId,
|
|
|
eCsrRoamDisconnectReason reason);
|
|
|
-QDF_STATUS csr_roam_disconnect_internal(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_roam_disconnect_internal(struct mac_context *mac, uint32_t sessionId,
|
|
|
eCsrRoamDisconnectReason reason);
|
|
|
/* pCommand may be NULL */
|
|
|
-void csr_roam_remove_duplicate_command(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+void csr_roam_remove_duplicate_command(struct mac_context *mac, uint32_t sessionId,
|
|
|
tSmeCmd *pCommand,
|
|
|
enum csr_roam_reason eRoamReason);
|
|
|
|
|
|
-QDF_STATUS csr_send_join_req_msg(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_send_join_req_msg(struct mac_context *mac, uint32_t sessionId,
|
|
|
tSirBssDescription *pBssDescription,
|
|
|
struct csr_roam_profile *pProfile,
|
|
|
tDot11fBeaconIEs *pIes, uint16_t messageType);
|
|
|
-QDF_STATUS csr_send_mb_disassoc_req_msg(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_send_mb_disassoc_req_msg(struct mac_context *mac, uint32_t sessionId,
|
|
|
tSirMacAddr bssId, uint16_t reasonCode);
|
|
|
-QDF_STATUS csr_send_mb_deauth_req_msg(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_send_mb_deauth_req_msg(struct mac_context *mac, uint32_t sessionId,
|
|
|
tSirMacAddr bssId, uint16_t reasonCode);
|
|
|
-QDF_STATUS csr_send_mb_disassoc_cnf_msg(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_send_mb_disassoc_cnf_msg(struct mac_context *mac,
|
|
|
tpSirSmeDisassocInd pDisassocInd);
|
|
|
-QDF_STATUS csr_send_mb_deauth_cnf_msg(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_send_mb_deauth_cnf_msg(struct mac_context *mac,
|
|
|
tpSirSmeDeauthInd pDeauthInd);
|
|
|
-QDF_STATUS csr_send_assoc_cnf_msg(tpAniSirGlobal mac, tpSirSmeAssocInd
|
|
|
+QDF_STATUS csr_send_assoc_cnf_msg(struct mac_context *mac, tpSirSmeAssocInd
|
|
|
pAssocInd,
|
|
|
QDF_STATUS status);
|
|
|
-QDF_STATUS csr_send_assoc_ind_to_upper_layer_cnf_msg(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_send_assoc_ind_to_upper_layer_cnf_msg(struct mac_context *mac,
|
|
|
tpSirSmeAssocInd pAssocInd,
|
|
|
QDF_STATUS Halstatus,
|
|
|
uint8_t sessionId);
|
|
|
-QDF_STATUS csr_send_mb_start_bss_req_msg(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_send_mb_start_bss_req_msg(struct mac_context *mac,
|
|
|
uint32_t sessionId,
|
|
|
eCsrRoamBssType bssType,
|
|
|
struct csr_roamstart_bssparams *pParam,
|
|
|
tSirBssDescription *pBssDesc);
|
|
|
-QDF_STATUS csr_send_mb_stop_bss_req_msg(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_send_mb_stop_bss_req_msg(struct mac_context *mac,
|
|
|
uint32_t sessionId);
|
|
|
|
|
|
/* Caller should put the BSS' ssid to fiedl bssSsid when
|
|
|
* comparing SSID for a BSS.
|
|
|
*/
|
|
|
-bool csr_is_ssid_match(tpAniSirGlobal mac, uint8_t *ssid1, uint8_t ssid1Len,
|
|
|
+bool csr_is_ssid_match(struct mac_context *mac, uint8_t *ssid1, uint8_t ssid1Len,
|
|
|
uint8_t *bssSsid, uint8_t bssSsidLen,
|
|
|
bool fSsidRequired);
|
|
|
-bool csr_is_phy_mode_match(tpAniSirGlobal mac, uint32_t phyMode,
|
|
|
+bool csr_is_phy_mode_match(struct mac_context *mac, uint32_t phyMode,
|
|
|
tSirBssDescription *pSirBssDesc,
|
|
|
struct csr_roam_profile *pProfile,
|
|
|
enum csr_cfgdot11mode *pReturnCfgDot11Mode,
|
|
|
tDot11fBeaconIEs *pIes);
|
|
|
-bool csr_roam_is_channel_valid(tpAniSirGlobal mac, uint8_t channel);
|
|
|
+bool csr_roam_is_channel_valid(struct mac_context *mac, uint8_t channel);
|
|
|
|
|
|
/* pNumChan is a caller allocated space with the sizeof pChannels */
|
|
|
-QDF_STATUS csr_get_cfg_valid_channels(tpAniSirGlobal mac, uint8_t *pChannels,
|
|
|
+QDF_STATUS csr_get_cfg_valid_channels(struct mac_context *mac, uint8_t *pChannels,
|
|
|
uint32_t *pNumChan);
|
|
|
-int8_t csr_get_cfg_max_tx_power(tpAniSirGlobal mac, uint8_t channel);
|
|
|
+int8_t csr_get_cfg_max_tx_power(struct mac_context *mac, uint8_t channel);
|
|
|
|
|
|
/* To free the last roaming profile */
|
|
|
-void csr_free_roam_profile(tpAniSirGlobal mac, uint32_t sessionId);
|
|
|
-void csr_free_connect_bss_desc(tpAniSirGlobal mac, uint32_t sessionId);
|
|
|
-QDF_STATUS csr_move_bss_to_head_from_bssid(tpAniSirGlobal mac,
|
|
|
+void csr_free_roam_profile(struct mac_context *mac, uint32_t sessionId);
|
|
|
+void csr_free_connect_bss_desc(struct mac_context *mac, uint32_t sessionId);
|
|
|
+QDF_STATUS csr_move_bss_to_head_from_bssid(struct mac_context *mac,
|
|
|
struct qdf_mac_addr *bssid,
|
|
|
tScanResultHandle hScanResult);
|
|
|
|
|
|
/* to free memory allocated inside the profile structure */
|
|
|
-void csr_release_profile(tpAniSirGlobal mac,
|
|
|
+void csr_release_profile(struct mac_context *mac,
|
|
|
struct csr_roam_profile *pProfile);
|
|
|
|
|
|
/* To free memory allocated inside scanFilter */
|
|
|
-void csr_free_scan_filter(tpAniSirGlobal mac, tCsrScanResultFilter
|
|
|
+void csr_free_scan_filter(struct mac_context *mac, tCsrScanResultFilter
|
|
|
*pScanFilter);
|
|
|
|
|
|
enum csr_cfgdot11mode
|
|
@@ -397,43 +397,43 @@ csr_get_cfg_dot11_mode_from_csr_phy_mode(struct csr_roam_profile *pProfile,
|
|
|
eCsrPhyMode phyMode,
|
|
|
bool fProprietary);
|
|
|
|
|
|
-uint32_t csr_translate_to_wni_cfg_dot11_mode(tpAniSirGlobal mac,
|
|
|
+uint32_t csr_translate_to_wni_cfg_dot11_mode(struct mac_context *mac,
|
|
|
enum csr_cfgdot11mode csrDot11Mode);
|
|
|
-void csr_save_channel_power_for_band(tpAniSirGlobal mac, bool fPopulate5GBand);
|
|
|
-void csr_apply_channel_power_info_to_fw(tpAniSirGlobal mac,
|
|
|
+void csr_save_channel_power_for_band(struct mac_context *mac, bool fPopulate5GBand);
|
|
|
+void csr_apply_channel_power_info_to_fw(struct mac_context *mac,
|
|
|
struct csr_channel *pChannelList,
|
|
|
uint8_t *countryCode);
|
|
|
-void csr_apply_power2_current(tpAniSirGlobal mac);
|
|
|
-void csr_assign_rssi_for_category(tpAniSirGlobal mac, int8_t bestApRssi,
|
|
|
+void csr_apply_power2_current(struct mac_context *mac);
|
|
|
+void csr_assign_rssi_for_category(struct mac_context *mac, int8_t bestApRssi,
|
|
|
uint8_t catOffset);
|
|
|
-QDF_STATUS csr_roam_start_roaming(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_roam_start_roaming(struct mac_context *mac, uint32_t sessionId,
|
|
|
enum csr_roaming_reason roamingReason);
|
|
|
/* return a bool to indicate whether roaming completed or continue. */
|
|
|
-bool csr_roam_complete_roaming(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+bool csr_roam_complete_roaming(struct mac_context *mac, uint32_t sessionId,
|
|
|
bool fForce, eCsrRoamResult roamResult);
|
|
|
-void csr_roam_completion(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+void csr_roam_completion(struct mac_context *mac, uint32_t sessionId,
|
|
|
struct csr_roam_info *roam_info, tSmeCmd *pCommand,
|
|
|
eCsrRoamResult roamResult, bool fSuccess);
|
|
|
-void csr_roam_cancel_roaming(tpAniSirGlobal mac, uint32_t sessionId);
|
|
|
-void csr_apply_channel_power_info_wrapper(tpAniSirGlobal mac);
|
|
|
-void csr_reset_pmkid_candidate_list(tpAniSirGlobal mac, uint32_t sessionId);
|
|
|
+void csr_roam_cancel_roaming(struct mac_context *mac, uint32_t sessionId);
|
|
|
+void csr_apply_channel_power_info_wrapper(struct mac_context *mac);
|
|
|
+void csr_reset_pmkid_candidate_list(struct mac_context *mac, uint32_t sessionId);
|
|
|
#ifdef FEATURE_WLAN_WAPI
|
|
|
-void csr_reset_bkid_candidate_list(tpAniSirGlobal mac, uint32_t sessionId);
|
|
|
+void csr_reset_bkid_candidate_list(struct mac_context *mac, uint32_t sessionId);
|
|
|
#endif /* FEATURE_WLAN_WAPI */
|
|
|
-QDF_STATUS csr_save_to_channel_power2_g_5_g(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_save_to_channel_power2_g_5_g(struct mac_context *mac,
|
|
|
uint32_t tableSize, tSirMacChanInfo
|
|
|
*channelTable);
|
|
|
-QDF_STATUS csr_roam_set_key(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_roam_set_key(struct mac_context *mac, uint32_t sessionId,
|
|
|
tCsrRoamSetKey *pSetKey, uint32_t roamId);
|
|
|
-QDF_STATUS csr_roam_open_session(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_roam_open_session(struct mac_context *mac,
|
|
|
struct sme_session_params *session_param);
|
|
|
-QDF_STATUS csr_roam_close_session(tpAniSirGlobal mac_ctx,
|
|
|
+QDF_STATUS csr_roam_close_session(struct mac_context *mac_ctx,
|
|
|
uint32_t session_id, bool sync);
|
|
|
-void csr_cleanup_session(tpAniSirGlobal mac, uint32_t sessionId);
|
|
|
-QDF_STATUS csr_roam_get_session_id_from_bssid(tpAniSirGlobal mac,
|
|
|
+void csr_cleanup_session(struct mac_context *mac, uint32_t sessionId);
|
|
|
+QDF_STATUS csr_roam_get_session_id_from_bssid(struct mac_context *mac,
|
|
|
struct qdf_mac_addr *bssid,
|
|
|
uint32_t *pSessionId);
|
|
|
-enum csr_cfgdot11mode csr_find_best_phy_mode(tpAniSirGlobal mac,
|
|
|
+enum csr_cfgdot11mode csr_find_best_phy_mode(struct mac_context *mac,
|
|
|
uint32_t phyMode);
|
|
|
|
|
|
/*
|
|
@@ -444,7 +444,7 @@ enum csr_cfgdot11mode csr_find_best_phy_mode(tpAniSirGlobal mac,
|
|
|
* phResult - an object for the result.
|
|
|
* Return QDF_STATUS
|
|
|
*/
|
|
|
-QDF_STATUS csr_scan_get_result(tpAniSirGlobal mac, tCsrScanResultFilter
|
|
|
+QDF_STATUS csr_scan_get_result(struct mac_context *mac, tCsrScanResultFilter
|
|
|
*pFilter, tScanResultHandle *phResult);
|
|
|
|
|
|
/**
|
|
@@ -456,7 +456,7 @@ QDF_STATUS csr_scan_get_result(tpAniSirGlobal mac, tCsrScanResultFilter
|
|
|
*
|
|
|
* Return: QDF_STATUS
|
|
|
*/
|
|
|
-QDF_STATUS csr_scan_get_result_for_bssid(tpAniSirGlobal mac_ctx,
|
|
|
+QDF_STATUS csr_scan_get_result_for_bssid(struct mac_context *mac_ctx,
|
|
|
struct qdf_mac_addr *bssid,
|
|
|
tCsrScanResultInfo *res);
|
|
|
|
|
@@ -468,7 +468,7 @@ QDF_STATUS csr_scan_get_result_for_bssid(tpAniSirGlobal mac_ctx,
|
|
|
* sessionId - Session Identifier
|
|
|
* Return QDF_STATUS
|
|
|
*/
|
|
|
-QDF_STATUS csr_scan_flush_result(tpAniSirGlobal mac_ctx);
|
|
|
+QDF_STATUS csr_scan_flush_result(struct mac_context *mac_ctx);
|
|
|
/*
|
|
|
* csr_scan_filter_results() -
|
|
|
* Filter scan results based on valid channel list.
|
|
@@ -476,9 +476,9 @@ QDF_STATUS csr_scan_flush_result(tpAniSirGlobal mac_ctx);
|
|
|
* mac - Pointer to Global MAC structure
|
|
|
* Return QDF_STATUS
|
|
|
*/
|
|
|
-QDF_STATUS csr_scan_filter_results(tpAniSirGlobal mac);
|
|
|
+QDF_STATUS csr_scan_filter_results(struct mac_context *mac);
|
|
|
|
|
|
-QDF_STATUS csr_scan_flush_selective_result(tpAniSirGlobal mac, bool flushP2P);
|
|
|
+QDF_STATUS csr_scan_flush_selective_result(struct mac_context *mac, bool flushP2P);
|
|
|
|
|
|
/*
|
|
|
* csr_scan_result_get_first
|
|
@@ -487,7 +487,7 @@ QDF_STATUS csr_scan_flush_selective_result(tpAniSirGlobal mac, bool flushP2P);
|
|
|
* hScanResult - returned from csr_scan_get_result
|
|
|
* tCsrScanResultInfo * - NULL if no result
|
|
|
*/
|
|
|
-tCsrScanResultInfo *csr_scan_result_get_first(tpAniSirGlobal mac,
|
|
|
+tCsrScanResultInfo *csr_scan_result_get_first(struct mac_context *mac,
|
|
|
tScanResultHandle hScanResult);
|
|
|
/*
|
|
|
* csr_scan_result_get_next
|
|
@@ -497,7 +497,7 @@ tCsrScanResultInfo *csr_scan_result_get_first(tpAniSirGlobal mac,
|
|
|
* hScanResult - returned from csr_scan_get_result
|
|
|
* Return Null if no result or reach the end
|
|
|
*/
|
|
|
-tCsrScanResultInfo *csr_scan_result_get_next(tpAniSirGlobal mac,
|
|
|
+tCsrScanResultInfo *csr_scan_result_get_next(struct mac_context *mac,
|
|
|
tScanResultHandle hScanResult);
|
|
|
|
|
|
/*
|
|
@@ -509,7 +509,7 @@ tCsrScanResultInfo *csr_scan_result_get_next(tpAniSirGlobal mac,
|
|
|
* success return, this contains the length of the data in pBuf
|
|
|
* Return QDF_STATUS
|
|
|
*/
|
|
|
-QDF_STATUS csr_get_country_code(tpAniSirGlobal mac, uint8_t *pBuf,
|
|
|
+QDF_STATUS csr_get_country_code(struct mac_context *mac, uint8_t *pBuf,
|
|
|
uint8_t *pbLen);
|
|
|
|
|
|
/*
|
|
@@ -525,32 +525,32 @@ QDF_STATUS csr_get_country_code(tpAniSirGlobal mac, uint8_t *pBuf,
|
|
|
* source - the source of country information.
|
|
|
* Return QDF_STATUS
|
|
|
*/
|
|
|
-QDF_STATUS csr_get_regulatory_domain_for_country(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_get_regulatory_domain_for_country(struct mac_context *mac,
|
|
|
uint8_t *pCountry,
|
|
|
v_REGDOMAIN_t *pDomainId,
|
|
|
enum country_src source);
|
|
|
|
|
|
/* some support functions */
|
|
|
-bool csr_is11d_supported(tpAniSirGlobal mac);
|
|
|
-bool csr_is11h_supported(tpAniSirGlobal mac);
|
|
|
-bool csr_is11e_supported(tpAniSirGlobal mac);
|
|
|
-bool csr_is_wmm_supported(tpAniSirGlobal mac);
|
|
|
-bool csr_is_mcc_supported(tpAniSirGlobal mac);
|
|
|
+bool csr_is11d_supported(struct mac_context *mac);
|
|
|
+bool csr_is11h_supported(struct mac_context *mac);
|
|
|
+bool csr_is11e_supported(struct mac_context *mac);
|
|
|
+bool csr_is_wmm_supported(struct mac_context *mac);
|
|
|
+bool csr_is_mcc_supported(struct mac_context *mac);
|
|
|
|
|
|
/* Return SUCCESS is the command is queued, failed */
|
|
|
-QDF_STATUS csr_queue_sme_command(tpAniSirGlobal mac, tSmeCmd *pCommand,
|
|
|
+QDF_STATUS csr_queue_sme_command(struct mac_context *mac, tSmeCmd *pCommand,
|
|
|
bool fHighPriority);
|
|
|
-tSmeCmd *csr_get_command_buffer(tpAniSirGlobal mac);
|
|
|
-void csr_release_command(tpAniSirGlobal mac, tSmeCmd *pCommand);
|
|
|
-void csr_release_command_buffer(tpAniSirGlobal mac, tSmeCmd *pCommand);
|
|
|
-void csr_scan_flush_bss_entry(tpAniSirGlobal mac,
|
|
|
+tSmeCmd *csr_get_command_buffer(struct mac_context *mac);
|
|
|
+void csr_release_command(struct mac_context *mac, tSmeCmd *pCommand);
|
|
|
+void csr_release_command_buffer(struct mac_context *mac, tSmeCmd *pCommand);
|
|
|
+void csr_scan_flush_bss_entry(struct mac_context *mac,
|
|
|
tpSmeCsaOffloadInd pCsaOffloadInd);
|
|
|
|
|
|
#ifdef FEATURE_WLAN_WAPI
|
|
|
bool csr_is_profile_wapi(struct csr_roam_profile *pProfile);
|
|
|
#endif /* FEATURE_WLAN_WAPI */
|
|
|
|
|
|
-void csr_get_vdev_type_nss(tpAniSirGlobal mac_ctx,
|
|
|
+void csr_get_vdev_type_nss(struct mac_context *mac_ctx,
|
|
|
enum QDF_OPMODE dev_mode,
|
|
|
uint8_t *nss_2g, uint8_t *nss_5g);
|
|
|
|
|
@@ -670,7 +670,7 @@ enum mgmt_bss_type diag_persona_from_csr_type(enum QDF_OPMODE persona);
|
|
|
* gone by calling this function and even before this function reutrns.
|
|
|
* Return QDF_STATUS
|
|
|
*/
|
|
|
-QDF_STATUS csr_scan_result_purge(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_scan_result_purge(struct mac_context *mac,
|
|
|
tScanResultHandle hScanResult);
|
|
|
|
|
|
/* /////////////////////////////////////////Common Scan ends */
|
|
@@ -682,7 +682,7 @@ QDF_STATUS csr_scan_result_purge(tpAniSirGlobal mac,
|
|
|
* pRoamId - to get back the request ID
|
|
|
* Return QDF_STATUS
|
|
|
*/
|
|
|
-QDF_STATUS csr_roam_connect(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_roam_connect(struct mac_context *mac, uint32_t sessionId,
|
|
|
struct csr_roam_profile *pProfile,
|
|
|
uint32_t *pRoamId);
|
|
|
|
|
@@ -698,7 +698,7 @@ QDF_STATUS csr_roam_connect(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
* pRoamId - to get back the request ID
|
|
|
* Return QDF_STATUS
|
|
|
*/
|
|
|
-QDF_STATUS csr_roam_reassoc(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_roam_reassoc(struct mac_context *mac, uint32_t sessionId,
|
|
|
struct csr_roam_profile *pProfile,
|
|
|
tCsrRoamModifyProfileFields modProfileFields,
|
|
|
uint32_t *pRoamId);
|
|
@@ -709,7 +709,7 @@ QDF_STATUS csr_roam_reassoc(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
*
|
|
|
* Return QDF_STATUS. It returns fail if currently not connected
|
|
|
*/
|
|
|
-QDF_STATUS csr_roam_reconnect(tpAniSirGlobal mac, uint32_t sessionId);
|
|
|
+QDF_STATUS csr_roam_reconnect(struct mac_context *mac, uint32_t sessionId);
|
|
|
|
|
|
/*
|
|
|
* csr_roam_set_pmkid_cache() -
|
|
@@ -724,7 +724,7 @@ QDF_STATUS csr_roam_reconnect(tpAniSirGlobal mac, uint32_t sessionId);
|
|
|
* \Note: pNumItems is a number of tPmkidCacheInfo, not
|
|
|
* sizeof(tPmkidCacheInfo) * something
|
|
|
*/
|
|
|
-QDF_STATUS csr_roam_set_pmkid_cache(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_roam_set_pmkid_cache(struct mac_context *mac, uint32_t sessionId,
|
|
|
tPmkidCacheInfo *pPMKIDCache,
|
|
|
uint32_t numItems, bool update_entire_cache);
|
|
|
|
|
@@ -740,7 +740,7 @@ QDF_STATUS csr_roam_set_pmkid_cache(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
*
|
|
|
* Return: none
|
|
|
*/
|
|
|
-void csr_get_pmk_info(tpAniSirGlobal mac_ctx, uint8_t session_id,
|
|
|
+void csr_get_pmk_info(struct mac_context *mac_ctx, uint8_t session_id,
|
|
|
tPmkidCacheInfo *pmk_cache);
|
|
|
|
|
|
/*
|
|
@@ -752,10 +752,10 @@ void csr_get_pmk_info(tpAniSirGlobal mac_ctx, uint8_t session_id,
|
|
|
* Return QDF_STATUS - usually it succeed unless sessionId is not found
|
|
|
* Note:
|
|
|
*/
|
|
|
-QDF_STATUS csr_roam_set_psk_pmk(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_roam_set_psk_pmk(struct mac_context *mac, uint32_t sessionId,
|
|
|
uint8_t *pPSK_PMK, size_t pmk_len);
|
|
|
|
|
|
-QDF_STATUS csr_roam_set_key_mgmt_offload(tpAniSirGlobal mac_ctx,
|
|
|
+QDF_STATUS csr_roam_set_key_mgmt_offload(struct mac_context *mac_ctx,
|
|
|
uint32_t session_id,
|
|
|
bool roam_key_mgmt_offload_enabled,
|
|
|
struct pmkid_mode_bits *pmkid_modes);
|
|
@@ -770,7 +770,7 @@ QDF_STATUS csr_roam_set_key_mgmt_offload(tpAniSirGlobal mac_ctx,
|
|
|
* Return QDF_STATUS - when fail, it usually means the buffer allocated is not
|
|
|
* big enough
|
|
|
*/
|
|
|
-QDF_STATUS csr_roam_get_wpa_rsn_req_ie(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_roam_get_wpa_rsn_req_ie(struct mac_context *mac, uint32_t sessionId,
|
|
|
uint32_t *pLen, uint8_t *pBuf);
|
|
|
|
|
|
/*
|
|
@@ -783,7 +783,7 @@ QDF_STATUS csr_roam_get_wpa_rsn_req_ie(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
* Return QDF_STATUS - when fail, it usually means the buffer allocated is not
|
|
|
* big enough
|
|
|
*/
|
|
|
-QDF_STATUS csr_roam_get_wpa_rsn_rsp_ie(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_roam_get_wpa_rsn_rsp_ie(struct mac_context *mac, uint32_t sessionId,
|
|
|
uint32_t *pLen, uint8_t *pBuf);
|
|
|
|
|
|
/*
|
|
@@ -792,7 +792,7 @@ QDF_STATUS csr_roam_get_wpa_rsn_rsp_ie(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
*
|
|
|
* Return uint32_t - the number of PMKID cache entries
|
|
|
*/
|
|
|
-uint32_t csr_roam_get_num_pmkid_cache(tpAniSirGlobal mac, uint32_t sessionId);
|
|
|
+uint32_t csr_roam_get_num_pmkid_cache(struct mac_context *mac, uint32_t sessionId);
|
|
|
|
|
|
/*
|
|
|
* csr_roam_get_pmkid_cache() -
|
|
@@ -806,7 +806,7 @@ uint32_t csr_roam_get_num_pmkid_cache(tpAniSirGlobal mac, uint32_t sessionId);
|
|
|
* Return QDF_STATUS - when fail, it usually means the buffer allocated is
|
|
|
* not big enough
|
|
|
*/
|
|
|
-QDF_STATUS csr_roam_get_pmkid_cache(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_roam_get_pmkid_cache(struct mac_context *mac, uint32_t sessionId,
|
|
|
uint32_t *pNum, tPmkidCacheInfo *pPmkidCache);
|
|
|
|
|
|
/**
|
|
@@ -821,7 +821,7 @@ QDF_STATUS csr_roam_get_pmkid_cache(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
*
|
|
|
* Return: QDF_STATUS. Failure if not connected, success otherwise
|
|
|
*/
|
|
|
-QDF_STATUS csr_roam_get_connect_profile(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_roam_get_connect_profile(struct mac_context *mac, uint32_t sessionId,
|
|
|
tCsrRoamConnectedProfile *pProfile);
|
|
|
|
|
|
/*
|
|
@@ -830,7 +830,7 @@ QDF_STATUS csr_roam_get_connect_profile(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
*
|
|
|
* Return QDF_STATUS
|
|
|
*/
|
|
|
-QDF_STATUS csr_roam_get_connect_state(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_roam_get_connect_state(struct mac_context *mac, uint32_t sessionId,
|
|
|
eCsrConnectState *pState);
|
|
|
|
|
|
void csr_roam_free_connect_profile(tCsrRoamConnectedProfile *profile);
|
|
@@ -843,7 +843,7 @@ void csr_roam_free_connect_profile(tCsrRoamConnectedProfile *profile);
|
|
|
|
|
|
* Return QDF_STATUS
|
|
|
*/
|
|
|
-QDF_STATUS csr_apply_channel_and_power_list(tpAniSirGlobal mac);
|
|
|
+QDF_STATUS csr_apply_channel_and_power_list(struct mac_context *mac);
|
|
|
|
|
|
/*
|
|
|
* csr_roam_connect_to_last_profile() -
|
|
@@ -851,7 +851,7 @@ QDF_STATUS csr_apply_channel_and_power_list(tpAniSirGlobal mac);
|
|
|
*
|
|
|
* Return QDF_STATUS. It returns fail if currently connected
|
|
|
*/
|
|
|
-QDF_STATUS csr_roam_connect_to_last_profile(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_roam_connect_to_last_profile(struct mac_context *mac,
|
|
|
uint32_t sessionId);
|
|
|
|
|
|
/*
|
|
@@ -862,17 +862,17 @@ QDF_STATUS csr_roam_connect_to_last_profile(tpAniSirGlobal mac,
|
|
|
* eCSR_DISCONNECT_REASON_MIC_ERROR is meanful.
|
|
|
* Return QDF_STATUS
|
|
|
*/
|
|
|
-QDF_STATUS csr_roam_disconnect(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_roam_disconnect(struct mac_context *mac, uint32_t sessionId,
|
|
|
eCsrRoamDisconnectReason reason);
|
|
|
|
|
|
/* This function is used to stop a BSS. It is similar of csr_roamIssueDisconnect
|
|
|
* but this function doesn't have any logic other than blindly trying to stop
|
|
|
* BSS
|
|
|
*/
|
|
|
-QDF_STATUS csr_roam_issue_stop_bss_cmd(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_roam_issue_stop_bss_cmd(struct mac_context *mac, uint32_t sessionId,
|
|
|
bool fHighPriority);
|
|
|
|
|
|
-void csr_call_roaming_completion_callback(tpAniSirGlobal mac,
|
|
|
+void csr_call_roaming_completion_callback(struct mac_context *mac,
|
|
|
struct csr_roam_session *pSession,
|
|
|
struct csr_roam_info *roam_info,
|
|
|
uint32_t roamId,
|
|
@@ -887,7 +887,7 @@ void csr_call_roaming_completion_callback(tpAniSirGlobal mac,
|
|
|
*
|
|
|
* Return: QDF_STATUS_SUCCESS on success or another QDF_STATUS_* on error
|
|
|
*/
|
|
|
-QDF_STATUS csr_roam_issue_disassociate_sta_cmd(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_roam_issue_disassociate_sta_cmd(struct mac_context *mac,
|
|
|
uint32_t sessionId,
|
|
|
struct csr_del_sta_params
|
|
|
*p_del_sta_params);
|
|
@@ -901,7 +901,7 @@ QDF_STATUS csr_roam_issue_disassociate_sta_cmd(tpAniSirGlobal mac,
|
|
|
*
|
|
|
* Return: QDF_STATUS_SUCCESS on success or another QDF_STATUS_** on error
|
|
|
*/
|
|
|
-QDF_STATUS csr_roam_issue_deauth_sta_cmd(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_roam_issue_deauth_sta_cmd(struct mac_context *mac,
|
|
|
uint32_t sessionId,
|
|
|
struct csr_del_sta_params *pDelStaParams);
|
|
|
|
|
@@ -917,12 +917,12 @@ QDF_STATUS csr_roam_issue_deauth_sta_cmd(tpAniSirGlobal mac,
|
|
|
* stations info
|
|
|
* Return QDF_STATUS
|
|
|
*/
|
|
|
-QDF_STATUS csr_roam_get_associated_stas(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_roam_get_associated_stas(struct mac_context *mac, uint32_t sessionId,
|
|
|
QDF_MODULE_ID modId, void *pUsrContext,
|
|
|
void *pfnSapEventCallback,
|
|
|
uint8_t *pAssocStasBuf);
|
|
|
|
|
|
-QDF_STATUS csr_send_mb_get_associated_stas_req_msg(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_send_mb_get_associated_stas_req_msg(struct mac_context *mac,
|
|
|
uint32_t sessionId,
|
|
|
QDF_MODULE_ID modId,
|
|
|
struct qdf_mac_addr bssId,
|
|
@@ -938,7 +938,7 @@ QDF_STATUS csr_send_mb_get_associated_stas_req_msg(tpAniSirGlobal mac,
|
|
|
* Return QDF_STATUS
|
|
|
*/
|
|
|
QDF_STATUS
|
|
|
-csr_send_chng_mcc_beacon_interval(tpAniSirGlobal mac, uint32_t sessionId);
|
|
|
+csr_send_chng_mcc_beacon_interval(struct mac_context *mac, uint32_t sessionId);
|
|
|
|
|
|
/**
|
|
|
* csr_roam_ft_pre_auth_rsp_processor() - Handle the preauth response
|
|
@@ -948,11 +948,11 @@ csr_send_chng_mcc_beacon_interval(tpAniSirGlobal mac, uint32_t sessionId);
|
|
|
* Return: None
|
|
|
*/
|
|
|
#ifdef WLAN_FEATURE_HOST_ROAM
|
|
|
-void csr_roam_ft_pre_auth_rsp_processor(tpAniSirGlobal mac_ctx,
|
|
|
+void csr_roam_ft_pre_auth_rsp_processor(struct mac_context *mac_ctx,
|
|
|
tpSirFTPreAuthRsp pFTPreAuthRsp);
|
|
|
#else
|
|
|
static inline
|
|
|
-void csr_roam_ft_pre_auth_rsp_processor(tpAniSirGlobal mac_ctx,
|
|
|
+void csr_roam_ft_pre_auth_rsp_processor(struct mac_context *mac_ctx,
|
|
|
tpSirFTPreAuthRsp pFTPreAuthRsp)
|
|
|
{}
|
|
|
#endif
|
|
@@ -962,37 +962,37 @@ void update_cckmtsf(uint32_t *timeStamp0, uint32_t *timeStamp1,
|
|
|
uint64_t *incr);
|
|
|
#endif
|
|
|
|
|
|
-QDF_STATUS csr_roam_enqueue_preauth(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_roam_enqueue_preauth(struct mac_context *mac, uint32_t sessionId,
|
|
|
tpSirBssDescription pBssDescription,
|
|
|
enum csr_roam_reason reason, bool fImmediate);
|
|
|
-QDF_STATUS csr_dequeue_roam_command(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_dequeue_roam_command(struct mac_context *mac,
|
|
|
enum csr_roam_reason reason,
|
|
|
uint8_t session_id);
|
|
|
-void csr_init_occupied_channels_list(tpAniSirGlobal mac, uint8_t sessionId);
|
|
|
-bool csr_neighbor_roam_is_new_connected_profile(tpAniSirGlobal mac,
|
|
|
+void csr_init_occupied_channels_list(struct mac_context *mac, uint8_t sessionId);
|
|
|
+bool csr_neighbor_roam_is_new_connected_profile(struct mac_context *mac,
|
|
|
uint8_t sessionId);
|
|
|
-bool csr_neighbor_roam_connected_profile_match(tpAniSirGlobal mac,
|
|
|
+bool csr_neighbor_roam_connected_profile_match(struct mac_context *mac,
|
|
|
uint8_t sessionId,
|
|
|
struct tag_csrscan_result
|
|
|
*pResult,
|
|
|
tDot11fBeaconIEs *pIes);
|
|
|
|
|
|
-QDF_STATUS csr_scan_create_entry_in_scan_cache(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_scan_create_entry_in_scan_cache(struct mac_context *mac,
|
|
|
uint32_t sessionId,
|
|
|
struct qdf_mac_addr bssid,
|
|
|
uint8_t channel);
|
|
|
|
|
|
-QDF_STATUS csr_update_channel_list(tpAniSirGlobal mac);
|
|
|
-QDF_STATUS csr_roam_del_pmkid_from_cache(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_update_channel_list(struct mac_context *mac);
|
|
|
+QDF_STATUS csr_roam_del_pmkid_from_cache(struct mac_context *mac,
|
|
|
uint32_t sessionId,
|
|
|
tPmkidCacheInfo *pmksa,
|
|
|
bool flush_cache);
|
|
|
|
|
|
-bool csr_elected_country_info(tpAniSirGlobal mac);
|
|
|
-void csr_add_vote_for_country_info(tpAniSirGlobal mac, uint8_t *pCountryCode);
|
|
|
-void csr_clear_votes_for_country_info(tpAniSirGlobal mac);
|
|
|
+bool csr_elected_country_info(struct mac_context *mac);
|
|
|
+void csr_add_vote_for_country_info(struct mac_context *mac, uint8_t *pCountryCode);
|
|
|
+void csr_clear_votes_for_country_info(struct mac_context *mac);
|
|
|
|
|
|
-QDF_STATUS csr_send_ext_change_channel(tpAniSirGlobal mac_ctx,
|
|
|
+QDF_STATUS csr_send_ext_change_channel(struct mac_context *mac_ctx,
|
|
|
uint32_t channel, uint8_t session_id);
|
|
|
#ifdef CONFIG_VDEV_SM
|
|
|
/**
|
|
@@ -1002,38 +1002,38 @@ QDF_STATUS csr_send_ext_change_channel(tpAniSirGlobal mac_ctx,
|
|
|
*
|
|
|
* Return: QDF_STATUS
|
|
|
*/
|
|
|
-QDF_STATUS csr_csa_restart(tpAniSirGlobal mac_ctx, uint8_t session_id);
|
|
|
+QDF_STATUS csr_csa_restart(struct mac_context *mac_ctx, uint8_t session_id);
|
|
|
#endif
|
|
|
|
|
|
|
|
|
#ifdef QCA_HT_2040_COEX
|
|
|
-QDF_STATUS csr_set_ht2040_mode(tpAniSirGlobal mac, uint32_t sessionId,
|
|
|
+QDF_STATUS csr_set_ht2040_mode(struct mac_context *mac, uint32_t sessionId,
|
|
|
ePhyChanBondState cbMode, bool obssEnabled);
|
|
|
#endif
|
|
|
-QDF_STATUS csr_scan_handle_search_for_ssid(tpAniSirGlobal mac_ctx,
|
|
|
+QDF_STATUS csr_scan_handle_search_for_ssid(struct mac_context *mac_ctx,
|
|
|
uint32_t session_id);
|
|
|
-QDF_STATUS csr_scan_handle_search_for_ssid_failure(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_scan_handle_search_for_ssid_failure(struct mac_context *mac,
|
|
|
uint32_t session_id);
|
|
|
-void csr_saved_scan_cmd_free_fields(tpAniSirGlobal mac_ctx,
|
|
|
+void csr_saved_scan_cmd_free_fields(struct mac_context *mac_ctx,
|
|
|
struct csr_roam_session *session);
|
|
|
tpSirBssDescription csr_get_fst_bssdescr_ptr(tScanResultHandle result_handle);
|
|
|
|
|
|
tSirBssDescription*
|
|
|
csr_get_bssdescr_from_scan_handle(tScanResultHandle result_handle,
|
|
|
tSirBssDescription *bss_descr);
|
|
|
-bool is_disconnect_pending(tpAniSirGlobal mac_ctx,
|
|
|
+bool is_disconnect_pending(struct mac_context *mac_ctx,
|
|
|
uint8_t sessionid);
|
|
|
void csr_scan_active_list_timeout_handle(void *userData);
|
|
|
-QDF_STATUS csr_prepare_disconnect_command(tpAniSirGlobal mac,
|
|
|
+QDF_STATUS csr_prepare_disconnect_command(struct mac_context *mac,
|
|
|
uint32_t session_id, tSmeCmd **sme_cmd);
|
|
|
|
|
|
QDF_STATUS
|
|
|
-csr_roam_prepare_bss_config_from_profile(tpAniSirGlobal mac_ctx,
|
|
|
+csr_roam_prepare_bss_config_from_profile(struct mac_context *mac_ctx,
|
|
|
struct csr_roam_profile *profile,
|
|
|
struct bss_config_param *bss_cfg,
|
|
|
tSirBssDescription *bss_desc);
|
|
|
|
|
|
-void csr_roam_prepare_bss_params(tpAniSirGlobal mac_ctx, uint32_t session_id,
|
|
|
+void csr_roam_prepare_bss_params(struct mac_context *mac_ctx, uint32_t session_id,
|
|
|
struct csr_roam_profile *profile, tSirBssDescription *bss_desc,
|
|
|
struct bss_config_param *bss_cfg, tDot11fBeaconIEs *ies);
|
|
|
|
|
@@ -1047,15 +1047,15 @@ void csr_roam_prepare_bss_params(tpAniSirGlobal mac_ctx, uint32_t session_id,
|
|
|
*
|
|
|
* Return: void.
|
|
|
*/
|
|
|
-void csr_remove_bssid_from_scan_list(tpAniSirGlobal mac_ctx,
|
|
|
+void csr_remove_bssid_from_scan_list(struct mac_context *mac_ctx,
|
|
|
tSirMacAddr bssid);
|
|
|
|
|
|
-QDF_STATUS csr_roam_set_bss_config_cfg(tpAniSirGlobal mac_ctx,
|
|
|
+QDF_STATUS csr_roam_set_bss_config_cfg(struct mac_context *mac_ctx,
|
|
|
uint32_t session_id,
|
|
|
struct csr_roam_profile *profile, tSirBssDescription *bss_desc,
|
|
|
struct bss_config_param *bss_cfg, tDot11fBeaconIEs *ies,
|
|
|
bool reset_country);
|
|
|
-void csr_prune_channel_list_for_mode(tpAniSirGlobal mac,
|
|
|
+void csr_prune_channel_list_for_mode(struct mac_context *mac,
|
|
|
struct csr_channel *pChannelList);
|
|
|
|
|
|
#ifdef WLAN_FEATURE_11W
|
|
@@ -1088,15 +1088,15 @@ enum band_info csr_get_rf_band(uint8_t channel);
|
|
|
*
|
|
|
* Return: true if pmkid is found else false
|
|
|
*/
|
|
|
-bool csr_lookup_pmkid_using_bssid(tpAniSirGlobal mac,
|
|
|
+bool csr_lookup_pmkid_using_bssid(struct mac_context *mac,
|
|
|
struct csr_roam_session *session,
|
|
|
tPmkidCacheInfo *pmk_cache,
|
|
|
uint32_t *index);
|
|
|
#ifdef WLAN_FEATURE_11AX
|
|
|
-void csr_update_session_he_cap(tpAniSirGlobal mac_ctx,
|
|
|
+void csr_update_session_he_cap(struct mac_context *mac_ctx,
|
|
|
struct csr_roam_session *session);
|
|
|
#else
|
|
|
-static inline void csr_update_session_he_cap(tpAniSirGlobal mac_ctx,
|
|
|
+static inline void csr_update_session_he_cap(struct mac_context *mac_ctx,
|
|
|
struct csr_roam_session *session)
|
|
|
{
|
|
|
}
|
|
@@ -1118,7 +1118,7 @@ static inline void csr_update_session_he_cap(tpAniSirGlobal mac_ctx,
|
|
|
* means no HW mode change is needed.
|
|
|
*/
|
|
|
uint8_t
|
|
|
-csr_get_channel_for_hw_mode_change(tpAniSirGlobal mac_ctx,
|
|
|
+csr_get_channel_for_hw_mode_change(struct mac_context *mac_ctx,
|
|
|
tScanResultHandle result_handle,
|
|
|
uint32_t session_id);
|
|
|
|
|
@@ -1142,7 +1142,7 @@ csr_get_channel_for_hw_mode_change(tpAniSirGlobal mac_ctx,
|
|
|
*/
|
|
|
uint8_t
|
|
|
csr_scan_get_channel_for_hw_mode_change(
|
|
|
- tpAniSirGlobal mac_ctx, uint32_t session_id,
|
|
|
+ struct mac_context *mac_ctx, uint32_t session_id,
|
|
|
struct csr_roam_profile *profile);
|
|
|
|
|
|
#ifdef FEATURE_WLAN_DIAG_SUPPORT_CSR
|
|
@@ -1157,7 +1157,7 @@ csr_scan_get_channel_for_hw_mode_change(
|
|
|
*
|
|
|
* Returns: None (information gets populated in buffer)
|
|
|
*/
|
|
|
-void csr_get_sta_cxn_info(tpAniSirGlobal mac_ctx,
|
|
|
+void csr_get_sta_cxn_info(struct mac_context *mac_ctx,
|
|
|
struct csr_roam_session *session,
|
|
|
struct tagCsrRoamConnectedProfile *conn_profile,
|
|
|
char *buf, uint32_t buf_sz);
|