From owner-freebsd-wireless@freebsd.org Thu Apr 22 23:08:32 2021 Return-Path: Delivered-To: freebsd-wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 70CEA62218C for ; Thu, 22 Apr 2021 23:08:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4FRClN2Zcrz4tZw for ; Thu, 22 Apr 2021 23:08:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 5878F62218B; Thu, 22 Apr 2021 23:08:32 +0000 (UTC) Delivered-To: wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 58424621C6D for ; Thu, 22 Apr 2021 23:08:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FRClN1xMwz4tJq for ; Thu, 22 Apr 2021 23:08:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 35929226BF for ; Thu, 22 Apr 2021 23:08:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 13MN8WVX048492 for ; Thu, 22 Apr 2021 23:08:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 13MN8WMj048491 for wireless@FreeBSD.org; Thu, 22 Apr 2021 23:08:32 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 255337] Atheros AR9462 Wireless problems Date: Thu, 22 Apr 2021 23:08:32 +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: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: gmarco@gufi.org 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.34 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: Thu, 22 Apr 2021 23:08:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255337 Bug ID: 255337 Summary: Atheros AR9462 Wireless problems Product: Base System Version: 13.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: wireless Assignee: wireless@FreeBSD.org Reporter: gmarco@gufi.org I have tried to install a fresh 13.0-RELEASE on a DELL Precision m4800. The wifi card is a AR9462 Wireless Network Adapter that should be well supported since FreeBSD 10-RELEASE. During boot the card is identified correctly:=20 root@m4800:/home/gmarco # grep ath /var/run/dmesg.boot ath0: mem 0xf5000000-0xf507ffff at device 0.0 on pc= i5 ath0: [HT] enabling HT modes ath0: [HT] enabling short-GI in 20MHz mode ath0: [HT] 1 stream STBC receive enabled ath0: [HT] 1 stream STBC transmit enabled ath0: [HT] LDPC transmit/receive enabled ath0: [HT] 3 RX streams; 3 TX streams ath0: AR9460 mac 640.2 RF5110 phy 124.0 ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0000 ath0: mem 0xf5a00000-0xf5a7ffff at device 0.0 on pc= i5 ath0: [HT] enabling HT modes ath0: [HT] enabling short-GI in 20MHz mode ath0: [HT] 1 stream STBC receive enabled ath0: [HT] 1 stream STBC transmit enabled ath0: [HT] LDPC transmit/receive enabled ath0: [HT] 3 RX streams; 3 TX streams ath0: AR9460 mac 640.2 RF5110 phy 0.0 ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0000 root@m4800:/home/gmarco # pciconf -vl | grep -4 ath ... ath0@pci0:5:0:0: class=3D0x028000 rev=3D0x01 hdr=3D0x00 vendor=3D0x1= 68c device=3D0x0034 subvendor=3D0x1028 subdevice=3D0x020d vendor =3D 'Qualcomm Atheros' device =3D 'AR9462 Wireless Network Adapter' class =3D network The driver is ath0: root@m4800:/home/gmarco # sysctl -a|fgrep antenna dev.ath.0.rxantenna: 1 dev.ath.0.txantenna: 0 I have in /etc/rc.conf: wlans_ath0=3D"wlan0" ifconfig_wlan0=3D"WPA SYNCDHCP" create_args_wlan0=3D"country IT" A simple /etc/wpa_supplicant.conf like: ctrl_interface=3D/var/run/wpa_supplicant ap_scan=3D1 eapol_version=3D1 network=3D{ ssid=3D"sweetguest" psk=3D"mypsk" } After a reboot the card is in this way: root@m4800:/home/gmarco # ifconfig wlan0 wlan0: flags=3D8843 metric 0 mtu 15= 00 ether 00:02:03:04:05:06 groups: wlan ssid "" channel 140 (5700 MHz 11a) regdomain ETSI country IT ecm authmode WPA1+WPA2/802.11i privacy MIXED deftxkey UNDEF txpower 23 bmiss 7 mcastrate 6 mgmtrat= e 6 scanvalid 60 wme burst roaming MANUAL bintval 0 parent interface: ath0 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier nd6 options=3D29 The "country IT" correctly set the card with /etc/regdomain.xml parameters. NO IP is assigned and the card is deaf and dumb infact it is unable to find= the near wifi networks: root@m4800:/home/gmarco # ifconfig wlan0 up scan root@m4800:/home/gmarco #=20 In the messages I found: Apr 22 13:51:24 m4800 kernel: ar9300_flash_map: unimplemented for now Apr 22 13:51:24 m4800 kernel: ar9300_eeprom_restore_internal[4323] No vaid = CAL, calling default template Apr 22 13:51:24 m4800 kernel: ar9300_hw_attach: ar9300_eeprom_attach return= ed 0 The MAC address is a bit strange too (?). It seems the card is unable to transmit: sysctl dev.ath.0.stats | fgrep -v :\ 0 dev.ath.0.stats.ast_tx_intr: 386 dev.ath.0.stats.ast_tx_raw: 306 dev.ath.0.stats.ast_tx_xretries: 123 I have tried to run the wpa_supplicant in debug mode: root@m4800:/home/gmarco # wpa_supplicant -Dbsd -iwlan0 -dd -c/etc/wpa_supplicant.conf wpa_supplicant v2.9 Successfully initialized wpa_supplicant Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'bsd' ctrl_interface 'N/A' bridge 'N/A' Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf' Reading configuration file '/etc/wpa_supplicant.conf' Line: 1 - start of a new network block ssid - hexdump_ascii(len=3D10): 73 77 65 65 74 67 75 65 73 74 sweetguest PSK (ASCII passphrase) - hexdump_ascii(len=3D10): [REMOVED] PSK (from passphrase) - hexdump(len=3D32): [REMOVED] Priority group 0 id=3D0 ssid=3D'sweetguest' wpa_driver_bsd_capa: drivercaps=3D0x4f8def41,cryptocaps=3D0x0000001f Add interface wlan0 to a new radio N/A wlan0: Failed to attach pkt_type filter wlan0: Own MAC address: 00:02:03:04:05:06 bsd_set_key: alg=3D0 addr=3D0x0 key_idx=3D0 set_tx=3D0 seq_len=3D0 key_len= =3D0 bsd_del_key: key_idx=3D0 bsd_set_key: alg=3D0 addr=3D0x0 key_idx=3D1 set_tx=3D0 seq_len=3D0 key_len= =3D0 bsd_del_key: key_idx=3D1 bsd_set_key: alg=3D0 addr=3D0x0 key_idx=3D2 set_tx=3D0 seq_len=3D0 key_len= =3D0 bsd_del_key: key_idx=3D2 bsd_set_key: alg=3D0 addr=3D0x0 key_idx=3D3 set_tx=3D0 seq_len=3D0 key_len= =3D0 bsd_del_key: key_idx=3D3 bsd_set_key: alg=3D0 addr=3D0x0 key_idx=3D4 set_tx=3D0 seq_len=3D0 key_len= =3D0 bsd_del_key: key_idx=3D4 ioctl[SIOCS80211, op=3D20, val=3D0, arg_len=3D7]: Invalid argument bsd_set_key: alg=3D0 addr=3D0x0 key_idx=3D5 set_tx=3D0 seq_len=3D0 key_len= =3D0 bsd_del_key: key_idx=3D5 ioctl[SIOCS80211, op=3D20, val=3D0, arg_len=3D7]: Invalid argument wpa_driver_bsd_set_countermeasures: enabled=3D0 wlan0: RSN: flushing PMKID list in the driver wlan0: Setting scan request: 0.100000 sec wlan0: WPS: UUID based on MAC address: adc6ea59-dd05-5fc9-87b4-a4bb58fad59e ENGINE: Loading builtin engines ENGINE: Loading builtin engines EAPOL: SUPP_PAE entering state DISCONNECTED EAPOL: Supplicant port status: Unauthorized EAPOL: KEY_RX entering state NO_KEY_RECEIVE EAPOL: SUPP_BE entering state INITIALIZE EAP: EAP entering state DISABLED wlan0: Added interface wlan0 wlan0: State: DISCONNECTED -> DISCONNECTED wlan0: State: DISCONNECTED -> SCANNING wlan0: Starting AP scan for wildcard SSID wlan0: Add radio work 'scan'@0x800e103e0 wlan0: First radio work item in the queue - schedule start immediately wlan0: Starting radio work 'scan'@0x800e103e0 after 0.000003 second wait wpa_driver_bsd_set_wpa: enabled=3D1 wpa_driver_bsd_set_wpa_internal: wpa=3D3 privacy=3D1 RTM_IFINFO: Interface 'wlan0' UP wlan0: Event INTERFACE_ENABLED (25) received wlan0: Interface was enabled EAPOL: disable timer tick wlan0: Event SCAN_RESULTS (3) received Received 0 bytes of scan results (0 BSSes) wlan0: BSS: Start scan result update 1 BSS: last_scan_res_used=3D0/0 wlan0: New scan results available (own=3D0 ext=3D0) wlan0: Radio work 'scan'@0x800e103e0 done in 7.632735 seconds wlan0: radio_work_free('scan'@0x800e103e0): num_active_works --> 0 wlan0: No suitable network found wlan0: Setting scan request: 5.000000 sec wlan0: Starting AP scan for wildcard SSID wlan0: Add radio work 'scan'@0x800e103e0 wlan0: First radio work item in the queue - schedule start immediately wlan0: Starting radio work 'scan'@0x800e103e0 after 0.000005 second wait wpa_driver_bsd_set_wpa: enabled=3D1 wpa_driver_bsd_set_wpa_internal: wpa=3D3 privacy=3D1 wlan0: Event SCAN_RESULTS (3) received Received 0 bytes of scan results (0 BSSes) wlan0: BSS: Start scan result update 2 BSS: last_scan_res_used=3D0/0 wlan0: New scan results available (own=3D0 ext=3D0) wlan0: Radio work 'scan'@0x800e103e0 done in 7.642331 seconds wlan0: radio_work_free('scan'@0x800e103e0): num_active_works --> 0 wlan0: No suitable network found wlan0: Setting scan request: 5.000000 sec wlan0: Starting AP scan for wildcard SSID wlan0: Add radio work 'scan'@0x800e103e0 wlan0: First radio work item in the queue - schedule start immediately wlan0: Starting radio work 'scan'@0x800e103e0 after 0.000004 second wait wpa_driver_bsd_set_wpa: enabled=3D1 wpa_driver_bsd_set_wpa_internal: wpa=3D3 privacy=3D1 blablabla ..... But I am not good enough to understand if there is a problem here :) The card works quite nicely in WIN10 and UBUNTU. Thanks for any info/tips/ideas. --=20 You are receiving this mail because: You are the assignee for the bug.=