ipw2200: batch non-user-requested scan result notifications
commit6bb559a3239d0e7ca53c54ba7a6e8105c855dff3
authorDan Williams <dcbw@redhat.com>
Tue, 9 Oct 2007 17:55:24 +0000 (9 13:55 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Nov 2007 17:42:33 +0000 (26 09:42 -0800)
tree68d692b8d624123c934f1778ae81e457866927ef
parent590ca6cb7c01f733663d6b3ac47a2206ad9016ab
ipw2200: batch non-user-requested scan result notifications

patch 0b5316769774d1dc2fdd702e095f9e6992af269a in mainline.

ipw2200 makes extensive use of background scanning when unassociated or
down.  Unfortunately, the firmware sends scan completed events many
times per second, which the driver pushes directly up to userspace.
This needlessly wakes up processes listening for wireless events many
times per second.  Batch together scan completed events for
non-user-requested scans and send them up to userspace every 4 seconds.
Scan completed events resulting from an SIOCSIWSCAN call are pushed up
without delay.

Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Cc: Tobias Powalowski <t.powa@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/ipw2200.c
drivers/net/wireless/ipw2200.h