|
@@ -5024,12 +5024,8 @@ static void hdd_cleanup_adapter(struct hdd_context *hdd_ctx,
|
|
|
qdf_mutex_destroy(&adapter->disconnection_status_lock);
|
|
|
hdd_apf_context_destroy(adapter);
|
|
|
qdf_spinlock_destroy(&adapter->vdev_lock);
|
|
|
-
|
|
|
- if (adapter->device_mode == QDF_SAP_MODE ||
|
|
|
- adapter->device_mode == QDF_P2P_GO_MODE) {
|
|
|
- hdd_sta_info_deinit(&adapter->sta_info_list);
|
|
|
- hdd_sta_info_deinit(&adapter->cache_sta_info_list);
|
|
|
- }
|
|
|
+ hdd_sta_info_deinit(&adapter->sta_info_list);
|
|
|
+ hdd_sta_info_deinit(&adapter->cache_sta_info_list);
|
|
|
|
|
|
wlan_hdd_debugfs_csr_deinit(adapter);
|
|
|
if (adapter->device_mode == QDF_STA_MODE)
|
|
@@ -5732,6 +5728,7 @@ struct hdd_adapter *hdd_open_adapter(struct hdd_context *hdd_ctx, uint8_t sessio
|
|
|
INIT_WORK(&adapter->ipv6_notifier_work,
|
|
|
hdd_ipv6_notifier_work_queue);
|
|
|
#endif
|
|
|
+
|
|
|
break;
|
|
|
case QDF_FTM_MODE:
|
|
|
adapter = hdd_alloc_station_adapter(hdd_ctx, mac_addr,
|
|
@@ -5774,6 +5771,8 @@ struct hdd_adapter *hdd_open_adapter(struct hdd_context *hdd_ctx, uint8_t sessio
|
|
|
qdf_list_create(&adapter->blocked_scan_request_q, WLAN_MAX_SCAN_COUNT);
|
|
|
qdf_mutex_create(&adapter->blocked_scan_request_q_lock);
|
|
|
qdf_event_create(&adapter->acs_complete_event);
|
|
|
+ hdd_sta_info_init(&adapter->sta_info_list);
|
|
|
+ hdd_sta_info_init(&adapter->cache_sta_info_list);
|
|
|
|
|
|
if (QDF_STATUS_SUCCESS == status) {
|
|
|
/* Add it to the hdd's session list. */
|