diff options
author | reyk <reyk@openbsd.org> | 2005-10-11 14:22:22 +0000 |
---|---|---|
committer | reyk <reyk@openbsd.org> | 2005-10-11 14:22:22 +0000 |
commit | 132ac06b05a4f4242f0cab52b4e93d821a9cc42f (patch) | |
tree | 9fd7141d406ea1ba77cfebf5311f501e02ba824f /usr.sbin/hostapd/handle.c | |
parent | use [bl]etohXX instead of ntoh[sl], makes the code more consistent and (diff) | |
download | wireguard-openbsd-132ac06b05a4f4242f0cab52b4e93d821a9cc42f.tar.xz wireguard-openbsd-132ac06b05a4f4242f0cab52b4e93d821a9cc42f.zip |
fix "node add"
Diffstat (limited to 'usr.sbin/hostapd/handle.c')
-rw-r--r-- | usr.sbin/hostapd/handle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/hostapd/handle.c b/usr.sbin/hostapd/handle.c index 3a2a78734b9..53bf929f237 100644 --- a/usr.sbin/hostapd/handle.c +++ b/usr.sbin/hostapd/handle.c @@ -1,4 +1,4 @@ -/* $OpenBSD: handle.c,v 1.3 2005/09/30 16:50:03 reyk Exp $ */ +/* $OpenBSD: handle.c,v 1.4 2005/10/11 14:22:22 reyk Exp $ */ /* * Copyright (c) 2005 Reyk Floeter <reyk@vantronix.net> @@ -283,7 +283,7 @@ hostapd_handle_action(struct hostapd_config *cfg, struct hostapd_frame *frame, bcopy(lladdr, &node.ni_macaddr, IEEE80211_ADDR_LEN); - if (HOSTAPD_ACTION_DELNODE) + if (frame->f_action == HOSTAPD_ACTION_DELNODE) ret = hostapd_apme_delnode(cfg, &node); else ret = hostapd_apme_addnode(cfg, &node); |