Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Nov 2013 07:27:00 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r258118 - head/sys/dev/iwn
Message-ID:  <201311140727.rAE7R0PY003556@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Thu Nov 14 07:27:00 2013
New Revision: 258118
URL: http://svnweb.freebsd.org/changeset/base/258118

Log:
  Fix (I think!) the scan timeouts on the intel NICs.
  
  This field needs to be (a) set, and (b) greater than the other timeouts
  (passive, active, maxquiet, etc.)  It also is in microseconds, not
  milliseconds.
  
  I hope this will fix the scan hangs that people are seeing.
  
  Obtained from:	Linux iwlwifi

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

Modified: head/sys/dev/iwn/if_iwn.c
==============================================================================
--- head/sys/dev/iwn/if_iwn.c	Thu Nov 14 07:21:09 2013	(r258117)
+++ head/sys/dev/iwn/if_iwn.c	Thu Nov 14 07:27:00 2013	(r258118)
@@ -6184,6 +6184,11 @@ iwn_scan(struct iwn_softc *sc)
 	 */
 	hdr->quiet_time = htole16(10);		/* timeout in milliseconds */
 	hdr->quiet_threshold = htole16(1);	/* min # of packets */
+	/*
+	 * Max needs to be greater than active and passive and quiet!
+	 * It's also in microseconds!
+	 */
+	hdr->max_svc = htole32(250 * 1000);
 
 	/* Select antennas for scanning. */
 	rxchain =



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