aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_i.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-04-17 17:09:20 (GMT)
committerJouni Malinen <j@w1.fi>2009-04-17 17:09:20 (GMT)
commit0f4e8b4f657a88d06210b3e67f796990cba21428 (patch)
tree594644f45937fea42fe0e238ae6555f640de31b2 /wpa_supplicant/driver_i.h
parentbe301e56b6118e63231bda35d57bb71f06b66ced (diff)
downloadhostap-0f4e8b4f657a88d06210b3e67f796990cba21428.zip
hostap-0f4e8b4f657a88d06210b3e67f796990cba21428.tar.gz
hostap-0f4e8b4f657a88d06210b3e67f796990cba21428.tar.bz2
wpa_supplicant AP: add sta_add() and sta_remove()
Diffstat (limited to 'wpa_supplicant/driver_i.h')
-rw-r--r--wpa_supplicant/driver_i.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index 409c733..0c10b0f 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -398,4 +398,21 @@ static inline int wpa_drv_set_beacon_int(struct wpa_supplicant *wpa_s,
return -1;
}
+static inline int wpa_drv_sta_add(struct wpa_supplicant *wpa_s,
+ struct hostapd_sta_add_params *params)
+{
+ if (wpa_s->driver->sta_add)
+ return wpa_s->driver->sta_add(wpa_s->ifname, wpa_s->drv_priv,
+ params);
+ return -1;
+}
+
+static inline int wpa_drv_sta_remove(struct wpa_supplicant *wpa_s,
+ const u8 *addr)
+{
+ if (wpa_s->driver->sta_remove)
+ return wpa_s->driver->sta_remove(wpa_s->drv_priv, addr);
+ return -1;
+}
+
#endif /* DRIVER_I_H */