qcacld-3.0: Fix warning during SAP SSR deinit

Check for SAP BSS started flag before deinitialization of SAP
context data, station disconnection and action frame cleanup

Change-Id: I0191567818d5ee62a826531311cd08cb1a18ad28
CRs-fixed: 2008653
This commit is contained in:
Manikandan Mohan 2017-02-17 15:06:11 -08:00 • committed by Sandeep Puligilla
commit 0a44ec81fd
2 changed files with 9 additions and 6 deletions

View file

@ -8486,8 +8486,6 @@ void hdd_sap_indicate_disconnect_for_sta(hdd_adapter_t *adapter)
}
}
clear_bit(SOFTAP_BSS_STARTED, &adapter->event_flags);
EXIT();
}

View file

@ -4056,13 +4056,18 @@ QDF_STATUS hdd_reset_all_adapters(hdd_context_t *hdd_ctx)
wlan_hdd_netif_queue_control(adapter,
WLAN_NETIF_TX_DISABLE,
WLAN_CONTROL_PATH);
hdd_sap_indicate_disconnect_for_sta(adapter);
hdd_cleanup_actionframe(hdd_ctx, adapter);
hdd_sap_destroy_events(adapter);
} else
if (test_bit(SOFTAP_BSS_STARTED,
&adapter->event_flags)) {
hdd_sap_indicate_disconnect_for_sta(adapter);
hdd_cleanup_actionframe(hdd_ctx, adapter);
hdd_sap_destroy_events(adapter);
}
clear_bit(SOFTAP_BSS_STARTED, &adapter->event_flags);
} else {
wlan_hdd_netif_queue_control(adapter,
WLAN_NETIF_TX_DISABLE_N_CARRIER,
WLAN_CONTROL_PATH);
}
adapter->sessionCtx.station.hdd_ReassocScenario = false;