hostapd: add ifname to the sta_set_flags callback

This fixes multi-BSS STA operations (e.g., setting AUTHORIZED flag) with
nl80211-based drivers.
This commit is contained in:
Felix Fietkau 2010-03-06 20:44:31 +02:00 committed by Jouni Malinen
parent 23e2550c0e
commit 4c32757d22
8 changed files with 18 additions and 15 deletions

View file

@ -1419,6 +1419,7 @@ struct wpa_driver_ops {
/**
* sta_set_flags - Set station flags (AP only)
* @ifname: Interface name (for multi-SSID/VLAN support)
* @priv: Private driver interface data
* @addr: Station address
* @total_flags: Bitmap of all WPA_STA_* flags currently set
@ -1426,7 +1427,7 @@ struct wpa_driver_ops {
* @flags_and: Bitmap of WPA_STA_* flags to us as a mask
* Returns: 0 on success, -1 on failure
*/
int (*sta_set_flags)(void *priv, const u8 *addr,
int (*sta_set_flags)(const char *ifname, void *priv, const u8 *addr,
int total_flags, int flags_or, int flags_and);
/**