|
@@ -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;
|
|
|
|