aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_i.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-04-02 13:09:48 (GMT)
committerJouni Malinen <j@w1.fi>2009-04-02 13:09:48 (GMT)
commitd2440ba01b058138052c9914bab0f3d1de7d51b1 (patch)
treedc5312c6562d4918f322f7a73936cf26cd32ba32 /wpa_supplicant/driver_i.h
parent74f2ad326f91608202eadbdcd99946ae5d7f4245 (diff)
downloadhostap-d2440ba01b058138052c9914bab0f3d1de7d51b1.zip
hostap-d2440ba01b058138052c9914bab0f3d1de7d51b1.tar.gz
hostap-d2440ba01b058138052c9914bab0f3d1de7d51b1.tar.bz2
Add Beacon configuration for wpa_supplicant AP mode
Diffstat (limited to 'wpa_supplicant/driver_i.h')
-rw-r--r--wpa_supplicant/driver_i.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index 8bf0ae5..4d1446f 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -378,4 +378,24 @@ static inline int wpa_drv_set_probe_req_ie(struct wpa_supplicant *wpa_s,
return -1;
}
+static inline int wpa_drv_set_beacon(struct wpa_supplicant *wpa_s,
+ const u8 *head, size_t head_len,
+ const u8 *tail, size_t tail_len,
+ int dtim_period)
+{
+ if (wpa_s->driver->set_beacon)
+ return wpa_s->driver->set_beacon(wpa_s->drv_priv, head,
+ head_len, tail, tail_len,
+ dtim_period);
+ return -1;
+}
+
+static inline int wpa_drv_set_beacon_int(struct wpa_supplicant *wpa_s,
+ int value)
+{
+ if (wpa_s->driver->set_beacon_int)
+ return wpa_s->driver->set_beacon_int(wpa_s->drv_priv, value);
+ return -1;
+}
+
#endif /* DRIVER_I_H */