Преглед изворни кода

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
Dustin Brown пре 7 година
родитељ
комит
a5cf8e0207
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      core/hdd/src/wlan_hdd_main.c

+ 3 - 0
core/hdd/src/wlan_hdd_main.c

@@ -4410,6 +4410,7 @@ QDF_STATUS hdd_stop_adapter(struct hdd_context *hdd_ctx, struct hdd_adapter *ada
 	case QDF_SAP_MODE:
 		/* Flush IPA exception path packets */
 		hdd_ipa_flush(hdd_ctx);
+
 	case QDF_P2P_GO_MODE:
 		if (QDF_SAP_MODE == adapter->device_mode) {
 			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);
+
 		/* Any softap specific cleanup here... */
+		wlan_hdd_undo_acs(adapter);
 		if (adapter->device_mode == QDF_P2P_GO_MODE)
 			wlan_hdd_cleanup_remain_on_channel_ctx(adapter);