Browse Source

qcacmn: Use correct default phymode for 6GHz wide band scan

In 6GHz only 11AX onwards phymode is supported. Update default
phymode sent to FW in wide band scan request as 11AX HE20.

Change-Id: I56849adc8a37bf12e510c3c435a00a80952d42e3
CRs-Fixed: 2746701
Kiran Venkatappa 4 years ago
parent
commit
98f996d608
1 changed files with 5 additions and 1 deletions
  1. 5 1
      umac/scan/dispatcher/src/wlan_scan_ucfg_api.c

+ 5 - 1
umac/scan/dispatcher/src/wlan_scan_ucfg_api.c

@@ -1380,9 +1380,13 @@ ucfg_scan_init_chanlist_params(struct scan_start_request *req,
 			WLAN_CHAN_15_FREQ)
 			req->scan_req.chan_list.chan[idx].phymode =
 				SCAN_PHY_MODE_11G;
-		else
+		else if (req->scan_req.chan_list.chan[idx].freq <=
+			 WLAN_REG_MAX_5GHZ_CHAN_FREQ)
 			req->scan_req.chan_list.chan[idx].phymode =
 				SCAN_PHY_MODE_11A;
+		else
+			req->scan_req.chan_list.chan[idx].phymode =
+				SCAN_PHY_MODE_11AX_HE20;
 	}
 
 end: