qcacld-3.0: Cleanup ACS channels in stop adapter
Currently, the auto channel selection (ACS) channel list is cleaned up when ACS is disabled from userspace. Make sure the ACS channel list is cleaned up as part of adapter stop to cover cases where userspace does not trigger the cleanup of the ACS channel list. Change-Id: I92b63c7ea53fba55a39e6b414d0f3ed28d4019a2 CRs-Fixed: 2129647
This commit is contained in:
@@ -4410,6 +4410,7 @@ QDF_STATUS hdd_stop_adapter(struct hdd_context *hdd_ctx, struct hdd_adapter *ada
|
|||||||
case QDF_SAP_MODE:
|
case QDF_SAP_MODE:
|
||||||
/* Flush IPA exception path packets */
|
/* Flush IPA exception path packets */
|
||||||
hdd_ipa_flush(hdd_ctx);
|
hdd_ipa_flush(hdd_ctx);
|
||||||
|
|
||||||
case QDF_P2P_GO_MODE:
|
case QDF_P2P_GO_MODE:
|
||||||
if (QDF_SAP_MODE == adapter->device_mode) {
|
if (QDF_SAP_MODE == adapter->device_mode) {
|
||||||
if (test_bit(ACS_PENDING, &adapter->event_flags)) {
|
if (test_bit(ACS_PENDING, &adapter->event_flags)) {
|
||||||
@@ -4419,7 +4420,9 @@ QDF_STATUS hdd_stop_adapter(struct hdd_context *hdd_ctx, struct hdd_adapter *ada
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
cds_flush_work(&adapter->sap_stop_bss_work);
|
cds_flush_work(&adapter->sap_stop_bss_work);
|
||||||
|
|
||||||
/* Any softap specific cleanup here... */
|
/* Any softap specific cleanup here... */
|
||||||
|
wlan_hdd_undo_acs(adapter);
|
||||||
if (adapter->device_mode == QDF_P2P_GO_MODE)
|
if (adapter->device_mode == QDF_P2P_GO_MODE)
|
||||||
wlan_hdd_cleanup_remain_on_channel_ctx(adapter);
|
wlan_hdd_cleanup_remain_on_channel_ctx(adapter);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user