aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_bsd.c
diff options
context:
space:
mode:
authorRui Paulo <rpaulo@FreeBSD.org>2013-08-07 08:03:44 (GMT)
committerJouni Malinen <j@w1.fi>2013-08-07 08:03:44 (GMT)
commit646f12ad4ca17ba1df6c7cf621da2a9649643b7e (patch)
tree8d1929e5cf61c09c7614e0574bf48c92c021aa10 /src/drivers/driver_bsd.c
parent32dc6a319e0f2ecbe1f3940412da11ee21344ce1 (diff)
downloadhostap-646f12ad4ca17ba1df6c7cf621da2a9649643b7e.zip
hostap-646f12ad4ca17ba1df6c7cf621da2a9649643b7e.tar.gz
hostap-646f12ad4ca17ba1df6c7cf621da2a9649643b7e.tar.bz2
bsd: Add a commit routine
Signed-hostap: Rui Paulo <rpaulo@FreeBSD.org>
Diffstat (limited to 'src/drivers/driver_bsd.c')
-rw-r--r--src/drivers/driver_bsd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/drivers/driver_bsd.c b/src/drivers/driver_bsd.c
index ec67dfd..4acb12b 100644
--- a/src/drivers/driver_bsd.c
+++ b/src/drivers/driver_bsd.c
@@ -310,6 +310,14 @@ bsd_ctrl_iface(void *priv, int enable)
return 0;
}
+#ifdef HOSTAPD
+static int
+bsd_commit(void *priv)
+{
+ return bsd_ctrl_iface(priv, 1);
+}
+#endif /* HOSTAPD */
+
static int
bsd_set_key(const char *ifname, void *priv, enum wpa_alg alg,
const unsigned char *addr, int key_idx, int set_tx, const u8 *seq,
@@ -1600,6 +1608,7 @@ const struct wpa_driver_ops wpa_driver_bsd_ops = {
.sta_disassoc = bsd_sta_disassoc,
.sta_deauth = bsd_sta_deauth,
.sta_set_flags = bsd_set_sta_authorized,
+ .commit = bsd_commit,
#else /* HOSTAPD */
.init = wpa_driver_bsd_init,
.deinit = wpa_driver_bsd_deinit,