Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Oct 2016 17:55:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-wireless@FreeBSD.org
Subject:   [Bug 213621] WIFI connection is lost periodically on ath0
Message-ID:  <bug-213621-21060@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213621

            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@FreeBSD.org
          Reporter: kpect@protonmail.com
                CC: freebsd-amd64@FreeBSD.org
                CC: freebsd-amd64@FreeBSD.org

Hello.

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

pinging shows following:
$ ping 192.168.0.1=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
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@pci0:2:0:0:        class=3D0x028000 card=3D0x3116168c chip=3D0x0030168=
c rev=3D0x01
hdr=3D0x00
    vendor     =3D 'Qualcomm Atheros'
    device     =3D 'AR93xx Wireless Network Adapter'
    class      =3D network
    cap 01[40] =3D powerspec 3  supports D0 D1 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 disabled(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[300] =3D Serial 1 0000000000000000


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

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

# uname -a
FreeBSD CROSS 11.0-RELEASE FreeBSD 11.0-RELEASE #0: Sun Sep 25 15:53:24 MSK
2016     root@CROSS  amd64
# ifconfig wlan0=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
wlan0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 14=
80
        ether f8:1a:67:09:d2:7b
        inet 192.168.0.4 netmask 0xffffffe0 broadcast 192.168.0.31=20
        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=20
# cat /etc/wpa=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
wpa_supplicant.conf       wpa_supplicant.conf.bak
# cat /etc/wpa_supplicant.conf=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20
ctrl_interface=3D/var/run/wpa_supplicant
eapol_version=3D2
ap_scan=3D1
fast_reauth=3D1

network=3D{
        ssid=3D"KPECT"
        scan_ssid=3D1
        psk=3D<bla_bla>
        priority=3D5
}

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

Please help.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-213621-21060>