Skip to content

Commit

Permalink
mac80211: skip HT parsing if HW does not support HT
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christian Lamparter authored and John W. Linville committed Jul 16, 2010
1 parent 9edd952 commit 15804e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/ht.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

if (!ht_cap_ie)
if (!ht_cap_ie || !sband->ht_cap.ht_supported)
return;

ht_cap->ht_supported = true;
Expand Down

0 comments on commit 15804e3

Please sign in to comment.