[PATCH 5/9] AP: Validate VHT config for 6 GHz Band Capabilities

Rajkumar Manoharan <[email protected]>
Newsgroups gmane.linux.drivers.hostap
Message-ID <[email protected]>
Following VHT Capabilities are mandatory for HE 6 GHz band capabilities
and corresponding configs should be validated for 6 GHz band.

* VHT_CAP_MAX_MPDU_LENGTH_MASK
* VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MAX
* VHT_CAP_RX_ANTENNA_PATTERN
* VHT_CAP_TX_ANTENNA_PATTERN

Signed-off-by: Rajkumar Manoharan <[email protected]>
---
 src/ap/hw_features.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/ap/hw_features.c b/src/ap/hw_features.c
index f6e69030d767..bd7e1b213ef9 100644
--- a/src/ap/hw_features.c
+++ b/src/ap/hw_features.c
@@ -671,8 +671,17 @@ int hostapd_check_ht_capab(struct hostapd_iface *iface)
 {
 	int ret;
 
-	if (is_6ghz_freq(iface->freq))
+	if (is_6ghz_freq(iface->freq)) {
+		/*
+		 * VHT capabilities needed for HE 6 GHz Band Capabilities
+		 * needs to be validated against config.
+		 */
+#ifdef CONFIG_IEEE80211AC
+		if (!ieee80211ac_supported_vht_capab(iface))
+			return -1;
+#endif
 		return 0;
+	}
 	if (!iface->conf->ieee80211n)
 		return 0;
 
-- 
2.7.4
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.