From owner-freebsd-current@freebsd.org Thu Jul 28 19:41:50 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 83B57BA7B84 for ; Thu, 28 Jul 2016 19:41:50 +0000 (UTC) (envelope-from rwestlun@gmail.com) Received: from mail-qt0-x242.google.com (mail-qt0-x242.google.com [IPv6:2607:f8b0:400d:c0d::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3D1CF1E6E for ; Thu, 28 Jul 2016 19:41:50 +0000 (UTC) (envelope-from rwestlun@gmail.com) Received: by mail-qt0-x242.google.com with SMTP id q11so3660093qtb.2 for ; Thu, 28 Jul 2016 12:41:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=B5x8l5uyuruntoBYzFgAEGxK+8zZP5hUZgfvVu4KwHA=; b=hbdu/nuLZ7kjpzrZLc2tYUIZ7A1Q2NPBuT/VWdL5PlArdlKBnyBEIXchXxhHggx1bh kt2FzUZY5JmHzJC6DHFRX6Cxm14ld90BsB77OzXjjlIXPscOuL6DlAWbXPNZblDF/Mfo nhGaNY7+Vuc/YJcfElypmlblmujSZlrBi5eIjnkkt3n4bN0H872y+6/V8jjbBepP8LZy QqE4y1X9Mq95SbS0aeCLKW1bz4Tk8tlDb9MGYgyJTys/ZpGZZ0QVlnzv6UC5WDFAHKLv /Ca9YW4oYT9RMg0en/XOkKrdSCvafiGxXDUGKcOlLePuUlGmLtOwiCv8qeIfmZf9ZwqA M2hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=B5x8l5uyuruntoBYzFgAEGxK+8zZP5hUZgfvVu4KwHA=; b=jhpKmyLr9j0KVLn/v9Uem0CqnLTRgHz0xb8VYRxFwgFk9xmw3NzjWMmQ9LTOMSOUe2 EBXaAzLE/JymDlacmlkVjX3sxm9qjpXd0lVRniE3aMspa71dP9w1+/+SYMoetfsthBwe /1EJPYAAzUdwfqlU7lEmHz55+ld3G0rDW57A2noeyJ6emHs1i0q5+IH1MFmpU3DqtekY vW07b9NYtjscGjhGgyWNJJgzIOg9U2Yw0bFqItspcjE75BUWZ8vvh2A1E7w/t15AjMaa LmflGPC6pCbF9fKyFdeYDVS8KjgZrNq0NJ5bE2GP71LDAi/zhO/Khcq3favBHiEjEMg2 YHKA== X-Gm-Message-State: AEkooutTl8ts/QyvtiQ0snY/W5Dcdg6t8Za4hy7I8wR1u77fpxBUuM9mxF845W4ViluX9g== X-Received: by 10.200.40.235 with SMTP id j40mr57202059qtj.99.1469734909122; Thu, 28 Jul 2016 12:41:49 -0700 (PDT) Received: from gmail.com (c-98-216-247-110.hsd1.ma.comcast.net. [98.216.247.110]) by smtp.gmail.com with ESMTPSA id l129sm8108710qke.27.2016.07.28.12.41.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jul 2016 12:41:48 -0700 (PDT) Date: Thu, 28 Jul 2016 15:41:46 -0400 From: Randy Westlund To: freebsd-current@freebsd.org Subject: wpa_supplicant doesn't work with lagg Message-ID: <20160728194146.GE26793@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="/aVve/J9H4Wl5yVO" Content-Disposition: inline User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jul 2016 19:41:50 -0000 --/aVve/J9H4Wl5yVO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I'm having trouble using the lagg driver with wpa_supplicant. When I boot with this standard configuration, my wifi works fine: > # Normal config. > wlans_iwn0="wlan0" > ifconfig_wlan0="WPA DHCP" > ifconfig_em0="DHCP" But when I boot with a lagg configuration, wpa_supplicant can't connect. > # Lagg config. > ifconfig_em0="up" > ifconfig_iwn0="ether 3c:97:0e:46:70:ca" > wlans_iwn0="wlan0" > ifconfig_wlan0="WPA" > cloned_interfaces="lagg0" > ifconfig_lagg0="laggproto failover laggport em0 laggport wlan0 DHCP" The system spends a full 5 minutes during boot trying to send DHCP requests before finally giving up. After boot, ifconfig shows that wlan0 has the right ssid, but the status is 'no carrier': > wlan0: flags=8843 metric 0 mtu 1500 > ether 3c:97:0e:46:70:ca > nd6 options=29 > media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) > status: no carrier > ssid neural_network channel 1 (2412 MHz 11g ht/40+) > regdomain FCC country US authmode WPA1+WPA2/802.11i privacy ON > deftxkey UNDEF txpower 30 bmiss 10 scanvalid 60 protmode CTS > ampdulimit 8k -amsdutx amsdurx shortgi -stbc wme roaming MANUAL > groups: wlan If I then manually kill wpa_supplicant and restart it with the same command, it works fine. > /usr/sbin/wpa_supplicant -s -B -i wlan0 -c /etc/wpa_supplicant.conf -D bsd -P /var/run/wpa_supplicant/wlan0.pid > wlan0: flags=8843 metric 0 mtu 1500 > ether 3c:97:0e:46:70:ca > nd6 options=29 > media: IEEE 802.11 Wireless Ethernet MCS mode 11ng > status: associated > ssid neural_network channel 1 (2412 MHz 11g ht/40+) bssid c4:04:15:90:f5:fd > regdomain FCC country US authmode WPA2/802.11i privacy ON > deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 10 scanvalid 60 > protmode CTS ampdulimit 64k ampdudensity 8 -amsdutx amsdurx shortgi > -stbc wme roaming MANUAL > groups: wlan /var/log/messages shows: > Jul 28 15:22:09 mako kernel: wlan0: link state changed to DOWN > Jul 28 15:22:09 mako kernel: lagg0: link state changed to DOWN > Jul 28 15:22:09 mako kernel: wlan0: link state changed to UP > Jul 28 15:22:09 mako kernel: lagg0: link state changed to UP > Jul 28 15:22:09 mako kernel: wlan0: link state changed to DOWN > Jul 28 15:22:09 mako kernel: lagg0: link state changed to DOWN > Jul 28 15:22:09 mako kernel: wlan0: link state changed to UP > Jul 28 15:22:09 mako kernel: lagg0: link state changed to UP > Jul 28 15:22:09 mako kernel: wlan0: link state changed to DOWN > Jul 28 15:22:09 mako kernel: lagg0: link state changed to DOWN > Jul 28 15:22:09 mako kernel: wlan0: link state changed to UP > Jul 28 15:22:09 mako kernel: lagg0: link state changed to UP > Jul 28 15:22:09 mako kernel: wlan0: link state changed to DOWN > Jul 28 15:22:09 mako kernel: lagg0: link state changed to DOWN > [snip] > Jul 28 15:22:23 mako wpa_supplicant[329]: wlan0: CTRL-EVENT-SSID-REENABLED id=2 ssid="neural_network" > Jul 28 15:22:23 mako wpa_supplicant[329]: wlan0: Trying to associate with c4:04:15:90:f5:fd (SSID='neural_network' freq=2412 MHz) > Jul 28 15:22:23 mako kernel: wlan0: link state changed to UP > Jul 28 15:22:23 mako kernel: lagg0: link state changed to UP > Jul 28 15:22:23 mako wpa_supplicant[329]: wlan0: Associated with c4:04:15:90:f5:fd > Jul 28 15:22:23 mako dhclient[533]: send_packet: No buffer space available > Jul 28 15:22:27 mako dhclient[533]: send_packet: No buffer space available > Jul 28 15:22:27 mako kernel: wlan0: link state changed to DOWN > Jul 28 15:22:27 mako kernel: lagg0: link state changed to DOWN > Jul 28 15:22:27 mako wpa_supplicant[329]: wlan0: CTRL-EVENT-DISCONNECTED bssid=c4:04:15:90:f5:fd reason=0 > Jul 28 15:22:27 mako wpa_supplicant[329]: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=2 ssid="neural_network" auth_failures=7 duration=90 reason=CONN_FAILED > Jul 28 15:22:28 mako login: ROOT LOGIN (root) ON ttyv0 > Jul 28 15:22:31 mako dhclient[533]: send_packet: Network is down > Jul 28 15:23:06 mako last message repeated 4 times This is my hardware: > iwn0@pci0:3:0:0: class=0x028000 card=0x13118086 chip=0x00858086 rev=0x34 hdr=0x00 > vendor = 'Intel Corporation' > device = 'Centrino Advanced-N 6205 [Taylor Peak]' > class = network I know I had this working at one point on 10.2-RELEASE, but recently I've tried both 11.0-BETA2 and 12-CURRENT and get this behavior. Any advice for debugging? --/aVve/J9H4Wl5yVO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXml/6AAoJEGaweXjzNsmpf/4H/0KF9+DbT039eawxY7H9MDHw 5HxPIhJkUsTOtGBzHDLuKGwUVjDEJlarNJixytui9+o80m7inMk32swIK/AUx4bD bpEaSrJgek2fvDb93v6wiTv8LomnN4AdsVZgI+JW9KvJuAinbURu1xwZ2SP1O2Lb X3iG9RtYULpedWI3wNzvEhnK5/dadaadUCHmSsXh1IhHzrc6bN/i01Wnc2cLHAOh viFEWnY8v/dvjJYzfFYaMh3jzHb5RvNu17tBn+Hu2LuC2mXtEY9xmb/AyNPEZXP5 AYzYmZUfazcwMAY4Xw3Hhsa9CuJojXRMf9xvj+VSXFpxiAAH2KssPZ1BT4rvT2g= =boPm -----END PGP SIGNATURE----- --/aVve/J9H4Wl5yVO--