Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 06 Nov 2016 12:42:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-wireless@FreeBSD.org
Subject:   [Bug 214266] [rtwn] Lenovo T430, unable to connect - reason=CONN_FAILED loop
Message-ID:  <bug-214266-21060@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 214266
           Summary: [rtwn] Lenovo T430, unable to connect -
                    reason=3DCONN_FAILED loop
           Product: Base System
           Version: 11.0-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: wireless
          Assignee: freebsd-wireless@FreeBSD.org
          Reporter: freebsd-bugzilla@textmail.me
                CC: freebsd-amd64@FreeBSD.org
                CC: freebsd-amd64@FreeBSD.org

Hello,

this is a follow-up to my forum post: https://forums.freebsd.org/threads/58=
416
as I assume it's a bug.

I'm on 11-RELEASE on my Lenovo T430 laptop. I have some trouble to get the
wireless network to work. The weird part is, that it works in rare occation=
s.
So every 50th boot or so, it connects to my AP just fine. However, rebootin=
g or
restarting or changing the interface will break the connection and it won't
reconnect.

Hardware is the PCIe version of the RTL8188CE adapter:

pciconf -lcve
rtwn0@pci0:3:0:0: class=3D0x028000 card=3D0x819510ec chip=3D0x817610ec rev=
=3D0x01
hdr=3D0x00
vendor =3D 'Realtek Semiconductor Co., Ltd.'
device =3D 'RTL8188CE 802.11b/g/n WiFi Adapter'
class =3D network
cap 01[40] =3D powerspec 3 supports D0 D1 D2 D3 current D0
cap 05[50] =3D MSI supports 1 message, 64 bit enabled with 1 message
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 2 non-fatal 1 corrected
ecap 0002[140] =3D VC 1 max VC0
ecap 0003[160] =3D Serial 1 019181feff4ce000
PCI-e errors =3D Correctable Error Detected
Non-Fatal Error Detected
Unsupported Request Detected
Non-fatal =3D Completer Abort
Unsupported Request
Corrected =3D Advisory Non-Fatal Error

/boot/loader.conf
if_rtwn_load=3D"YES"
legal.realtek.license_ack=3D1

I copied the firmware files from /sys/contrib/dev/rtwn/ to /etc/firmware/

/etc/rc.conf
ifconfig_em0=3D"up"
ifconfig_rtwn0=3D"ether 00:21:cc:d3:e7:1b regdomain ETSI country DE"
wlans_rtwn0=3D"wlan0"
ifconfig_wlan0=3D"WPA"
cloned_interfaces=3D"lagg0"
ifconfig_lagg0=3D"laggproto failover laggport em0 laggport wlan0 DHCP"


/etc/wpa_supplicant.conf
network=3D{
ssid=3D"AntiGeek 802.11bg"
priority=3D1
bssid=3D90:84:0d:db:07:6d
psk=3DPASSWORDHASH
}


Software versions:
* 11.0-RELEASE-p2 (GENERIC amd64)
* wpa_supplicant v2.5 (I also tried the ports version)

Once I set the interface active with `service netif restart`, the following
output gets written to /var/log/messages. It loops forever and never stays
connected, even ifconfig shows an associations for 1-2 seconds while the de=
vice
is "up".

Step 1: Successfully associated
wlan0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15=
00
ether 00:21:cc:d3:e7:1b
nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g
status: associated
ssid "AntiGeek 802.11bg" channel 8 (2447 MHz 11g) bssid 90:84:0d:db:07:6d
regdomain ETSI country DE authmode WPA2/802.11i privacy ON
deftxkey UNDEF txpower 30 bmiss 7 scanvalid 60 bgscan bgscanintvl 300
bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme roaming MANUAL
groups: wlan


Step 2: The following log entries appear:
Nov 6 12:46:55 coffee kernel: wlan0: link state changed to DOWN
Nov 6 12:46:55 coffee wpa_supplicant[36053]: wlan0: CTRL-EVENT-DISCONNECTED
bssid=3D90:84:0d:db:07:6d reason=3D3 locally_generated=3D1
Nov 6 12:46:55 coffee wpa_supplicant[36053]: wlan0:
CTRL-EVENT-SSID-TEMP-DISABLED id=3D0 ssid=3D"AntiGeek 802.11bg" auth_failur=
es=3D4
duration=3D73 reason=3DCONN_FAILED


Step 3: The device scans again and eventually starts over (goto step 1)
wlan0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15=
00
ether 00:21:cc:d3:e7:1b
nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
ssid "" channel 2 (2417 MHz 11g)
regdomain ETSI country DE authmode WPA1+WPA2/802.11i privacy ON
deftxkey UNDEF txpower 30 bmiss 7 scanvalid 60 bgscan bgscanintvl 300
bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme roaming MANUAL
groups: wlan

