mac80211: fix an oops in ieee80211_scan_state_set_channel
authorHelmut Schaa <helmut.schaa@googlemail.com>
Sat, 25 Jul 2009 15:25:51 +0000 (17:25 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 29 Jul 2009 19:46:07 +0000 (15:46 -0400)
commit0ee9c13c7c92581ab005d80795cf65897213b249
tree835e48c69fc06f0f02f37635bce4267720224b5f
parentc0b2bbd833a5a26b5a9425cb9a7eb66bbe736dd1
mac80211: fix an oops in ieee80211_scan_state_set_channel

Fix an oops in ieee80211_scan_state_set_channel which was triggered
if the last scanned channel was skipped (for example due to regulatory
restrictions) by returning to the decision state after each skipped
channel.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/scan.c