|
@@ -944,7 +944,7 @@ void wma_process_set_pdev_vht_ie_req(tp_wma_handle wma,
|
|
|
* Return: none
|
|
|
*/
|
|
|
void wma_roam_scan_fill_scan_params(tp_wma_handle wma_handle,
|
|
|
- tpAniSirGlobal mac,
|
|
|
+ struct mac_context *mac,
|
|
|
tSirRoamOffloadScanReq *roam_req,
|
|
|
wmi_start_scan_cmd_fixed_param *
|
|
|
scan_params)
|
|
@@ -1409,7 +1409,7 @@ QDF_STATUS wma_process_roaming_config(tp_wma_handle wma_handle,
|
|
|
{
|
|
|
QDF_STATUS qdf_status = QDF_STATUS_SUCCESS;
|
|
|
wmi_start_scan_cmd_fixed_param scan_params;
|
|
|
- tpAniSirGlobal mac = cds_get_context(QDF_MODULE_ID_PE);
|
|
|
+ struct mac_context *mac = cds_get_context(QDF_MODULE_ID_PE);
|
|
|
uint32_t mode = 0;
|
|
|
struct wma_txrx_node *intr = NULL;
|
|
|
|
|
@@ -2082,7 +2082,7 @@ static int wma_fill_roam_synch_buffer(tp_wma_handle wma,
|
|
|
roam_synch_ind_ptr->rssi, roam_synch_ind_ptr->isBeacon);
|
|
|
|
|
|
if (!QDF_IS_STATUS_SUCCESS(
|
|
|
- wma->csr_roam_synch_cb((tpAniSirGlobal)wma->mac_context,
|
|
|
+ wma->csr_roam_synch_cb((struct mac_context *)wma->mac_context,
|
|
|
roam_synch_ind_ptr, NULL, SIR_ROAMING_DEREGISTER_STA))) {
|
|
|
WMA_LOGE("LFR3: CSR Roam synch cb failed");
|
|
|
wma_free_roam_synch_frame_ind(iface);
|
|
@@ -2438,7 +2438,7 @@ int wma_roam_synch_event_handler(void *handle, uint8_t *event,
|
|
|
}
|
|
|
qdf_mem_zero(bss_desc_ptr, sizeof(tSirBssDescription) + ie_len);
|
|
|
if (QDF_IS_STATUS_ERROR(wma->pe_roam_synch_cb(
|
|
|
- (tpAniSirGlobal)wma->mac_context,
|
|
|
+ (struct mac_context *)wma->mac_context,
|
|
|
roam_synch_ind_ptr, bss_desc_ptr,
|
|
|
SIR_ROAM_SYNCH_PROPAGATION))) {
|
|
|
WMA_LOGE("LFR3: PE roam synch cb failed");
|
|
@@ -2447,7 +2447,7 @@ int wma_roam_synch_event_handler(void *handle, uint8_t *event,
|
|
|
}
|
|
|
|
|
|
wma_roam_update_vdev(wma, roam_synch_ind_ptr);
|
|
|
- wma->csr_roam_synch_cb((tpAniSirGlobal)wma->mac_context,
|
|
|
+ wma->csr_roam_synch_cb((struct mac_context *)wma->mac_context,
|
|
|
roam_synch_ind_ptr, bss_desc_ptr, SIR_ROAM_SYNCH_PROPAGATION);
|
|
|
wma_process_roam_synch_complete(wma, synch_event->vdev_id);
|
|
|
|
|
@@ -2458,13 +2458,13 @@ int wma_roam_synch_event_handler(void *handle, uint8_t *event,
|
|
|
wma->interfaces[synch_event->vdev_id].chan_width =
|
|
|
roam_synch_ind_ptr->join_rsp->vht_channel_width;
|
|
|
|
|
|
- wma->csr_roam_synch_cb((tpAniSirGlobal)wma->mac_context,
|
|
|
+ wma->csr_roam_synch_cb((struct mac_context *)wma->mac_context,
|
|
|
roam_synch_ind_ptr, bss_desc_ptr, SIR_ROAM_SYNCH_COMPLETE);
|
|
|
wma->interfaces[synch_event->vdev_id].roam_synch_delay =
|
|
|
qdf_get_system_timestamp() - roam_synch_received;
|
|
|
WMA_LOGD("LFR3: roam_synch_delay:%d",
|
|
|
wma->interfaces[synch_event->vdev_id].roam_synch_delay);
|
|
|
- wma->csr_roam_synch_cb((tpAniSirGlobal)wma->mac_context,
|
|
|
+ wma->csr_roam_synch_cb((struct mac_context *)wma->mac_context,
|
|
|
roam_synch_ind_ptr, bss_desc_ptr, SIR_ROAM_SYNCH_NAPI_OFF);
|
|
|
|
|
|
status = 0;
|
|
@@ -2472,7 +2472,7 @@ int wma_roam_synch_event_handler(void *handle, uint8_t *event,
|
|
|
cleanup_label:
|
|
|
if (status != 0) {
|
|
|
if (roam_synch_ind_ptr)
|
|
|
- wma->csr_roam_synch_cb((tpAniSirGlobal)wma->mac_context,
|
|
|
+ wma->csr_roam_synch_cb((struct mac_context *)wma->mac_context,
|
|
|
roam_synch_ind_ptr, NULL, SIR_ROAMING_ABORT);
|
|
|
roam_req = qdf_mem_malloc(sizeof(tSirRoamOffloadScanReq));
|
|
|
if (roam_req && synch_event) {
|
|
@@ -2848,7 +2848,7 @@ int wma_rssi_breached_event_handler(void *handle,
|
|
|
WMI_RSSI_BREACH_EVENTID_param_tlvs *param_buf;
|
|
|
wmi_rssi_breach_event_fixed_param *event;
|
|
|
struct rssi_breach_event rssi;
|
|
|
- tpAniSirGlobal mac = cds_get_context(QDF_MODULE_ID_PE);
|
|
|
+ struct mac_context *mac = cds_get_context(QDF_MODULE_ID_PE);
|
|
|
|
|
|
if (!mac) {
|
|
|
WMA_LOGE("%s: Invalid mac context", __func__);
|
|
@@ -3403,7 +3403,7 @@ int wma_extscan_start_stop_event_handler(void *handle,
|
|
|
wmi_extscan_start_stop_event_fixed_param *event;
|
|
|
struct sir_extscan_generic_response *extscan_ind;
|
|
|
uint16_t event_type;
|
|
|
- tpAniSirGlobal mac = cds_get_context(QDF_MODULE_ID_PE);
|
|
|
+ struct mac_context *mac = cds_get_context(QDF_MODULE_ID_PE);
|
|
|
|
|
|
if (!mac) {
|
|
|
WMA_LOGE("%s: Invalid mac", __func__);
|
|
@@ -3501,7 +3501,7 @@ int wma_extscan_operations_event_handler(void *handle,
|
|
|
wmi_extscan_operation_event_fixed_param *oprn_event;
|
|
|
tSirExtScanOnScanEventIndParams *oprn_ind;
|
|
|
uint32_t cnt;
|
|
|
- tpAniSirGlobal mac = cds_get_context(QDF_MODULE_ID_PE);
|
|
|
+ struct mac_context *mac = cds_get_context(QDF_MODULE_ID_PE);
|
|
|
|
|
|
if (!mac) {
|
|
|
WMA_LOGE("%s: Invalid mac", __func__);
|
|
@@ -3614,7 +3614,7 @@ int wma_extscan_table_usage_event_handler(void *handle,
|
|
|
WMI_EXTSCAN_TABLE_USAGE_EVENTID_param_tlvs *param_buf;
|
|
|
wmi_extscan_table_usage_event_fixed_param *event;
|
|
|
tSirExtScanResultsAvailableIndParams *tbl_usg_ind;
|
|
|
- tpAniSirGlobal mac = cds_get_context(QDF_MODULE_ID_PE);
|
|
|
+ struct mac_context *mac = cds_get_context(QDF_MODULE_ID_PE);
|
|
|
|
|
|
if (!mac) {
|
|
|
WMA_LOGE("%s: Invalid mac", __func__);
|
|
@@ -3666,7 +3666,7 @@ int wma_extscan_capabilities_event_handler(void *handle,
|
|
|
wmi_extscan_hotlist_monitor_capabilities *src_hotlist;
|
|
|
wmi_extscan_wlan_change_monitor_capabilities *src_change;
|
|
|
struct ext_scan_capabilities_response *dest_capab;
|
|
|
- tpAniSirGlobal mac = cds_get_context(QDF_MODULE_ID_PE);
|
|
|
+ struct mac_context *mac = cds_get_context(QDF_MODULE_ID_PE);
|
|
|
|
|
|
if (!mac) {
|
|
|
WMA_LOGE("%s: Invalid mac", __func__);
|
|
@@ -3771,7 +3771,7 @@ int wma_extscan_hotlist_match_event_handler(void *handle,
|
|
|
uint32_t numap;
|
|
|
int j, ap_found = 0;
|
|
|
uint32_t buf_len;
|
|
|
- tpAniSirGlobal mac = cds_get_context(QDF_MODULE_ID_PE);
|
|
|
+ struct mac_context *mac = cds_get_context(QDF_MODULE_ID_PE);
|
|
|
|
|
|
if (!mac) {
|
|
|
WMA_LOGE("%s: Invalid mac", __func__);
|
|
@@ -4069,7 +4069,7 @@ int wma_extscan_cached_results_event_handler(void *handle,
|
|
|
wmi_extscan_wlan_descriptor *src_hotlist;
|
|
|
wmi_extscan_rssi_info *src_rssi;
|
|
|
int i, moredata, scan_ids_cnt, buf_len, status;
|
|
|
- tpAniSirGlobal mac = cds_get_context(QDF_MODULE_ID_PE);
|
|
|
+ struct mac_context *mac = cds_get_context(QDF_MODULE_ID_PE);
|
|
|
uint32_t total_len;
|
|
|
bool excess_data = false;
|
|
|
|
|
@@ -4221,7 +4221,7 @@ int wma_extscan_change_results_event_handler(void *handle,
|
|
|
int count = 0;
|
|
|
int moredata;
|
|
|
uint32_t rssi_num = 0;
|
|
|
- tpAniSirGlobal mac = cds_get_context(QDF_MODULE_ID_PE);
|
|
|
+ struct mac_context *mac = cds_get_context(QDF_MODULE_ID_PE);
|
|
|
uint32_t buf_len;
|
|
|
bool excess_data = false;
|
|
|
|
|
@@ -4360,7 +4360,7 @@ int wma_passpoint_match_event_handler(void *handle,
|
|
|
uint8_t *buf_ptr;
|
|
|
uint32_t buf_len = 0;
|
|
|
bool excess_data = false;
|
|
|
- tpAniSirGlobal mac = cds_get_context(QDF_MODULE_ID_PE);
|
|
|
+ struct mac_context *mac = cds_get_context(QDF_MODULE_ID_PE);
|
|
|
|
|
|
if (!mac) {
|
|
|
WMA_LOGE("%s: Invalid mac", __func__);
|
|
@@ -4911,10 +4911,10 @@ int wma_roam_event_callback(WMA_HANDLE handle, uint8_t *event_buf,
|
|
|
}
|
|
|
roam_synch_data->roamedVdevId = wmi_event->vdev_id;
|
|
|
wma_handle->pe_roam_synch_cb(
|
|
|
- (tpAniSirGlobal)wma_handle->mac_context,
|
|
|
+ (struct mac_context *)wma_handle->mac_context,
|
|
|
roam_synch_data, NULL, op_code);
|
|
|
wma_handle->csr_roam_synch_cb(
|
|
|
- (tpAniSirGlobal)wma_handle->mac_context,
|
|
|
+ (struct mac_context *)wma_handle->mac_context,
|
|
|
roam_synch_data, NULL, op_code);
|
|
|
qdf_mem_free(roam_synch_data);
|
|
|
break;
|
|
@@ -4928,7 +4928,7 @@ int wma_roam_event_callback(WMA_HANDLE handle, uint8_t *event_buf,
|
|
|
|
|
|
roam_synch_data->roamedVdevId = wmi_event->vdev_id;
|
|
|
wma_handle->csr_roam_synch_cb(
|
|
|
- (tpAniSirGlobal)wma_handle->mac_context,
|
|
|
+ (struct mac_context *)wma_handle->mac_context,
|
|
|
roam_synch_data, NULL, SIR_ROAMING_INVOKE_FAIL);
|
|
|
qdf_mem_free(roam_synch_data);
|
|
|
break;
|