Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Sep 2016 16:46:14 +0000 (UTC)
From:      Andriy Voskoboinyk <avos@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r305745 - head/sys/dev/urtwn
Message-ID:  <201609121646.u8CGkEck004615@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avos
Date: Mon Sep 12 16:46:14 2016
New Revision: 305745
URL: https://svnweb.freebsd.org/changeset/base/305745

Log:
  urtwn: fix possible driver hang when beacon miss is detected.

Modified:
  head/sys/dev/urtwn/if_urtwn.c

Modified: head/sys/dev/urtwn/if_urtwn.c
==============================================================================
--- head/sys/dev/urtwn/if_urtwn.c	Mon Sep 12 16:44:21 2016	(r305744)
+++ head/sys/dev/urtwn/if_urtwn.c	Mon Sep 12 16:46:14 2016	(r305745)
@@ -5628,8 +5628,11 @@ urtwn_raw_xmit(struct ieee80211_node *ni
 	callout_reset(&sc->sc_watchdog_ch, hz, urtwn_watchdog, sc);
 
 end:
-	if (error != 0)
+	if (error != 0) {
+		if (m->m_flags & M_TXCB)
+			ieee80211_process_callback(ni, m, 1);
 		m_freem(m);
+	}
 
 	URTWN_UNLOCK(sc);
 



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