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)
committerBrad Figg <brad.figg@canonical.com>
Wed, 27 Apr 2011 18:40:59 +0000 (11:40 -0700)
commitdf7a17612b37dc54a9bc4d2370aecd884c14fd10
tree2a8c7bf0dfd3b46c34a3bfe7ad0f497408a4d7fb
parent0d7662591d0f70bca7874cb46b1b937e966c11de
mac80211: fix a crash in minstrel_ht in HT mode with no supported MCS rates

BugLink: http://bugs.launchpad.net/bugs/761134

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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
net/mac80211/rc80211_minstrel_ht.c