summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/wlan/if_ural.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-04-30 22:30:01 +0000
committerthompsa <thompsa@FreeBSD.org>2009-04-30 22:30:01 +0000
commit90f2d4d25829782c76ed811c8c669e49c8e4ae2e (patch)
tree2198a9c9ee21014755dfcf0f83220d49d9533926 /sys/dev/usb/wlan/if_ural.c
parent680fc00a3e0b2498c18515235235803888960e24 (diff)
downloadFreeBSD-src-90f2d4d25829782c76ed811c8c669e49c8e4ae2e.zip
FreeBSD-src-90f2d4d25829782c76ed811c8c669e49c8e4ae2e.tar.gz
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.
Diffstat (limited to 'sys/dev/usb/wlan/if_ural.c')
-rw-r--r--sys/dev/usb/wlan/if_ural.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/wlan/if_ural.c b/sys/dev/usb/wlan/if_ural.c
index 919b66d..b865a41 100644
--- a/sys/dev/usb/wlan/if_ural.c
+++ b/sys/dev/usb/wlan/if_ural.c
@@ -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");
OpenPOWER on IntegriCloud