]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: prohibit scanning the same channel more than once
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 17 Jun 2009 15:41:49 +0000 (17:41 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 10 Jul 2009 18:57:54 +0000 (14:57 -0400)
commitead89c941f960f350eff04cdae086bb736bf8a39
treec6b2fdf4a727ae6a7d87afe205dde078339d151d
parentf3a17d28747389f67ef91487b4b541d2b308cc1d
cfg80211: prohibit scanning the same channel more than once

It isn't very useful to scan the same channel more than once
during a given scan, and some hardware (notably iwlwifi) can
only scan a limited number of channels at a time. To prevent
any overflows, simply disallow scanning any channel multiple
times in a given scan command. This is a small change in the
userspace ABI, but the only user, wpa_supplicant, never asks
for a scan with the same frequency listed twice.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/nl80211.c