aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2007-09-05 23:40:59 +0000
committerSam Leffler <sam@FreeBSD.org>2007-09-05 23:40:59 +0000
commit5c096cfbe543502e3069c4646c1a7c7a054a5651 (patch)
tree223005637d6bb097f0b7e7a2be193a078b2a38a9 /sys
parent2b9411e29fbcfc03ebddddadfd50204f1e78ee5c (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/if_zyd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/usb/if_zyd.c b/sys/dev/usb/if_zyd.c
index fe89cdd3ffb9..62511503b518 100644
--- a/sys/dev/usb/if_zyd.c
+++ b/sys/dev/usb/if_zyd.c
@@ -2300,6 +2300,11 @@ zyd_start(struct ifnet *ifp)
break;
}
IFQ_DEQUEUE(&ifp->if_snd, m0);
+ /*
+ * Cancel any background scan.
+ */
+ if (ic->ic_flags & IEEE80211_F_SCAN)
+ ieee80211_cancel_scan(ic);
if (m0->m_len < sizeof(struct ether_header) &&
!(m0 = m_pullup(m0, sizeof(struct ether_header))))
@@ -2328,6 +2333,7 @@ zyd_start(struct ifnet *ifp)
}
sc->tx_timer = 5;
+ ic->ic_lastdata = ticks;
callout_reset(&sc->sc_watchdog_ch, hz, zyd_watchdog, sc);
}
}