Эх сурвалжийг харах

qcacmn: Add dfs macros to avoid compilation issue

There is compilation issue since dfs macros only defined with
WLAN_COMP_CHAN_MODE. So adds related definitions for the case without
WLAN_COMP_CHAN_MODE.

Change-Id: I4b9f16b5000304157067be565864cc79c510770f
CRs-Fixed: 2848979
Wu Gao 4 жил өмнө
parent
commit
f9ead26a48

+ 7 - 1
umac/dfs/core/src/dfs_channel.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016-2018,2020 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2018,2020-2021 The Linux Foundation. All rights reserved.
  * Copyright (c) 2008 Atheros Communications, Inc.
  *
  * Permission to use, copy, modify, and/or distribute this software for
@@ -408,6 +408,12 @@
 #define WLAN_IS_CHAN_11N_HT40MINUS(_c) \
 	(((_c)->dfs_ch_flags & WLAN_CHAN_HT40MINUS) != 0)
 
+#define WLAN_IS_CHAN_VHT40PLUS(_c) \
+	(((_c)->dfs_ch_flags & WLAN_CHAN_VHT40PLUS) != 0)
+
+#define WLAN_IS_CHAN_VHT40MINUS(_c) \
+	(((_c)->dfs_ch_flags & WLAN_CHAN_VHT40MINUS) != 0)
+
 #define WLAN_CHAN_A \
 	(WLAN_CHAN_5GHZ | WLAN_CHAN_OFDM)