diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-10-11 14:22:23 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-10-11 14:22:23 +0000 |
commit | 67a82ff39fac571f096cb13576719e3b4df40d56 (patch) | |
tree | 34af3122e995ea4eef65f8cba72f003937e8eef7 | |
parent | cc94d5763f3ea35c661ad0875d150cc1225addd0 (diff) |
fix "node add"
-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); |