From owner-freebsd-wireless@freebsd.org Wed Aug 15 16:54:48 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 C9A22106794A for ; Wed, 15 Aug 2018 16:54:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 66FF896648 for ; Wed, 15 Aug 2018 16:54:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 2BCEE1067949; Wed, 15 Aug 2018 16:54:48 +0000 (UTC) Delivered-To: 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 09DDB1067946 for ; Wed, 15 Aug 2018 16:54:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9D76996647 for ; Wed, 15 Aug 2018 16:54:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id D2A3026B61 for ; Wed, 15 Aug 2018 16:54:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w7FGskaq088292 for ; Wed, 15 Aug 2018 16:54:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w7FGskHM088291 for wireless@FreeBSD.org; Wed, 15 Aug 2018 16:54:46 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 230654] [ath] AR9485 will not connect when wlan MAC address is changed Date: Wed, 15 Aug 2018 16:54:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: 11.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: yoitsmeremember+fbsd@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.27 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: Wed, 15 Aug 2018 16:54:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230654 Bug ID: 230654 Summary: [ath] AR9485 will not connect when wlan MAC address is changed Product: Base System Version: 11.2-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: wireless Assignee: wireless@FreeBSD.org Reporter: yoitsmeremember+fbsd@gmail.com I have an AR9485 in a laptop, configured as the backup for an Ethernet connection as documented in: https://www.freebsd.org/doc/handbook/network-aggregation.html#networking-la= gg-wired-and-wireless The issue is, when using the recommended configuration, the Atheros card (a= th0) will not establish layer-2 connectivity (i.e. it will not associate with our access points). After some troubleshooting, it appears this is an issue th= at arises due to the MAC address being set on the wlan0 interface. Here is the configuration that does *NOT* work (rc.conf): ifconfig_em0=3D"up" wlans_ath0=3D"wlan0" ifconfig_wlan0=3D"WPA" create_args_wlan0=3D"wlanaddr XX:XX:XX:XX:XX:XX" # address of em0 is given cloned_interfaces=3D"lagg0" ifconfig_lagg0=3D"up laggproto failover laggport em0 laggport wlan0 DHCP" This identical configuration works with an Intel Centrino Wireless-N [iwn] = card (except for the necessary change of interface names), so I believe the issue may be specific to Atheros cards. A workaround can be achieved by doing all of the following: - Remove the "create_args_wlan0..." line from rc.conf - Set the MAC address of the em0 (or appropriate other laggport device) to = that of the Atheros card (replaced by 'Y's in this example), e.g.: echo "ifconfig em0 link YY:YY:YY:YY:YY:YY" > /etc/start_if.em0 Additional information: #uname -mirs FreeBSD 11.2-RELEASE-p1 amd64 BASTION relevant wireless kernel config: device wlan # 802.11 support options IEEE80211_DEBUG # enable debug msgs options IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's options IEEE80211_SUPPORT_MESH # enable 802.11s draft support device wlan_wep # 802.11 WEP support device wlan_ccmp # 802.11 CCMP support device wlan_tkip # 802.11 TKIP support device wlan_amrr # AMRR transmit rate control algorithm #device iwn # Intel 4965/1000/5000/6000 wireless NICs. device ath device ath_pci device ath_hal device ath_rate_sample options AH_AR5416_INTERRUPT_MITIGATION options AH_SUPPORT_AR5416 options ATH_ENABLE_11N relevant output from #pciconf -lcbv: ath0@pci0:3:0:0: class=3D0x028000 card=3D0x02081028 chip=3D0x0032168= c rev=3D0x01 hdr=3D0x00 vendor =3D 'Qualcomm Atheros' device =3D 'AR9485 Wireless Network Adapter' class =3D network bar [10] =3D type Memory, range 64, base 0xf2400000, size 524288, ena= bled cap 01[40] =3D powerspec 2 supports D0 D1 D2 D3 current D0 cap 05[50] =3D MSI supports 4 messages, 64 bit, vector masks=20 cap 10[70] =3D PCI-Express 2 endpoint max data 128(128) RO link x1(x1) speed 2.5(2.5) ASPM L0s/L1(L0s/L1) ecap 0001[100] =3D AER 1 0 fatal 0 non-fatal 2 corrected ecap 0002[140] =3D VC 1 max VC0 ecap 0003[160] =3D Serial 1 0000000000000000 I can provide any other information you need upon request. --=20 You are receiving this mail because: You are the assignee for the bug.=