svn commit: r191702 - user/thompsa/vaptq/sys/dev/usb/wlan

Andrew Thompson thompsa at FreeBSD.org
Thu Apr 30 18:57:32 UTC 2009


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");


More information about the svn-src-user mailing list