From owner-svn-src-head@FreeBSD.ORG Wed Jan 7 18:17:38 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11127106564A; Wed, 7 Jan 2009 18:17:38 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id F36F28FC1A; Wed, 7 Jan 2009 18:17:37 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n07IHaLC094753; Wed, 7 Jan 2009 18:17:36 GMT (envelope-from sam@svn.freebsd.org) Received: (from sam@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n07IHakT094752; Wed, 7 Jan 2009 18:17:36 GMT (envelope-from sam@svn.freebsd.org) Message-Id: <200901071817.n07IHakT094752@svn.freebsd.org> From: Sam Leffler Date: Wed, 7 Jan 2009 18:17:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r186870 - head/sys/net80211 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2009 18:17:38 -0000 Author: sam Date: Wed Jan 7 18:17:36 2009 New Revision: 186870 URL: http://svn.freebsd.org/changeset/base/186870 Log: only mark an infrastructure node to require an associd for xmit; fixes adhoc mode sta's that join an existing ibss Modified: head/sys/net80211/ieee80211_node.c Modified: head/sys/net80211/ieee80211_node.c ============================================================================== --- head/sys/net80211/ieee80211_node.c Wed Jan 7 18:02:36 2009 (r186869) +++ head/sys/net80211/ieee80211_node.c Wed Jan 7 18:17:36 2009 (r186870) @@ -732,7 +732,10 @@ ieee80211_sta_join(struct ieee80211vap * ni->ni_erp = se->se_erp; IEEE80211_RSSI_LPF(ni->ni_avgrssi, se->se_rssi); ni->ni_noise = se->se_noise; - ni->ni_flags |= IEEE80211_NODE_ASSOCID; + if (vap->iv_opmode == IEEE80211_M_STA) { + /* NB: only infrastructure mode requires an associd */ + ni->ni_flags |= IEEE80211_NODE_ASSOCID; + } if (ieee80211_ies_init(&ni->ni_ies, se->se_ies.data, se->se_ies.len)) { ieee80211_ies_expand(&ni->ni_ies);