Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(506)

Side by Side Diff: chromeos/compat-wireless/net/mac80211/mlme.c

Issue 3553003: Reduce reacquire timers so that full scan happens sooner after resume from suspend (Closed) Base URL: ssh://gitrw.chromium.org/kernel.git
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * BSS client mode implementation 2 * BSS client mode implementation
3 * Copyright 2003-2008, Jouni Malinen <j@w1.fi> 3 * Copyright 2003-2008, Jouni Malinen <j@w1.fi>
4 * Copyright 2004, Instant802 Networks, Inc. 4 * Copyright 2004, Instant802 Networks, Inc.
5 * Copyright 2005, Devicescape Software, Inc. 5 * Copyright 2005, Devicescape Software, Inc.
6 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 6 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz>
7 * Copyright 2007, Michael Wu <flamingice@sourmilk.net> 7 * Copyright 2007, Michael Wu <flamingice@sourmilk.net>
8 * 8 *
9 * This program is free software; you can redistribute it and/or modify 9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as 10 * it under the terms of the GNU General Public License version 2 as
(...skipping 10 matching lines...) Expand all
21 #include <linux/crc32.h> 21 #include <linux/crc32.h>
22 #include <linux/slab.h> 22 #include <linux/slab.h>
23 #include <net/mac80211.h> 23 #include <net/mac80211.h>
24 #include <asm/unaligned.h> 24 #include <asm/unaligned.h>
25 25
26 #include "ieee80211_i.h" 26 #include "ieee80211_i.h"
27 #include "driver-ops.h" 27 #include "driver-ops.h"
28 #include "rate.h" 28 #include "rate.h"
29 #include "led.h" 29 #include "led.h"
30 30
31 #define IEEE80211_MAX_PROBE_TRIES 5 31 #define IEEE80211_MAX_PROBE_TRIES 2
32 32
33 /* 33 /*
34 * beacon loss detection timeout 34 * beacon loss detection timeout
35 * XXX: should depend on beacon interval 35 * XXX: should depend on beacon interval
36 */ 36 */
37 #define IEEE80211_BEACON_LOSS_TIME (2 * HZ) 37 #define IEEE80211_BEACON_LOSS_TIME (2 * HZ)
38 /* 38 /*
39 * Time the connection can be idle before we probe 39 * Time the connection can be idle before we probe
40 * it to see if we can still talk to the AP. 40 * it to see if we can still talk to the AP.
41 */ 41 */
42 #define IEEE80211_CONNECTION_IDLE_TIME (30 * HZ) 42 #define IEEE80211_CONNECTION_IDLE_TIME (30 * HZ)
43 /* 43 /*
44 * Time we wait for a probe response after sending 44 * Time we wait for a probe response after sending
45 * a probe request because of beacon loss or for 45 * a probe request because of beacon loss or for
46 * checking the connection still works. 46 * checking the connection still works.
47 */ 47 */
48 #define IEEE80211_PROBE_WAIT» » (HZ / 2) 48 #define IEEE80211_PROBE_WAIT» » (HZ / 5)
49 49
50 /* 50 /*
51 * Weight given to the latest Beacon frame when calculating average signal 51 * Weight given to the latest Beacon frame when calculating average signal
52 * strength for Beacon frames received in the current BSS. This must be 52 * strength for Beacon frames received in the current BSS. This must be
53 * between 1 and 15. 53 * between 1 and 15.
54 */ 54 */
55 #define IEEE80211_SIGNAL_AVE_WEIGHT 3 55 #define IEEE80211_SIGNAL_AVE_WEIGHT 3
56 56
57 /* 57 /*
58 * How many Beacon frames need to have been used in average signal strength 58 * How many Beacon frames need to have been used in average signal strength
(...skipping 2335 matching lines...) Expand 10 before | Expand all | Expand 10 after
2394 enum nl80211_cqm_rssi_threshold_event rssi_event, 2394 enum nl80211_cqm_rssi_threshold_event rssi_event,
2395 gfp_t gfp) 2395 gfp_t gfp)
2396 { 2396 {
2397 struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif); 2397 struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif);
2398 2398
2399 trace_api_cqm_rssi_notify(sdata, rssi_event); 2399 trace_api_cqm_rssi_notify(sdata, rssi_event);
2400 2400
2401 cfg80211_cqm_rssi_notify(sdata->dev, rssi_event, gfp); 2401 cfg80211_cqm_rssi_notify(sdata->dev, rssi_event, gfp);
2402 } 2402 }
2403 EXPORT_SYMBOL(ieee80211_cqm_rssi_notify); 2403 EXPORT_SYMBOL(ieee80211_cqm_rssi_notify);
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698