Browse Source

qcacmn: Ignore legacy rate set if it is HE connection

Do not configure legacy rate to FW if it is HE connection, otherwise
FW does not work.

Change-Id: I391e328ac71761722642f884e2be2b3eb15d2a1d
CRs-Fixed: 2475625
bings 5 years ago
parent
commit
942a552a17
1 changed files with 13 additions and 0 deletions
  1. 13 0
      umac/cmn_services/inc/wlan_cmn.h

+ 13 - 0
umac/cmn_services/inc/wlan_cmn.h

@@ -394,6 +394,19 @@ enum wlan_phymode {
 
 #define WLAN_PHYMODE_MAX      (WLAN_PHYMODE_11AXA_HE80_80 + 1)
 
+#define IS_WLAN_PHYMODE_HE(_mode) ({typeof(_mode) mode = (_mode); \
+	((mode) == WLAN_PHYMODE_11AXA_HE20) || \
+	((mode) == WLAN_PHYMODE_11AXG_HE20)     || \
+	((mode) == WLAN_PHYMODE_11AXA_HE40PLUS)     || \
+	((mode) == WLAN_PHYMODE_11AXA_HE40MINUS)  || \
+	((mode) == WLAN_PHYMODE_11AXG_HE40PLUS)    || \
+	((mode) == WLAN_PHYMODE_11AXG_HE40MINUS)  || \
+	((mode) == WLAN_PHYMODE_11AXA_HE40)  || \
+	((mode) == WLAN_PHYMODE_11AXG_HE40)  || \
+	((mode) == WLAN_PHYMODE_11AXA_HE80)  || \
+	((mode) == WLAN_PHYMODE_11AXA_HE160)  || \
+	((mode) == WLAN_PHYMODE_11AXA_HE80_80); })
+
 /**
  * enum phy_ch_width - channel width
  * @CH_WIDTH_20MHZ: 20 mhz width