]> git.baikalelectronics.ru Git - kernel.git/commit
iwlegacy: fix IBSS mode crashes
authorStanislaw Gruszka <sgruszka@redhat.com>
Sat, 7 May 2011 15:46:21 +0000 (17:46 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 May 2011 19:46:59 +0000 (15:46 -0400)
commitd264753c7c890720ee396920851426f9f6ce6d8b
treebbbdb2fbede2addfb0b3c09886f53bd858b45814
parente44c0a82306a3e6546c4c79d554b41d1c3dced02
iwlegacy: fix IBSS mode crashes

We should not switch to non-IBSS channels when working in IBSS mode,
otherwise there are microcode errors, and after some time system
crashes.

This bug is only observable when software scan is used in IBSS mode,
so should be considered as regression after:

commit 02de8fe137f30ea9b132bb68148dd84602ff8fe2
Author: Stanislaw Gruszka <sgruszka@redhat.com>
Date:   Tue Mar 29 11:24:21 2011 +0200

    iwl3945: disable hw scan by default

However IBSS mode check, which this patch add again, was removed by

commit 0dc6941d19edbdb102c50fa9056e54b49daf07d5
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Thu Jan 21 07:32:20 2010 -0800

    iwlwifi: remove IBSS channel sanity check

That commit claim that mac80211 will not use non-IBSS channel in IBSS
mode, what definitely is not true. Bug probably should be fixed in
mac80211, but that will require more work, so better to apply that patch
temporally, and provide proper mac80211 fix latter.

Resolves:
https://bugzilla.kernel.org/show_bug.cgi?id=34452

Reported-and-tested-by: Mikko Rapeli <mikko.rapeli@iki.fi>
Cc: stable@kernel.org # 2.6.38.5+
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlegacy/iwl-core.c
drivers/net/wireless/iwlegacy/iwl-dev.h