[PATCH] hostapd: Remove unnecessary condition checking for opmode.

Marek Kwaczynski marek.kwaczynski
Fri Jul 4 01:14:44 PDT 2014


Signed-hostap: Marek Kwaczynski <marek.kwaczynski at tieto.com>
---
 src/ap/ieee802_11_vht.c |   10 ----------
 1 file changed, 10 deletions(-)

diff --git a/src/ap/ieee802_11_vht.c b/src/ap/ieee802_11_vht.c
index 221d9c2..c33aa18 100644
--- a/src/ap/ieee802_11_vht.c
+++ b/src/ap/ieee802_11_vht.c
@@ -121,16 +121,6 @@ u16 set_sta_vht_opmode(struct hostapd_data *hapd, struct sta_info *sta,
 
 	channel_width = *vht_oper_notif & VHT_OPMODE_CHANNEL_WIDTH_MASK;
 
-	if (channel_width != VHT_CHANWIDTH_USE_HT &&
-	    channel_width != VHT_CHANWIDTH_80MHZ &&
-	    channel_width != VHT_CHANWIDTH_160MHZ &&
-	    channel_width != VHT_CHANWIDTH_80P80MHZ &&
-	    ((*vht_oper_notif & VHT_OPMODE_CHANNEL_RxNSS_MASK) >>
-	     VHT_OPMODE_NOTIF_RX_NSS_SHIFT) > VHT_RX_NSS_MAX_STREAMS - 1) {
-		sta->flags &= ~WLAN_STA_VHT_OPMODE_ENABLED;
-		return WLAN_STATUS_UNSPECIFIED_FAILURE;
-	}
-
 	sta->flags |= WLAN_STA_VHT_OPMODE_ENABLED;
 	sta->vht_opmode = *vht_oper_notif;
 	return WLAN_STATUS_SUCCESS;
-- 
1.7.9.5




More information about the Hostap mailing list