path: root/wpa_supplicant/config_ssid.h
diff options
authorJouni Malinen <j@w1.fi>2009-03-26 19:55:01 (GMT)
committerJouni Malinen <j@w1.fi>2009-03-26 19:55:01 (GMT)
commitd3a9822542166e7adec16e24622486ba90359ef5 (patch)
tree526d571369969ab3a9be5b7cb4267da06eda1fa8 /wpa_supplicant/config_ssid.h
parent2d5b792d2b7e8940bd860348443b1e579c14c53a (diff)
Add support for specifying subset of enabled frequencies to scan
A new network block parameter, scan_freq, can be used to specify subset of frequencies to scan. This can speed up scanning process considerably if it is known that only a small subset of channels is actually used in the network. A union of configured frequencies for all enabled network blocks is used in scan requests. Currently, only driver_nl80211.c has support for this functionality. For example, following parameter marks 2.4 GHz channels 1, 6, 11 to be scanned: scan_freq=2412 2437 2462
Diffstat (limited to 'wpa_supplicant/config_ssid.h')
1 files changed, 10 insertions, 0 deletions
diff --git a/wpa_supplicant/config_ssid.h b/wpa_supplicant/config_ssid.h
index 3ebf228..c120360 100644
--- a/wpa_supplicant/config_ssid.h
+++ b/wpa_supplicant/config_ssid.h
@@ -340,6 +340,16 @@ struct wpa_ssid {
* attacks against TKIP deficiencies.
int wpa_ptk_rekey;
+ /**
+ * scan_freq - Array of frequencies to scan or %NULL for all
+ *
+ * This is an optional zero-terminated array of frequencies in
+ * megahertz (MHz) to include in scan requests when searching for this
+ * network. This can be used to speed up scanning when the network is
+ * known to not use all possible channels.
+ */
+ int *scan_freq;
#endif /* CONFIG_SSID_H */