Re: Flush scan list on resume
- From: Howard Chu <hyc symas com>
- To: Tony Espy <espy canonical com>
- Cc: networkmanager-list gnome org
- Subject: Re: Flush scan list on resume
- Date: Thu, 05 Feb 2009 03:53:06 -0800
Howard Chu wrote:
Tony Espy wrote:
I still think simple ( ie. either have mac80211 handle the expiration or
flush of scan results on resume ) wins out over the more complicated
approach of having the connection manager handle expiration of older
scan results.
Also a mobile device ( eg. a netbook or OLPC ) could be moving relative
to the same set of access points while in S3 ( ie. within a single
office and/or building ), and that the cached scan results after resume
could reflect inaccurate relative signal strengths of the the APs. This
could effect roaming performance.
Yeah, good point. This is also trivial to implement - just call
ieee80211_rx_bss_list_deinit(local) in pm.c: __iee80211_suspend(). I'm going
to play with this approach first.
Yes, this works fine for me.
compat-wireless-2009-02-05/net/mac80211
--- pm.c.O 2009-02-04 21:14:21.000000000 -0800
+++ pm.c 2009-02-05 02:31:47.000000000 -0800
@@ -52,6 +52,10 @@
ieee80211_led_radio(local, false);
local->ops->stop(hw);
}
+
+ /* flush scan list */
+ ieee80211_rx_bss_list_deinit(local);
+
return 0;
}
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]