aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-07-18 03:23:20 (GMT)
committerJouni Malinen <j@w1.fi>2010-07-18 03:23:20 (GMT)
commita33c5f96b811fb558441ab61a7af95d46d5d47db (patch)
tree8d961bb08a116e0d2ae51bc2fb23225c167bd9c9 /hostapd
parentb3b2da770e0b8f87a5035510231bcc3af8694912 (diff)
downloadhostap-a33c5f96b811fb558441ab61a7af95d46d5d47db.zip
hostap-a33c5f96b811fb558441ab61a7af95d46d5d47db.tar.gz
hostap-a33c5f96b811fb558441ab61a7af95d46d5d47db.tar.bz2
Fix a typo in Disassociation frame building
This did not really change any behavior since Deauthentication frame uses the same format.
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/ctrl_iface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c
index fca4189..9ef576d 100644
--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -227,7 +227,7 @@ static int hostapd_ctrl_iface_disassociate(struct hostapd_data *hapd,
os_memcpy(mgmt.da, addr, ETH_ALEN);
os_memcpy(mgmt.sa, hapd->own_addr, ETH_ALEN);
os_memcpy(mgmt.bssid, hapd->own_addr, ETH_ALEN);
- mgmt.u.deauth.reason_code =
+ mgmt.u.disassoc.reason_code =
host_to_le16(WLAN_REASON_PREV_AUTH_NOT_VALID);
if (hapd->driver->send_frame(hapd->drv_priv, (u8 *) &mgmt,
IEEE80211_HDRLEN +