From owner-freebsd-wireless@freebsd.org Tue Oct 30 23:01:20 2018 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6CDCD1036BCE for ; Tue, 30 Oct 2018 23:01:20 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell1.rawbw.com (shell1.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id F10D47E7C8 for ; Tue, 30 Oct 2018 23:01:19 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from yv.noip.me (c-24-4-131-132.hsd1.ca.comcast.net [24.4.131.132]) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id w9UN1BuW090986 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Tue, 30 Oct 2018 16:01:12 -0700 (PDT) (envelope-from yuri@rawbw.com) X-Authentication-Warning: shell1.rawbw.com: Host c-24-4-131-132.hsd1.ca.comcast.net [24.4.131.132] claimed to be yv.noip.me To: freebsd-wireless From: Yuri Subject: Why WiFi connections are established so slowly? Message-ID: Date: Tue, 30 Oct 2018 16:01:10 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2018 23:01:20 -0000 I just measured: 20-40 seconds elapse between the insertion of the WiFi card and the host obtaining IP address. This is quite slow IMHO. It is hard to imagine that exchanging a few packets back and forth should take that long. Is something wrong with my setup? Can there be some bug that affects this? Or should this be considered normal? /etc/rc.config has: wlans_run0="wlan0" ifconfig_wlan0="WPA SYNCDHCP" wpa_supplicant_enable="YES" wpa_supplicant_program="/usr/local/sbin/wpa_supplicant" run(4), FreeBSD 12 amd64. Thanks, Yuri