aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-04-11 16:42:37 (GMT)
committerJouni Malinen <j@w1.fi>2010-04-11 16:42:37 (GMT)
commit814782b9fe2323f9da320e60c7325100d154532c (patch)
treef8a1badffec0be8f4a48a4a73585c1bfee758259 /src/drivers
parentde12717a566bba95e4763a027b74ee079327966b (diff)
downloadhostap-814782b9fe2323f9da320e60c7325100d154532c.zip
hostap-814782b9fe2323f9da320e60c7325100d154532c.tar.gz
hostap-814782b9fe2323f9da320e60c7325100d154532c.tar.bz2
Allow driver wrappers to indicate maximum remain-on-channel duration
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/driver.h5
-rw-r--r--src/drivers/driver_nl80211.c1
-rw-r--r--src/drivers/driver_test.c1
3 files changed, 7 insertions, 0 deletions
diff --git a/src/drivers/driver.h b/src/drivers/driver.h
index 8e7dc96..0afc9fc 100644
--- a/src/drivers/driver.h
+++ b/src/drivers/driver.h
@@ -505,6 +505,11 @@ struct wpa_driver_capa {
unsigned int flags;
int max_scan_ssids;
+
+ /**
+ * max_remain_on_chan - Maximum remain-on-channel duration in msec
+ */
+ unsigned int max_remain_on_chan;
};
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index a06fa84..4f574cf 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -1157,6 +1157,7 @@ static int wpa_driver_nl80211_capa(struct wpa_driver_nl80211_data *drv)
}
drv->capa.flags |= WPA_DRIVER_FLAGS_SET_KEYS_AFTER_ASSOC_DONE;
+ drv->capa.max_remain_on_chan = 5000;
return 0;
}
diff --git a/src/drivers/driver_test.c b/src/drivers/driver_test.c
index 338bc76..fb24673 100644
--- a/src/drivers/driver_test.c
+++ b/src/drivers/driver_test.c
@@ -2386,6 +2386,7 @@ static int wpa_driver_test_get_capa(void *priv, struct wpa_driver_capa *capa)
capa->flags |= WPA_DRIVER_FLAGS_USER_SPACE_MLME;
capa->flags |= WPA_DRIVER_FLAGS_AP;
capa->max_scan_ssids = 2;
+ capa->max_remain_on_chan = 60000;
return 0;
}