Full log /var/log/messages (it loops forever)
Nov 6 12:32:29 coffee wpa_supplicant[13913]: wlan0: Trying to associate with
90:84:0d:db:07:6d (SSID=3D'AntiGeek 802.11bg' freq=3D2447 MHz)
Nov 6 12:32:39 coffee wpa_supplicant[13913]: wlan0: Authentication with
90:84:0d:db:07:6d timed out.
Nov 6 12:32:39 coffee wpa_supplicant[13913]: wlan0: CTRL-EVENT-DISCONNECTED
bssid=3D90:84:0d:db:07:6d reason=3D3 locally_generated=3D1
Nov 6 12:32:41 coffee wpa_supplicant[13913]: wlan0: Trying to associate with
90:84:0d:db:07:6d (SSID=3D'AntiGeek 802.11bg' freq=3D2447 MHz)
Nov 6 12:32:51 coffee wpa_supplicant[13913]: wlan0: Authentication with
90:84:0d:db:07:6d timed out.
Nov 6 12:32:51 coffee wpa_supplicant[13913]: wlan0: CTRL-EVENT-DISCONNECTED
bssid=3D90:84:0d:db:07:6d reason=3D3 locally_generated=3D1
Nov 6 12:32:51 coffee wpa_supplicant[13913]: wlan0:
CTRL-EVENT-SSID-TEMP-DISABLED id=3D0 ssid=3D"AntiGeek 802.11bg" auth_failur=
es=3D1
duration=3D10 reason=3DCONN_FAILED
Nov 6 12:33:07 coffee wpa_supplicant[13913]: wlan0: CTRL-EVENT-SSID-REENABL=
ED
id=3D0 ssid=3D"AntiGeek 802.11bg"
Nov 6 12:33:07 coffee wpa_supplicant[13913]: wlan0: Trying to associate with
90:84:0d:db:07:6d (SSID=3D'AntiGeek 802.11bg' freq=3D2447 MHz)
Nov 6 12:33:07 coffee wpa_supplicant[13913]: wlan0: Associated with
90:84:0d:db:07:6d
Nov 6 12:33:07 coffee kernel: wlan0: link state changed to UP
Nov 6 12:33:17 coffee wpa_supplicant[13913]: wlan0: Authentication with
90:84:0d:db:07:6d timed out.
Nov 6 12:33:17 coffee kernel: wlan0: link state changed to DOWN
Nov 6 12:33:17 coffee wpa_supplicant[13913]: wlan0: CTRL-EVENT-DISCONNECTED
bssid=3D90:84:0d:db:07:6d reason=3D3 locally_generated=3D1
Nov 6 12:33:17 coffee wpa_supplicant[13913]: wlan0:
CTRL-EVENT-SSID-TEMP-DISABLED id=3D0 ssid=3D"AntiGeek 802.11bg" auth_failur=
es=3D2
duration=3D31 reason=3DCONN_FAILED
Nov 6 12:33:47 coffee wpa_supplicant[13913]: wlan0: CTRL-EVENT-SSID-REENABL=
ED
id=3D0 ssid=3D"AntiGeek 802.11bg"
Nov 6 12:33:47 coffee wpa_supplicant[13913]: wlan0: Trying to associate with
90:84:0d:db:07:6d (SSID=3D'AntiGeek 802.11bg' freq=3D2447 MHz)
Nov 6 12:33:47 coffee wpa_supplicant[13913]: wlan0: Associated with
90:84:0d:db:07:6d
Nov 6 12:33:47 coffee kernel: wlan0: link state changed to UP
Nov 6 12:33:51 coffee wpa_supplicant[13913]: wlan0: CTRL-EVENT-DISCONNECTED
bssid=3D90:84:0d:db:07:6d reason=3D0
Nov 6 12:33:51 coffee kernel: wlan0: link state changed to DOWN
Nov 6 12:33:51 coffee wpa_supplicant[13913]: wlan0:
CTRL-EVENT-SSID-TEMP-DISABLED id=3D0 ssid=3D"AntiGeek 802.11bg" auth_failur=
es=3D3
duration=3D30 reason=3DCONN_FAILED

The AP is an old Apple Time Capsule. I tried different configurations and e=
ven
an open network without authentication, no luck:

/var/log/messages when connecting to an open network (no authentication)
Nov 6 13:03:09 coffee kernel: wlan0: Ethernet address: 20:68:9d:48:81:cd
Nov 6 13:03:09 coffee wpa_supplicant[40246]: Successfully initialized
wpa_supplicant
Nov 6 13:03:11 coffee kernel: rtwn0: timeout waiting for firmware
initialization to complete
Nov 6 13:03:21 coffee wpa_supplicant[40249]: wlan0: Trying to associate with
9e:84:0d:db:07:6d (SSID=3D'open_wlan' freq=3D2447 MHz)
Nov 6 13:03:31 coffee wpa_supplicant[40249]: wlan0: Authentication with
9e:84:0d:db:07:6d timed out.
Nov 6 13:03:31 coffee wpa_supplicant[40249]: wlan0: CTRL-EVENT-DISCONNECTED
bssid=3D9e:84:0d:db:07:6d reason=3D3 locally_generated=3D1
Nov 6 13:03:33 coffee wpa_supplicant[40249]: wlan0: Trying to associate with
9e:84:0d:db:07:6d (SSID=3D'open_wlan' freq=3D2447 MHz)
Nov 6 13:03:43 coffee wpa_supplicant[40249]: wlan0: Authentication with
9e:84:0d:db:07:6d timed out.
Nov 6 13:03:43 coffee wpa_supplicant[40249]: wlan0: CTRL-EVENT-DISCONNECTED
bssid=3D9e:84:0d:db:07:6d reason=3D3 locally_generated=3D1
Nov 6 13:03:43 coffee wpa_supplicant[40249]: wlan0:
CTRL-EVENT-SSID-TEMP-DISABLED id=3D0 ssid=3D"open_wlan" auth_failures=3D1 d=
uration=3D10
reason=3DCONN_FAILED

Best Regards,
Stefan

--=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-214266-21060>