aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/bgscan.c
diff options
context:
space:
mode:
authorHaim Dreyfuss <haim.dreyfuss@intel.com>2013-11-03 13:19:59 (GMT)
committerJouni Malinen <j@w1.fi>2013-11-05 08:26:31 (GMT)
commit3139270903af6f0fc4e2d26ab4125071eae45af9 (patch)
tree638e0f79a3950533a78b6f9fd5bb32af6b358730 /wpa_supplicant/bgscan.c
parent5061a301e57b1224e224aa3abf21cc67a25e1221 (diff)
downloadhostap-3139270903af6f0fc4e2d26ab4125071eae45af9.zip
hostap-3139270903af6f0fc4e2d26ab4125071eae45af9.tar.gz
hostap-3139270903af6f0fc4e2d26ab4125071eae45af9.tar.bz2
bgscan: Add global bgscan configuration
This option can be used to globally configure bgscan parameters for all the network blocks. Note that this configuration will not override a network block specific bgscan settings, but will only be used in case that the network block does not have a valid bgscan configuration. Signed-hostap: Haim Dreyfuss <haim.dreyfuss@intel.com>
Diffstat (limited to 'wpa_supplicant/bgscan.c')
-rw-r--r--wpa_supplicant/bgscan.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/wpa_supplicant/bgscan.c b/wpa_supplicant/bgscan.c
index 9a9bd52..f74cdbf 100644
--- a/wpa_supplicant/bgscan.c
+++ b/wpa_supplicant/bgscan.c
@@ -31,9 +31,9 @@ static const struct bgscan_ops * bgscan_modules[] = {
};
-int bgscan_init(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
+int bgscan_init(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
+ const char *name)
{
- const char *name = ssid->bgscan;
const char *params;
size_t nlen;
int i;
@@ -41,7 +41,7 @@ int bgscan_init(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
bgscan_deinit(wpa_s);
if (name == NULL)
- return 0;
+ return -1;
params = os_strchr(name, ':');
if (params == NULL) {