]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
iwlegacy: fix BUG_ON(info->control.rates[0].idx < 0)
authorStanislaw Gruszka <sgruszka@redhat.com>
Fri, 26 Aug 2011 15:24:59 +0000 (17:24 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:40:24 +0000 (11:40 -0700)
commitfb88e8c4a2b208606f5ee7e5dc087d2ade9525ce
tree25e737aad22f8d5de7bbee82991d2c508eae4c10
parent1ec94e5a9d9eed782c28bf772c014e8cbdc2b0f2
iwlegacy: fix BUG_ON(info->control.rates[0].idx < 0)

commit 7c2510120e9b43b0caf32c3786a6ab831f7d9e87 upstream.

When trying to connect to 5GHz we can provide negative index to
mac80211 what trigger BUG_ON. Reason of iwl-3945-rs malfunction
on 5GHz is unknown and needs further investigation. For now, to
do not trigger a bug, correct value and just print WARNING.

Address bug:
https://bugzilla.redhat.com/show_bug.cgi?id=730653

Reported-and-tested-by: Jan Teichmann <jan.teichmann@gmail.com>
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/iwlegacy/iwl-3945-rs.c