aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_i.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-09-27 16:11:24 (GMT)
committerJouni Malinen <j@w1.fi>2014-09-27 16:11:24 (GMT)
commitfee354c74d5ac1daa3ddbb9d18ac457c9a667362 (patch)
tree2a6afd75b35aaa55fc9abbe19dcebe9c6bd9486c /wpa_supplicant/driver_i.h
parent321c7f60349a204ca355df2d690a2b679c9637c8 (diff)
downloadhostap-fee354c74d5ac1daa3ddbb9d18ac457c9a667362.zip
hostap-fee354c74d5ac1daa3ddbb9d18ac457c9a667362.tar.gz
hostap-fee354c74d5ac1daa3ddbb9d18ac457c9a667362.tar.bz2
nl80211: Add command for changing local MAC address
This can be used to allow wpa_supplicant to control local MAC address for connections. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/driver_i.h')
-rw-r--r--wpa_supplicant/driver_i.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index 49653c2..cba32a9 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -640,6 +640,14 @@ static inline int wpa_drv_roaming(struct wpa_supplicant *wpa_s, int allowed,
return wpa_s->driver->roaming(wpa_s->drv_priv, allowed, bssid);
}
+static inline int wpa_drv_set_mac_addr(struct wpa_supplicant *wpa_s,
+ const u8 *addr)
+{
+ if (!wpa_s->driver->set_mac_addr)
+ return -1;
+ return wpa_s->driver->set_mac_addr(wpa_s->drv_priv, addr);
+}
+
#ifdef CONFIG_MACSEC