Przeglądaj źródła

qcacld-3.0: Allow 11BE phy mode for monitor mode

Add support to set 11BE phy mode for monitor mode
in WCN7850.

Change-Id: I9671463e62c10669454b18c62ae04282a2a9e484
CRs-Fixed: 3089242
Rakesh Pillai 3 lat temu
rodzic
commit
faee1a2e61
2 zmienionych plików z 21 dodań i 0 usunięć
  1. 7 0
      core/hdd/src/wlan_hdd_cfg.c
  2. 14 0
      core/hdd/src/wlan_hdd_cfg80211.c

+ 7 - 0
core/hdd/src/wlan_hdd_cfg.c

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -500,6 +501,12 @@ eCsrPhyMode hdd_cfg_xlate_to_csr_phy_mode(enum hdd_dot11_mode dot11Mode)
 		return eCSR_DOT11_MODE_11ax_ONLY;
 	case (eHDD_DOT11_MODE_11ax):
 		return eCSR_DOT11_MODE_11ax;
+#ifdef WLAN_FEATURE_11BE
+	case (eHDD_DOT11_MODE_11be):
+		return eCSR_DOT11_MODE_11be;
+	case (eHDD_DOT11_MODE_11be_ONLY):
+		return eCSR_DOT11_MODE_11be_ONLY;
+#endif
 	}
 
 }

+ 14 - 0
core/hdd/src/wlan_hdd_cfg80211.c

@@ -19819,6 +19819,20 @@ void hdd_mon_select_cbmode(struct hdd_adapter *adapter,
 	hdd_debug("Dot11Mode is %u", ini_dot11_mode);
 	switch (ini_dot11_mode) {
 	case eHDD_DOT11_MODE_AUTO:
+#ifdef WLAN_FEATURE_11BE
+	case eHDD_DOT11_MODE_11be:
+	case eHDD_DOT11_MODE_11be_ONLY:
+		if (sme_is_feature_supported_by_fw(DOT11BE))
+			hdd_dot11_mode = eHDD_DOT11_MODE_11be;
+		else
+#endif
+		if (sme_is_feature_supported_by_fw(DOT11AX))
+			hdd_dot11_mode = eHDD_DOT11_MODE_11ax;
+		else if (sme_is_feature_supported_by_fw(DOT11AC))
+			hdd_dot11_mode = eHDD_DOT11_MODE_11ac;
+		else
+			hdd_dot11_mode = eHDD_DOT11_MODE_11n;
+		break;
 	case eHDD_DOT11_MODE_11ax:
 	case eHDD_DOT11_MODE_11ax_ONLY:
 		if (sme_is_feature_supported_by_fw(DOT11AX))