aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_i.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-01-03 11:42:06 (GMT)
committerJouni Malinen <j@w1.fi>2010-01-03 11:42:06 (GMT)
commit7bfc47c34f0e683ca6ab7f4f76595ad67b03d0a0 (patch)
tree85263c5cb9833b0a1b11fe2abe13ec47cd107cd4 /wpa_supplicant/driver_i.h
parent504e905c6e41b860e2da63bd56d8d296c531a48f (diff)
downloadhostap-7bfc47c34f0e683ca6ab7f4f76595ad67b03d0a0.zip
hostap-7bfc47c34f0e683ca6ab7f4f76595ad67b03d0a0.tar.gz
hostap-7bfc47c34f0e683ca6ab7f4f76595ad67b03d0a0.tar.bz2
Add driver ops for allocating interface addresses
This adds placeholder code for allowing the virtual interfaces to be pre-allocated a MAC address before the interface type is known with drivers that do not handle interface type changes.
Diffstat (limited to 'wpa_supplicant/driver_i.h')
-rw-r--r--wpa_supplicant/driver_i.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index 9dbbc85..4a701f1 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -383,6 +383,22 @@ static inline int wpa_drv_set_supp_port(struct wpa_supplicant *wpa_s,
return 0;
}
+static inline int wpa_drv_alloc_interface_addr(struct wpa_supplicant *wpa_s,
+ u8 *addr)
+{
+ if (wpa_s->driver->alloc_interface_addr)
+ return wpa_s->driver->alloc_interface_addr(wpa_s->drv_priv,
+ addr);
+ return -1;
+}
+
+static inline void wpa_drv_release_interface_addr(struct wpa_supplicant *wpa_s,
+ const u8 *addr)
+{
+ if (wpa_s->driver->release_interface_addr)
+ wpa_s->driver->release_interface_addr(wpa_s->drv_priv, addr);
+}
+
static inline int wpa_drv_probe_req_report(struct wpa_supplicant *wpa_s,
int report)
{