Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15804e3e authored by Christian Lamparter's avatar Christian Lamparter Committed by John W. Linville
Browse files

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: default avatarChristian Lamparter <chunkeey@googlemail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 9edd9520
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;