From owner-svn-src-user@FreeBSD.ORG Thu Apr 30 18:57:32 2009 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CCA6106564A; Thu, 30 Apr 2009 18:57:32 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 6B7BD8FC0C; Thu, 30 Apr 2009 18:57:32 +0000 (UTC) (envelope-from thompsa@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 n3UIvWBE020295; Thu, 30 Apr 2009 18:57:32 GMT (envelope-from thompsa@svn.freebsd.org) Received: (from thompsa@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n3UIvWkv020294; Thu, 30 Apr 2009 18:57:32 GMT (envelope-from thompsa@svn.freebsd.org) Message-Id: <200904301857.n3UIvWkv020294@svn.freebsd.org> From: Andrew Thompson Date: Thu, 30 Apr 2009 18:57:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r191702 - user/thompsa/vaptq/sys/dev/usb/wlan X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2009 18:57:32 -0000 Author: thompsa Date: Thu Apr 30 18:57:32 2009 New Revision: 191702 URL: http://svn.freebsd.org/changeset/base/191702 Log: We need to ref the bss node when sending the beacon since it goes through the normal tx path and will be decremented on the mbuf free. Modified: user/thompsa/vaptq/sys/dev/usb/wlan/if_ural.c Modified: user/thompsa/vaptq/sys/dev/usb/wlan/if_ural.c ============================================================================== --- user/thompsa/vaptq/sys/dev/usb/wlan/if_ural.c Thu Apr 30 18:56:20 2009 (r191701) +++ user/thompsa/vaptq/sys/dev/usb/wlan/if_ural.c Thu Apr 30 18:57:32 2009 (r191702) @@ -746,7 +746,7 @@ ural_newstate(struct ieee80211vap *vap, IEEE80211_LOCK(ic); return (-1); } - + ieee80211_ref_node(ni); if (ural_tx_bcn(sc, m, ni) != 0) { device_printf(sc->sc_dev, "could not send beacon\n");