mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
9edd9520a2
commit
15804e3e9d
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue