mac80211: fix a crash in minstrel_ht in HT mode with no supported MCS rates
commitfbb739ca1d3b734687c06f7eea0e25df2c18d876
authorFelix Fietkau <nbd@openwrt.org>
Fri, 25 Mar 2011 14:30:38 +0000 (25 15:30 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 14 Apr 2011 20:02:17 +0000 (14 13:02 -0700)
tree6479981e9dec9e358345cc5b527b21d7d34cb6c4
parentd0325b60bff25923b488313f2ef10d88050bd67e
mac80211: fix a crash in minstrel_ht in HT mode with no supported MCS rates

commit 4dc217df68a17a57f8464c74c1b4785e40bddf77 upstream.

When a client connects in HT mode but does not provide any valid MCS
rates, the function that finds the next sample rate gets stuck in an
infinite loop.
Fix this by falling back to legacy rates if no usable MCS rates are found.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/mac80211/rc80211_minstrel_ht.c