Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Apr 2009 18:57:32 +0000 (UTC)
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r191702 - user/thompsa/vaptq/sys/dev/usb/wlan
Message-ID:  <200904301857.n3UIvWkv020294@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904301857.n3UIvWkv020294>