78 */ 79 static int probe_wait_ms = 500 Ĩ0 module_param( probe_wait_ms, int, 0644) Ĩ2 "Maximum time(ms) to wait for probe response" 83 " before disconnecting (reason 4).") Ĩ4 85 /* 86 * How many Beacon frames need to have been used in average signal strength 87 * before starting to indicate signal change events.
72 */ 73 #define IEEE80211_CONNECTION_IDLE_TIME (30 * HZ)ħ4 /* 75 * Time we wait for a probe response after sending 76 * a probe request because of beacon loss or for 77 * checking the connection still works. 63 */ 64 static int beacon_loss_count = 7 Ħ5 module_param( beacon_loss_count, int, 0644) Ħ7 "Number of beacon intervals before we decide beacon was lost.") Ħ8 69 /* 70 * Time the connection can be idle before we probe 71 * it to see if we can still talk to the AP. But since we also 61 * probe on beacon miss before declaring the connection lost 62 * default to what we want. This may need to be somewhat 59 * higher than what hardware might detect to account for 60 * delays in the host processing frames. 7 * Copyright 2006-2007 Jiri Benc 8 * Copyright 2007, Michael Wu 9 * Copyright 2013-2014 Intel Mobile Communications GmbH 10 * Copyright (C) 2015 - 2017 Intel Deutschland GmbH 11 * Copyright (C) 2018 - 2021 Intel Corporation 12 */ 13 14 #include ģ3 34 #define IEEE80211_AUTH_TIMEOUT ( HZ / 5)ģ5 #define IEEE80211_AUTH_TIMEOUT_LONG ( HZ / 2)ģ6 #define IEEE80211_AUTH_TIMEOUT_SHORT ( HZ / 10)ģ7 #define IEEE80211_AUTH_TIMEOUT_SAE ( HZ * 2)ģ9 #define IEEE80211_AUTH_WAIT_ASSOC ( HZ * 5)Ĥ0 #define IEEE80211_AUTH_WAIT_SAE_RETRY ( HZ * 2)Ĥ1 #define IEEE80211_ASSOC_TIMEOUT ( HZ / 5)Ĥ2 #define IEEE80211_ASSOC_TIMEOUT_LONG ( HZ / 2)Ĥ3 #define IEEE80211_ASSOC_TIMEOUT_SHORT ( HZ / 10)Ĥ7 module_param( max_nullfunc_tries, int, 0644) Ĥ9 "Maximum nullfunc tx tries before disconnecting (reason 4).") ĥ2 module_param( max_probe_tries, int, 0644) ĥ4 "Maximum probe tries before disconnecting (reason 4).") ĥ5 56 /* 57 * Beacon loss timeout is calculated as N frames times the 58 * advertised beacon interval. 6 * Copyright 2005, Devicescape Software, Inc. ~ ~ ~ ~ ~ ~ ~ ~ġ // SPDX-License-Identifier: GPL-2.0-only 2 /* 3 * BSS client mode implementation 4 * Copyright 2003-2008, Jouni Malinen 5 * Copyright 2004, Instant802 Networks, Inc.