|
@@ -7566,11 +7566,16 @@ void hdd_cleanup_conn_info(struct wlan_hdd_link_info *link_info)
|
|
|
static void hdd_sta_destroy_ctx_all(struct hdd_context *hdd_ctx)
|
|
|
{
|
|
|
struct hdd_adapter *adapter, *next_adapter = NULL;
|
|
|
+ struct wlan_hdd_link_info *link_info;
|
|
|
|
|
|
hdd_for_each_adapter_dev_held_safe(hdd_ctx, adapter, next_adapter,
|
|
|
NET_DEV_HOLD_STA_DESTROY_CTX_ALL) {
|
|
|
- if (adapter->device_mode == QDF_STA_MODE)
|
|
|
- hdd_cleanup_conn_info(adapter->deflink);
|
|
|
+ if (adapter->device_mode == QDF_STA_MODE) {
|
|
|
+ hdd_adapter_for_each_active_link_info(adapter,
|
|
|
+ link_info) {
|
|
|
+ hdd_cleanup_conn_info(link_info);
|
|
|
+ }
|
|
|
+ }
|
|
|
hdd_adapter_dev_put_debug(adapter,
|
|
|
NET_DEV_HOLD_STA_DESTROY_CTX_ALL);
|
|
|
}
|
|
@@ -8477,10 +8482,14 @@ static void __hdd_close_adapter(struct hdd_context *hdd_ctx,
|
|
|
bool rtnl_held)
|
|
|
{
|
|
|
struct qdf_mac_addr adapter_mac;
|
|
|
+ struct wlan_hdd_link_info *link_info;
|
|
|
+
|
|
|
|
|
|
qdf_copy_macaddr(&adapter_mac, &adapter->mac_addr);
|
|
|
- if (adapter->device_mode == QDF_STA_MODE)
|
|
|
- hdd_cleanup_conn_info(adapter->deflink);
|
|
|
+ if (adapter->device_mode == QDF_STA_MODE) {
|
|
|
+ hdd_adapter_for_each_active_link_info(adapter, link_info)
|
|
|
+ hdd_cleanup_conn_info(link_info);
|
|
|
+ }
|
|
|
qdf_list_destroy(&adapter->blocked_scan_request_q);
|
|
|
qdf_mutex_destroy(&adapter->blocked_scan_request_q_lock);
|
|
|
policy_mgr_clear_concurrency_mode(hdd_ctx->psoc, adapter->device_mode);
|