diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2014-09-11 12:52:37 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2014-09-11 12:59:42 (GMT) |
commit | 0ef023e47863ed92367fca9a65ace6f329eb3d8c (patch) | |
tree | 5e73c8b6784bfe0d5771b995ebe9854a595f944a /wpa_supplicant/driver_i.h | |
parent | 0cd9846c632880134b1307f5c3e970151f9f1674 (diff) | |
download | hostap-0ef023e47863ed92367fca9a65ace6f329eb3d8c.zip hostap-0ef023e47863ed92367fca9a65ace6f329eb3d8c.tar.gz hostap-0ef023e47863ed92367fca9a65ace6f329eb3d8c.tar.bz2 |
Add support for driver command to update roaming policy
The network block bssid parameter can be used to force a specific BSS to
be used for a connection. It is also possible to modify this parameter
during an association. Previously, that did not result in any
notification to the driver which was somewhat problematic with drivers
that take care of BSS selection. Add a new mechanism to allow
wpa_supplicant to provide a driver update if the bssid parameter change
for the current connection modifies roaming policy (roaming
allowed/disallowed within ESS).
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/driver_i.h')
-rw-r--r-- | wpa_supplicant/driver_i.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h index 00703d9..49653c2 100644 --- a/wpa_supplicant/driver_i.h +++ b/wpa_supplicant/driver_i.h @@ -632,6 +632,14 @@ static inline int wpa_drv_vendor_cmd(struct wpa_supplicant *wpa_s, data, data_len, buf); } +static inline int wpa_drv_roaming(struct wpa_supplicant *wpa_s, int allowed, + const u8 *bssid) +{ + if (!wpa_s->driver->roaming) + return -1; + return wpa_s->driver->roaming(wpa_s->drv_priv, allowed, bssid); +} + #ifdef CONFIG_MACSEC |