mac80211: fix a crash in minstrel_ht in HT mode with no supported MCS rates
authorFelix Fietkau <nbd@openwrt.org>
Fri, 25 Mar 2011 14:30:38 +0000 (15:30 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 28 Mar 2011 19:42:01 +0000 (15:42 -0400)
commit4dc217df68a17a57f8464c74c1b4785e40bddf77
tree12a239bc636c6499f929ed352e496559bbc241f1
parentb77dcf8460ae57d4eb9fd3633eb4f97b8fb20716
mac80211: fix a crash in minstrel_ht in HT mode with no supported MCS rates

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>
Cc: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/rc80211_minstrel_ht.c