don't set sniffer mode to ON when the driver is running with the

monitor mode.  This solves a problem that sometimes mangled frames
are passed.

Submitted by:	Werner Backes <werner_at_bit-1.de>
Tested by:	Werner Backes <werner_at_bit-1.de>
PR:		kern/121608
Approved by:	thompsa (mentor)
This commit is contained in:
Weongyo Jeong 2008-03-17 02:30:13 +00:00
parent 69f04a828c
commit 9744c849bf

View file

@ -2505,8 +2505,7 @@ zyd_init(void *priv)
return;
/* promiscuous mode */
(void)zyd_write32(sc, ZYD_MAC_SNIFFER,
(ic->ic_opmode == IEEE80211_M_MONITOR) ? 1 : 0);
(void)zyd_write32(sc, ZYD_MAC_SNIFFER, 0);
/* multicast setup */
(void)zyd_set_multi(sc);