From bf5e39f7a718dcbe21af5ca349c30855f3301555 Mon Sep 17 00:00:00 2001 From: Andriy Voskoboinyk Date: Mon, 12 Sep 2016 16:46:14 +0000 Subject: [PATCH] urtwn: fix possible driver hang when beacon miss is detected. --- sys/dev/urtwn/if_urtwn.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/dev/urtwn/if_urtwn.c b/sys/dev/urtwn/if_urtwn.c index 72f3e67e0e16..d4bd95c7d4a8 100644 --- a/sys/dev/urtwn/if_urtwn.c +++ b/sys/dev/urtwn/if_urtwn.c @@ -5628,8 +5628,11 @@ urtwn_raw_xmit(struct ieee80211_node *ni, struct mbuf *m, 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);