aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_i.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-11-23 13:26:05 (GMT)
committerJouni Malinen <j@w1.fi>2009-11-23 13:26:05 (GMT)
commit5d67487244cbfddf6b808929ec3c8f728ef231a6 (patch)
treea11e1322f4202e1d534b5ec2d26196632561ee8a /wpa_supplicant/driver_i.h
parent224f7bda793010087833899a5b203ac80a05b208 (diff)
downloadhostap-5d67487244cbfddf6b808929ec3c8f728ef231a6.zip
hostap-5d67487244cbfddf6b808929ec3c8f728ef231a6.tar.gz
hostap-5d67487244cbfddf6b808929ec3c8f728ef231a6.tar.bz2
Merge set_beacon driver_ops into a single one
Clean up driver interface by merging hostapd and wpa_supplicant specific set_beacon driver_ops into a single one. In addition, merge set_beacon_int into to the same operation.
Diffstat (limited to 'wpa_supplicant/driver_i.h')
-rw-r--r--wpa_supplicant/driver_i.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index 4cb5372..bd6de06 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -381,20 +381,13 @@ static inline int wpa_drv_set_probe_req_ie(struct wpa_supplicant *wpa_s,
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)
+ int dtim_period, int beacon_int)
{
if (wpa_s->driver->set_beacon)
- return wpa_s->driver->set_beacon(wpa_s->drv_priv, head,
+ return wpa_s->driver->set_beacon(wpa_s->ifname,
+ 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);
+ dtim_period, beacon_int);
return -1;
}