From 3dcedfd7578d3a3b34586131cd5bd3e1b3ac936b Mon Sep 17 00:00:00 2001 From: abhinav kumar Date: Mon, 8 Mar 2021 12:27:33 +0530 Subject: [PATCH] qcacld-3.0: Invalid reason code in case of scan If the WLAN driver stops sending up beacon information due to other WIFI operations (like scan and disconnection), Driver must send pause indication to wpa-supplicant with reason code defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons. Currently, host sends invalid pause reason in case of scan. Fix is to send proper reason code in pause indication in case of a scan. Change-Id: Id99e5a29be09fbde2c23908ab1f85d40ca3d74b8 CRs-Fixed: 2890110 --- core/hdd/src/wlan_hdd_bcn_recv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_bcn_recv.c b/core/hdd/src/wlan_hdd_bcn_recv.c index 5685c5daf4e6..63db8edfda36 100644 --- a/core/hdd/src/wlan_hdd_bcn_recv.c +++ b/core/hdd/src/wlan_hdd_bcn_recv.c @@ -486,7 +486,7 @@ void hdd_beacon_recv_pause_indication(hdd_handle_t hdd_handle, adapter); switch (type) { - case SCAN_EVENT_TYPE_FOREIGN_CHANNEL: + case SCAN_EVENT_TYPE_STARTED: abort_reason = QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED; break;