From owner-freebsd-current@freebsd.org Wed Aug 3 08:06:00 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 2A97BBACCA9 for ; Wed, 3 Aug 2016 08:06:00 +0000 (UTC) (envelope-from cheffo@freebsd-bg.org) Received: from mail-lf0-x234.google.com (mail-lf0-x234.google.com [IPv6:2a00:1450:4010:c07::234]) (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 B222616CC for ; Wed, 3 Aug 2016 08:05:59 +0000 (UTC) (envelope-from cheffo@freebsd-bg.org) Received: by mail-lf0-x234.google.com with SMTP id g62so155309837lfe.3 for ; Wed, 03 Aug 2016 01:05:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd-bg-org.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=OuVgYaongUZJLpyDm/qhUlNElQ6G1RJOHj5EZ6wrYNA=; b=2PeRwfR0+TC66QoKVgk+sskjf3GXXAUBjP+WfKjP9e95QpXgwxsfqu0h2nlPqCKlmp /esQ8ESY6sikyYkn5Wmz0PLT7G2b3jFPQpvF9yq3dWS/x971/dp642HMI/o8mUpYdyQ8 eyRn4I75GT9UjWaIuUWI3PWtAnpRp1QX0pu2d2uCNs/hc9oQW42MOypCOZqAahyGGCb0 86tgEWJhx/uJQlPUSgI3PjK4hsIZFuLHisY6D3Z1Qh3jBXkYpaUXqnXRiwGiZWCvGsvu IpGt9Isa3Z8jYw/xXsh80vi/36Rh36verov+9ft9/Cx5s1ocH1vmFv2JgkOvgbUFdlX9 PV9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=OuVgYaongUZJLpyDm/qhUlNElQ6G1RJOHj5EZ6wrYNA=; b=mWBQggtcMDL/nqgF3UimfxusCXbIylAKYeoB4ibwKleAewXKN3dYpo/KkXx69/Pxpe fm7TUkK/MeK4iOfqC1x7G/fTlqDckRWKkuqodX6LI7KgurlTWCSZNMeW3GOKJMPiJKVa Dosa8J1+z7WPPHh1bOMVAKhVJl0yghotHFFbjtZPm/3xAnHKj9SNtoJey8hIamrKLOHI Dtqv+O+2dUioRISts0LBTleaUG5KfQcRzyaqc5YoNIJvB66wwg13+UxIaSwEsBQRvvHH tmDkTIeEKYjYu/miviFvbH6UnmhOCcDiUJeIE03TC7AVzhXNcrz0AdzBQgrltqvDrgMt HYYQ== X-Gm-Message-State: AEkoouuo/1qdRKbCP6JQ1hC9J6ML4DafpVg1FYmwu2zs+PK7OWqikjwt4tOQ/myVJR7cuaSbzJlDFCSfjhx3Yw== X-Received: by 10.46.9.216 with SMTP id 207mr18609694ljj.62.1470211557556; Wed, 03 Aug 2016 01:05:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.44.201 with HTTP; Wed, 3 Aug 2016 01:05:57 -0700 (PDT) From: Stefan Lambrev Date: Wed, 3 Aug 2016 11:05:57 +0300 Message-ID: Subject: Wierd issues with wifi in hostap mode in FreeBSD 11 To: freebsd-current@freebsd.org X-Mailman-Approved-At: Wed, 03 Aug 2016 11:32:40 +0000 Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 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: Wed, 03 Aug 2016 08:06:00 -0000 Greetings, I've just installed FreeBSD 11 on Soekris net5501 with the following wifi card: root@soekris:~ # dmesg |grep ath0 ath0: mem 0xa0010000-0xa001ffff irq 15 at device 17.0 on pci0 ath0: AR5413 mac 10.5 RF5413 phy 6.1 ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0063 ath0@pci0:0:17:0: class=0x020000 card=0x110719b6 chip=0x001b168c rev=0x01 hdr=0x00 vendor = 'Qualcomm Atheros' device = 'AR5413/AR5414 Wireless Network Adapter [AR5006X(S) 802.11abg]' class = network subclass = ethernet But wat is very strange for me is that I do not see ath0 device on ifconfig: root@soekris:~ # ifconfig ath0 ifconfig: interface ath0 does not exist At the same time if I crate wlan0 to list caps it works: root@soekris:~ # ifconfig wlan0 create wlandev ath0 root@soekris:~ # ifconfig wlan0 list caps drivercaps=4f8defc1 cryptocaps=1f root@soekris:~ # The issues is that when I try to start wlan0 in hostap mode - FreeBSD freezes, unfortunatelly I cannot find my serial port cable atm and cannot see what exactly is displayed on the console but it's a hard freeze and the device do not reboot after it e.g. power cycle is required. When configured from rc.conf it boots and do not freeze but still says status: no carrier and hostapd complains that the device is not configured. snippet from rc.conf: cloned_interfaces="bridge0" wlans_ath0="wlan0" create_args_wlan0="wlanmod hostap" ifconfig_wlan0="ssid cheffo country bg up" ifconfig_bridge0="addm vr0 addm vr1 addm vr2 addm vr3 addm wlan0 up" ifconfig_bridge0_alias0="inet 10.1.1.2 netmask 255.255.255.0" I'm still with GENERIC kernel and there are no changes or custom cpu optimizations done so far: root@soekris:~ # uname -a FreeBSD soekris.ziops-security.org 11.0-BETA3 FreeBSD 11.0-BETA3 #0 r303469: Fri Jul 29 04:28:58 UTC 2016 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386 root@soekris:~ # cat /boot/loader.conf dcons_load="YES" dcons_crom="YES" crypto_load="YES" cryptodev_load="YES" glxsb_load="YES" if_bridge_load="YES" wlan_xauth_load="YES" root@soekris:~ # kldstat Id Refs Address Size Name 1 19 0xc0400000 1a9313c kernel 2 1 0xc1e95000 80d4 geom_label.ko 3 1 0xc1e9e000 bc80 if_bridge.ko 4 2 0xc1eaa000 6ce0 bridgestp.ko 5 1 0xc1eb1000 3a70 dcons.ko 6 1 0xc1eb5000 5978 cryptodev.ko 7 1 0xc1ebb000 548c glxsb.ko 8 1 0xc1ec1000 1d6c wlan_xauth.ko I have to mention that I've tried with 11-BETA2 first and there were the same behaviour, and also I have used this soekris setup for few years with FreeBSD 7 and 8 for a home wifi router so I do know that the hardware is supported and OK, as it worked rock solid just before reinstalling it with FreeBSD 11. Any advice on how to get wifi working again? Thanks!