Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Apr 2009 22:30:02 +0000 (UTC)
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r191710 - head/sys/dev/usb/wlan
Message-ID:  <200904302230.n3UMU2oY024656@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: thompsa
Date: Thu Apr 30 22:30:01 2009
New Revision: 191710
URL: http://svn.freebsd.org/changeset/base/191710

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:
  head/sys/dev/usb/wlan/if_ural.c

Modified: head/sys/dev/usb/wlan/if_ural.c
==============================================================================
--- head/sys/dev/usb/wlan/if_ural.c	Thu Apr 30 22:16:29 2009	(r191709)
+++ head/sys/dev/usb/wlan/if_ural.c	Thu Apr 30 22:30:01 2009	(r191710)
@@ -760,7 +760,7 @@ ural_task(struct usb2_proc_msg *pm)
 				    "could not allocate beacon\n");
 				return;
 			}
-
+			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?200904302230.n3UMU2oY024656>