From owner-svn-src-all@FreeBSD.ORG Thu Nov 14 07:27:01 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1765076A; Thu, 14 Nov 2013 07:27:01 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 071622325; Thu, 14 Nov 2013 07:27:01 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rAE7R09R003557; Thu, 14 Nov 2013 07:27:00 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rAE7R0PY003556; Thu, 14 Nov 2013 07:27:00 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201311140727.rAE7R0PY003556@svn.freebsd.org> From: Adrian Chadd Date: Thu, 14 Nov 2013 07:27:00 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r258118 - head/sys/dev/iwn X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Nov 2013 07:27:01 -0000 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 =