[PATCH] ar6k: Beacon filtering enabled once scan is done
Samuel Ortiz
sameo at openedhand.com
Fri Feb 1 18:45:53 CET 2008
Hi Werner,
When we're done with scanning, the host doesn't need to get all the
beacons anymore. Later on, we could fine tune that to only get our
BSS beacons (mandatory for roaming).
But for now, we just filter them all after scanning is done so that
we don't get dozens of interrupts per seconds because of that.
Signed-off-by: Samuel Ortiz <sameo at openedhand.com>
---
drivers/sdio/function/wlan/ar6000/ar6000/wireless_ext.c | 5 +++++
1 file changed, 5 insertions(+)
Index: linux-2.6.24-rc8-omoko-svn/drivers/sdio/function/wlan/ar6000/ar6000/wireless_ext.c
===================================================================
--- linux-2.6.24-rc8-omoko-svn.orig/drivers/sdio/function/wlan/ar6000/ar6000/wireless_ext.c 2008-02-01 18:34:32.000000000 +0100
+++ linux-2.6.24-rc8-omoko-svn/drivers/sdio/function/wlan/ar6000/ar6000/wireless_ext.c 2008-02-01 18:41:13.000000000 +0100
@@ -1780,6 +1780,11 @@
wait_event_interruptible_timeout(ar6000_scan_queue, ar->scan_complete,
5 * HZ);
+ if (wmi_bssfilter_cmd(ar->arWmi, NONE_BSS_FILTER, 0) != A_OK) {
+ printk("Couldn't set filtering\n");
+ ret = -EIO;
+ }
+
return ret;
#undef ACT_DWELLTIME_DEFAULT
#undef HOME_TXDRAIN_TIME
More information about the openmoko-kernel
mailing list