Browse Source

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
abhinav kumar 4 years ago
parent
commit
b7de8d2d47
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/hdd/src/wlan_hdd_bcn_recv.c

+ 1 - 1
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;