From owner-freebsd-stable@freebsd.org Mon Oct 26 20:27:21 2015 Return-Path: Delivered-To: freebsd-stable@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 D60DCA1E804 for ; Mon, 26 Oct 2015 20:27:21 +0000 (UTC) (envelope-from haramrae@gmail.com) Received: from mail-wi0-x22f.google.com (mail-wi0-x22f.google.com [IPv6:2a00:1450:400c:c05::22f]) (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 8DD4B1E15 for ; Mon, 26 Oct 2015 20:27:21 +0000 (UTC) (envelope-from haramrae@gmail.com) Received: by wicll6 with SMTP id ll6so131436139wic.0 for ; Mon, 26 Oct 2015 13:27:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; bh=+jSEOzfcBkcQB0ntOAPDPYG+nzS5OmMXYq/flYxhaBI=; b=piKr5tVXDKvWm1G9ZGJDzNceklkMIhhdPyYhVXsbnEVa4Y4EjWqAGp8uZnZRuICt4/ C5NdYIubtHXf9aIGnyB4B7KWWjiqg6PxsWsivVBi4K2o5OIBapT94z4Fy4TNyl+w+48O QqTMNdXF7Ev+mdNFaGBmzQ+tX46mRh5j5nrZPXxBvJT+pDTGQzN6DtJEvriKFDfVCsp9 qcTZJGwxBb5koZRr+l1SGSbakh/FQO6sgI6OkgSc/MQhmAvk0KW9SCMQQhOMTGLx8tpA XiTH7/iaxQYHnSIsFQdbf4y5mZU3kO+42P0dmPKPxWkvOUCcz0gAWFTDWQLW0kdwGOLr xJZA== X-Received: by 10.194.88.69 with SMTP id be5mr23960796wjb.125.1445891239896; Mon, 26 Oct 2015 13:27:19 -0700 (PDT) Received: from hollewijn.internal (8d690a59.ftth.concepts.nl. [141.105.10.89]) by smtp.gmail.com with ESMTPSA id r9sm40928581wjz.35.2015.10.26.13.27.18 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Oct 2015 13:27:18 -0700 (PDT) From: Alban Hertroys Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: hostapd loses connectivity on ath0 Message-Id: <61705059-E85C-4887-BBCD-D2690D27D24A@gmail.com> Date: Mon, 26 Oct 2015 21:27:17 +0100 To: freebsd-stable Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Oct 2015 20:27:22 -0000 At random times my devices suddenly fail to connect to Wifi on my ath0 = device. Issueing /etc/rc.d/hostapd restart usually resolves the issue, = but at some point that also hung. Shutting down to single user mode in the hung state only partially = succeeded, in the sense that ifconfig, hostapd and a few other = network-related processes kept "running" - I assume the hangup of = hostapd was caused by a hung process somewhere in that tree. The system is: uname -a FreeBSD solfertje 10.2-PRERELEASE FreeBSD 10.2-PRERELEASE #19 r286718: = Thu Aug 13 10:00:32 CEST 2015 = dalroi@solfertje:/usr/obj/usr/src/sys/ANTELOPE amd64 It's quite possible that I've misconfigured something, so here's the = relevant lines of my configs=E2=80=A6 rc.conf: # Outside interface ifconfig_fxp0=3D"DHCP" ifconfig_fxp0_ipv6=3D"inet6 accept_rtadv" # Wireless wlans_ath0=3D"wlan0" create_args_wlan0=3D"wlanmode hostap" ifconfig_wlan0=3D"mode ng channel 9:ht/40" ifconfig_wlan0_ipv6=3D"inet6 accept_rtadv" # Bridged interfaces (see example at man 4 bridge) cloned_interfaces=3D"bridge0" ifconfig_bridge0=3D"addm em0 stp em0 addm wlan0 stp wlan0 up" ifconfig_bridge0_alias0=3D"inet 10.236.150.1/24" ifconfig_bridge0_ipv6_alias0=3D"inet6 fe80::6efd:b9ff:fe68:db36%bridge0" # Internal wired ethernet (should that be above the bridge declaration?) ifconfig_em0=3D"up" ifconfig_em0_ipv6=3D"inet6 accept_rtadv" hostapd_enable=3D"YES" #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D hostapd.conf: interface=3Dwlan0 driver=3Dbsd debug=3D1 ctrl_interface=3D/var/run/hostapd ctrl_interface_group=3Dwheel ssid=3Dfoo country_code=3DNL ieee80211d=3D1 hw_mode=3Dg wpa=3D2 wpa_passphrase=3Dnonononono wpa_key_mgmt=3DWPA-PSK wpa_pairwise=3DCCMP The ath0 device is: pciconf -lv ath0 =20 ath0@pci0:5:6:0: class=3D0x028000 card=3D0x0300168c = chip=3D0x002d168c rev=3D0x01 hdr=3D0x00 vendor =3D 'Atheros Communications Inc.' device =3D 'AR9227 Wireless Network Adapter' class =3D network In case it's relevant: All connected devices get their IPv4 addresses = through DHCP from this machine, the machine itself gets it's IPv4 = external address from my upstream provider, the internal addresses are = hardwired per interface. DHCP is configured to use hostnames (instead of = IP's) that get looked up in Bind9 on the same machine. Google did find some people on the internet with apparently the same = problem, but nobody seems to have found (or posted) a resolution. Am I doing something wrong? If not, is this a known issue? What's the = next step? Alban Hertroys -- If you can't see the forest for the trees, cut the trees and you'll find there is no forest.