From: Stanislaw Gruszka Date: Fri, 26 Aug 2011 15:24:59 +0000 (+0200) Subject: iwlegacy: fix BUG_ON(info->control.rates[0].idx < 0) X-Git-Tag: v3.1-rc7~2^2~12^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c2510120e9b43b0caf32c3786a6ab831f7d9e87;p=pandora-kernel.git iwlegacy: fix BUG_ON(info->control.rates[0].idx < 0) 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 Cc: stable@kernel.org Signed-off-by: Stanislaw Gruszka Signed-off-by: John W. Linville --- Reading git-diff-tree failed