aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-03-30 07:48:32 (GMT)
committerJouni Malinen <j@w1.fi>2014-03-30 14:06:34 (GMT)
commit18a8e55fcd84bfceaaf3e9eebf508baf970e467a (patch)
treee2b13fc17c11fde3bc0f4eac7521e2022430bb09 /hostapd
parent29b75b78601baf9ded37ddc6d13719d43518e01a (diff)
downloadhostap-18a8e55fcd84bfceaaf3e9eebf508baf970e467a.zip
hostap-18a8e55fcd84bfceaaf3e9eebf508baf970e467a.tar.gz
hostap-18a8e55fcd84bfceaaf3e9eebf508baf970e467a.tar.bz2
Notify STA of disconnection based on ACL change
ap_sta_deauthenticate() does not necessarily send a Deauthentication frame to the STA. Use ap_sta_disconnect() to drop the association so that the notification frame goes out. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/ctrl_iface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c
index 4dddf80..6265265 100644
--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -1090,8 +1090,8 @@ static int hostapd_ctrl_iface_set(struct hostapd_data *hapd, char *cmd)
hapd->conf->num_deny_mac, sta->addr,
&vlan_id) &&
(!vlan_id || vlan_id == sta->vlan_id))
- ap_sta_deauthenticate(
- hapd, sta,
+ ap_sta_disconnect(
+ hapd, sta, sta->addr,
WLAN_REASON_UNSPECIFIED);
}
} else if (hapd->conf->macaddr_acl == DENY_UNLESS_ACCEPTED &&
@@ -1102,8 +1102,8 @@ static int hostapd_ctrl_iface_set(struct hostapd_data *hapd, char *cmd)
hapd->conf->num_accept_mac,
sta->addr, &vlan_id) ||
(vlan_id && vlan_id != sta->vlan_id))
- ap_sta_deauthenticate(
- hapd, sta,
+ ap_sta_disconnect(
+ hapd, sta, sta->addr,
WLAN_REASON_UNSPECIFIED);
}
}