浏览代码

mac80211: disable VHT for TDLS

TDLS VHT support requires some more information elements during setup.
While these are not there, mask out the peer's VHT capabilities so that
VHT rates are not mistakenly used.

Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Arik Nemtsov 11 年之前
父节点
当前提交
bed766bd4c
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      net/mac80211/vht.c

+ 4 - 0
net/mac80211/vht.c

@@ -129,6 +129,10 @@ ieee80211_vht_cap_ie_to_sta_vht_cap(struct ieee80211_sub_if_data *sdata,
 	if (!vht_cap_ie || !sband->vht_cap.vht_supported)
 	if (!vht_cap_ie || !sband->vht_cap.vht_supported)
 		return;
 		return;
 
 
+	/* don't support VHT for TDLS peers for now */
+	if (test_sta_flag(sta, WLAN_STA_TDLS_PEER))
+		return;
+
 	/*
 	/*
 	 * A VHT STA must support 40 MHz, but if we verify that here
 	 * A VHT STA must support 40 MHz, but if we verify that here
 	 * then we break a few things - some APs (e.g. Netgear R6300v2
 	 * then we break a few things - some APs (e.g. Netgear R6300v2