aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajkumar Manoharan <rmanohar@codeaurora.org>2020-06-02 06:14:27 (GMT)
committerJouni Malinen <j@w1.fi>2020-06-10 18:30:50 (GMT)
commit088bef178656c97d096e503382f64ff13a041067 (patch)
tree347d59b97394d386ded2f2443400f0649e6918f3
parent6a34bd30077912075d440325872ac8089f0067f1 (diff)
downloadhostap-088bef178656c97d096e503382f64ff13a041067.zip
hostap-088bef178656c97d096e503382f64ff13a041067.tar.gz
hostap-088bef178656c97d096e503382f64ff13a041067.tar.bz2
AP: Restrict Vendor VHT to 2.4 GHz only
Vendor VHT IE is used only on the 2.4 GHz band. Restrict the use of vendor VHT element to 2.4 GHz. This will ensure that invalid/wrong user configuration will not impact beacon data in other than the 2.4 GHz band. Signed-off-by: Rajkumar Manoharan <rmanohar@codeaurora.org>
-rw-r--r--src/ap/ieee802_11_vht.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ap/ieee802_11_vht.c b/src/ap/ieee802_11_vht.c
index f50f142..425b192 100644
--- a/src/ap/ieee802_11_vht.c
+++ b/src/ap/ieee802_11_vht.c
@@ -425,7 +425,9 @@ u8 * hostapd_eid_vendor_vht(struct hostapd_data *hapd, u8 *eid)
{
u8 *pos = eid;
- if (!hapd->iface->current_mode)
+ /* Vendor VHT is applicable only to 2.4 GHz */
+ if (!hapd->iface->current_mode ||
+ hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G)
return eid;
*pos++ = WLAN_EID_VENDOR_SPECIFIC;