Browse Source

qcacld-3.0: Add 320MHz case to conversion function

If the 11BE feature is enabled, 320MHz is added to the channel width
enum. This causes a compilation error in switch cases that do not handle
this case. Add the 320 case to the switch statement.

Change-Id: I6cf4f1395f9f8eb2fc14029dc371742362befa80
CRs-fixed: 2961456
Lincoln Tran 3 years ago
parent
commit
58af8b7009
1 changed files with 4 additions and 0 deletions
  1. 4 0
      core/hdd/src/wlan_hdd_cfg80211.c

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

@@ -15355,6 +15355,10 @@ hdd_convert_phy_bw_to_nl_bw(enum phy_ch_width bw)
 		return NL80211_CHAN_WIDTH_5;
 	case CH_WIDTH_10MHZ:
 		return NL80211_CHAN_WIDTH_10;
+#ifdef WLAN_FEATURE_11BE
+	case CH_WIDTH_320MHZ:
+		return NL80211_CHAN_WIDTH_320;
+#endif
 	case CH_WIDTH_INVALID:
 	case CH_WIDTH_MAX:
 		return NL80211_CHAN_WIDTH_20;