aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2010-02-03 10:22:31 +0100
committerJohn W. Linville <linville@tuxdriver.com>2010-02-08 16:07:23 -0500
commitc0ce77b8323c1a0d4eeef97caf16c0ea971222a9 (patch)
tree933f730f9df8f969495d1cbf7b2ddd40bfc40906 /net/sched
parent098dfded5b1b09927995e89c6d689f85a0f53384 (diff)
downloadkernel_samsung_tuna-c0ce77b8323c1a0d4eeef97caf16c0ea971222a9.zip
kernel_samsung_tuna-c0ce77b8323c1a0d4eeef97caf16c0ea971222a9.tar.gz
kernel_samsung_tuna-c0ce77b8323c1a0d4eeef97caf16c0ea971222a9.tar.bz2
mac80211: fix deferred hardware scan requests
Reinette found the reason for the warnings that happened occasionally when a hw-offloaded scan finished; her description of the problem: mac80211 will defer the handling of scan requests if it is busy with management work at the time. The scan requests are deferred and run after the work has completed. When this occurs there are currently two problems. * The scan request for hardware scan is not fully populated with the band and channels to scan not initialized. * When the scan is queued the state is not correctly updated to reflect that a scan is in progress. The problem here is that when the driver completes the scan and calls ieee80211_scan_completed() a warning will be triggered since mac80211 was not aware that a scan was in progress. The reason is that the queued scan work will start the hw scan right away when the hw_scan_req struct has already been allocated. However, in the first pass it will not have been filled, which happens at the same time as setting the bits. To fix this, simply move the allocation after the pending work test as well, so that the first iteration of the scan work will call __ieee80211_start_scan() even in the hardware scan case. Bug-identified-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/sched')
0 files changed, 0 insertions, 0 deletions