From feabadd6717184ad1cc08d768690dc67c5fb135d Mon Sep 17 00:00:00 2001 From: mycroft Date: Mon, 26 Jul 2004 16:31:47 +0000 Subject: [PATCH] The adhoc mode changes are seriously broken. In host-AP mode, at least, we must use a full node for received management frames, or we are unable to complete association and talk to the client. I could add an "if mode == HOSTAP" to fix this, but instead I am reverting the change and remanding it to the person who broke it. --- sys/net80211/ieee80211_node.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c index 31d1c8909602..56d018113e44 100644 --- a/sys/net80211/ieee80211_node.c +++ b/sys/net80211/ieee80211_node.c @@ -1,4 +1,4 @@ -/* $NetBSD: ieee80211_node.c,v 1.27 2004/07/25 05:21:36 dyoung Exp $ */ +/* $NetBSD: ieee80211_node.c,v 1.28 2004/07/26 16:31:47 mycroft Exp $ */ /*- * Copyright (c) 2001 Atsushi Onoe * Copyright (c) 2002-2004 Sam Leffler, Errno Consulting @@ -35,7 +35,7 @@ #ifdef __FreeBSD__ __FBSDID("$FreeBSD: src/sys/net80211/ieee80211_node.c,v 1.22 2004/04/05 04:15:55 sam Exp $"); #else -__KERNEL_RCSID(0, "$NetBSD: ieee80211_node.c,v 1.27 2004/07/25 05:21:36 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ieee80211_node.c,v 1.28 2004/07/26 16:31:47 mycroft Exp $"); #endif #include "opt_inet.h" @@ -680,14 +680,7 @@ ieee80211_needs_rxnode(struct ieee80211com *ic, struct ieee80211_frame *wh, IEEE80211_FC0_SUBTYPE_RTS; case IEEE80211_FC0_TYPE_MGT: *bssid = wh->i_addr3; - switch (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) { - case IEEE80211_FC0_SUBTYPE_BEACON: - case IEEE80211_FC0_SUBTYPE_PROBE_RESP: - rc = 1; - break; - default: - break; - } + rc = IEEE80211_ADDR_EQ(*bssid, bss->ni_bssid); break; case IEEE80211_FC0_TYPE_DATA: switch (wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) {