Author: bschmidt
Date: Thu May  6 17:53:04 2010
New Revision: 207709
URL: http://svn.freebsd.org/changeset/base/207709

Log:
  Add a workaround for a bug in the firmware regarding the transition
  from passive to active scans. Basicly disable it by increasing the
  amount packets to be received to an amount which can't be reached
  during dwell times.
  
  Approved by:  rpaulo (mentor)
  MFC after:    3 days

Modified:
  head/sys/dev/iwn/if_iwn.c

Modified: head/sys/dev/iwn/if_iwn.c
==============================================================================
--- head/sys/dev/iwn/if_iwn.c   Thu May  6 17:43:41 2010        (r207708)
+++ head/sys/dev/iwn/if_iwn.c   Thu May  6 17:53:04 2010        (r207709)
@@ -4730,7 +4730,7 @@ iwn_scan(struct iwn_softc *sc)
                        chan->passive = htole16(78);
                else
                        chan->passive = htole16(110);
-               hdr->crc_threshold = htole16(1);
+               hdr->crc_threshold = 0xffff;
        } else if (!(c->ic_flags & IEEE80211_CHAN_PASSIVE)) {
                chan->rf_gain = 0x28;
                chan->active  = htole16(36);
@@ -4743,7 +4743,7 @@ iwn_scan(struct iwn_softc *sc)
                        chan->passive = htole16(88);
                else
                        chan->passive = htole16(120);
-               hdr->crc_threshold = htole16(1);
+               hdr->crc_threshold = 0xffff;
        }
 
        DPRINTF(sc, IWN_DEBUG_STATE,
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to