aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config_winreg.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-03-05 19:42:06 (GMT)
committerJouni Malinen <j@w1.fi>2010-03-05 19:42:06 (GMT)
commit3812464cda18b98875d5c080faf9167dffc5078d (patch)
treee13240a04c7a6ab1f62a7dca7c80e226c6e9dbef /wpa_supplicant/config_winreg.c
parentc9c38b099689616111416af9df3a4882535edff3 (diff)
downloadhostap-3812464cda18b98875d5c080faf9167dffc5078d.zip
hostap-3812464cda18b98875d5c080faf9167dffc5078d.tar.gz
hostap-3812464cda18b98875d5c080faf9167dffc5078d.tar.bz2
Add optional scan result filter based on SSID
filter_ssids=1 global configuration parameter can now be used to enable scan result filtering (with -Dnl80211 only for now) based on the configured SSIDs. In other words, only the scan results that have an SSID matching with one of the configured networks are included in the BSS table. This can be used to reduce memory needs in environments that have huge number of APs.
Diffstat (limited to 'wpa_supplicant/config_winreg.c')
-rw-r--r--wpa_supplicant/config_winreg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/config_winreg.c b/wpa_supplicant/config_winreg.c
index 6c25073..811eb7e 100644
--- a/wpa_supplicant/config_winreg.c
+++ b/wpa_supplicant/config_winreg.c
@@ -259,6 +259,8 @@ static int wpa_config_read_global(struct wpa_config *config, HKEY hk)
wpa_config_read_reg_dword(hk, TEXT("bss_max_count"),
&config->bss_max_count);
+ wpa_config_read_reg_dword(hk, TEXT("filter_ssids"),
+ &config->filter_ssids);
return errors ? -1 : 0;
}
@@ -589,6 +591,8 @@ static int wpa_config_write_global(struct wpa_config *config, HKEY hk)
wpa_config_write_reg_dword(hk, TEXT("bss_max_count"),
config->bss_max_count,
DEFAULT_BSS_MAX_COUNT);
+ wpa_config_write_reg_dword(hk, TEXT("filter_ssids"),
+ config->filter_ssids, 0);
return 0;
}