浏览代码

mac80211: skip HT parsing if HW does not support HT

This patch will also fix the odd freeze which occurred
when minstrel_ht connects to an 802.11n network with
legacy hardware.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Christian Lamparter 15 年之前
父节点
当前提交
15804e3e9d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      net/mac80211/ht.c

+ 1 - 1
net/mac80211/ht.c

@@ -29,7 +29,7 @@ void ieee80211_ht_cap_ie_to_sta_ht_cap(struct ieee80211_supported_band *sband,
 
 
 	memset(ht_cap, 0, sizeof(*ht_cap));
 	memset(ht_cap, 0, sizeof(*ht_cap));
 
 
-	if (!ht_cap_ie)
+	if (!ht_cap_ie || !sband->ht_cap.ht_supported)
 		return;
 		return;
 
 
 	ht_cap->ht_supported = true;
 	ht_cap->ht_supported = true;