[Bug 213621] WIFI connection is lost periodically on ath0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Oct 19 17:55:59 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213621

            Bug ID: 213621
           Summary: WIFI connection is lost periodically on ath0
           Product: Base System
           Version: 11.0-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: wireless
          Assignee: freebsd-wireless at FreeBSD.org
          Reporter: kpect at protonmail.com
                CC: freebsd-amd64 at FreeBSD.org
                CC: freebsd-amd64 at FreeBSD.org

Hello.

Every several hours my wifi connection is lost. Removing tunnings from
sysctl.conf, tuning different setings on wifi router (disabling MAC Filtering,
chnging Beacon Interval/DTIM Interval/DHCP Address Lease Time/Group Key Update
Period) didn't help.
When connection is lost ifconfig shows nothing special, status stays
'associated'.

pinging shows following:
$ ping 192.168.0.1                                                              
PING 192.168.0.1 (192.168.0.1): 56 data bytes
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down
^C
--- 192.168.0.1 ping statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss

Wifi card is:

ath0 at pci0:2:0:0:        class=0x028000 card=0x3116168c chip=0x0030168c rev=0x01
hdr=0x00
    vendor     = 'Qualcomm Atheros'
    device     = 'AR93xx Wireless Network Adapter'
    class      = network
    cap 01[40] = powerspec 3  supports D0 D1 D3  current D0
    cap 05[50] = MSI supports 4 messages, 64 bit, vector masks 
    cap 10[70] = PCI-Express 2 endpoint max data 128(128) RO
                 link x1(x1) speed 2.5(2.5) ASPM disabled(L0s/L1)
    ecap 0001[100] = AER 1 0 fatal 0 non-fatal 2 corrected
    ecap 0002[140] = VC 1 max VC0
    ecap 0003[300] = Serial 1 0000000000000000


When I do 'reassociate' command inside wpa_cli shell connection restores. Also
it restores by running /etc/rc.d/netif restart.
Below is the listing from truss'ing wpa_supplicant service (first comes lines
when connection is lost, then I did reassociate):

...
select(7,{ 4 5 6 },{ },{ },{ 9.999998 })         = 0 (0x0)
select(7,{ 4 5 6 },{ },{ },{ 9.999997 })         = 0 (0x0)
select(7,{ 4 5 6 },{ },{ },{ 9.999998 })         = 0 (0x0)
select(7,{ 4 5 6 },{ },{ },{ 9.999999 })         = 0 (0x0)
select(7,{ 4 5 6 },{ },{ },{ 9.999999 })         = 0 (0x0)
select(7,{ 4 5 6 },{ },{ },{ 9.999999 })         = 0 (0x0)
select(7,{ 4 5 6 },{ },{ },{ 9.999998 })         = 0 (0x0)
select(7,{ 4 5 6 },{ },{ },{ 9.999998 })         = 0 (0x0)
select(7,{ 4 5 6 },{ },{ },{ 9.999998 })         = 1 (0x1)
recvfrom(6,"ATTACH",4095,0x0,{ AF_UNIX "/tmp/wpa_ctrl_53916-2"
},0x7fffffffd96c) = 6 (0x6)
sendto(6,"OK\n",3,0x0,{ AF_UNIX "/tmp/wpa_ctrl_53916-2" },0x6a) = 3 (0x3)
select(7,{ 4 5 6 },{ },{ },{ 1.494001 })         = 1 (0x1)
recvfrom(6,"BSS RANGE=ALL MASK=0x2",4095,0x0,{ AF_UNIX "/tmp/wpa_ctrl_53916-1"
},0x7fffffffd96c) = 22 (0x16)
sendto(6,"bssid=a0:f3:c1:46:1a:f3\n",24,0x0,{ AF_UNIX "/tmp/wpa_ctrl_53916-1"
},0x6a) = 24 (0x18)
select(7,{ 4 5 6 },{ },{ },{ 1.493639 })         = 1 (0x1)
recvfrom(6,"LIST_NETWORKS",4095,0x0,{ AF_UNIX "/tmp/wpa_ctrl_53916-1"
},0x7fffffffd96c) = 13 (0xd)
sendto(6,"network id / ssid / bssid / flag"...,70,0x0,{ AF_UNIX
"/tmp/wpa_ctrl_53916-1" },0x6a) = 70 (0x46)
select(7,{ 4 5 6 },{ },{ },{ 1.493325 })         = 0 (0x0)
select(7,{ 4 5 6 },{ },{ },{ 9.999999 })         = 1 (0x1)
recvfrom(6,"PING",4095,0x0,{ AF_UNIX "/tmp/wpa_ctrl_53916-1" },0x7fffffffd96c)
= 4 (0x4)
sendto(6,"PONG\n",5,0x0,{ AF_UNIX "/tmp/wpa_ctrl_53916-1" },0x6a) = 5 (0x5)
select(7,{ 4 5 6 },{ },{ },{ 6.096650 })         = 1 (0x1)
recvfrom(6,"PING",4095,0x0,{ AF_UNIX "/tmp/wpa_ctrl_53916-1" },0x7fffffffd96c)
= 4 (0x4)
sendto(6,"PONG\n",5,0x0,{ AF_UNIX "/tmp/wpa_ctrl_53916-1" },0x6a) = 5 (0x5)

# uname -a
FreeBSD CROSS 11.0-RELEASE FreeBSD 11.0-RELEASE #0: Sun Sep 25 15:53:24 MSK
2016     root at CROSS  amd64
# ifconfig wlan0                                                                
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1480
        ether f8:1a:67:09:d2:7b
        inet 192.168.0.4 netmask 0xffffffe0 broadcast 192.168.0.31 
        media: IEEE 802.11 Wireless Ethernet MCS mode 11ng
        status: associated
        ssid KPECT channel 9 (2452 MHz 11g ht/40-) bssid a0:f3:c1:46:1a:f3
        regdomain 33 indoor ecm authmode WPA2/802.11i privacy ON
        deftxkey UNDEF AES-CCM 3:128-bit txpower 20 bmiss 7 scanvalid 60
        protmode CTS ampdulimit 64k shortgi wme burst roaming MANUAL
        bintval 300
        groups: wlan 
# cat /etc/wpa                                                                  
wpa_supplicant.conf       wpa_supplicant.conf.bak
# cat /etc/wpa_supplicant.conf                                                  
ctrl_interface=/var/run/wpa_supplicant
eapol_version=2
ap_scan=1
fast_reauth=1

network={
        ssid="KPECT"
        scan_ssid=1
        psk=<bla_bla>
        priority=5
}

# grep wlan0 /etc/rc.c                                                          
rc.conf     rc.conf.d/
# grep wlan0 /etc/rc.conf                                                       
wlans_ath0="wlan0"
ifconfig_wlan0="WPA DHCP mtu 1480 channel 9 -bgscan ssid KPECT"

Please help.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-amd64 mailing list