Bug 193458 - can not connect reliable to Wifi AP with WPA-PSK / WPA-EAP
Summary: can not connect reliable to Wifi AP with WPA-PSK / WPA-EAP
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: wireless (show other bugs)
Version: CURRENT
Hardware: i386 Any
: --- Affects Only Me
Assignee: freebsd-wireless (Nobody)
Depends on:
Reported: 2014-09-08 09:07 UTC by Matthias Apitz
Modified: 2014-09-08 11:07 UTC (History)
1 user (show)

See Also:

wpa debug log (62.64 KB, text/plain)
2014-09-08 11:06 UTC, Matthias Apitz
no flags Details
wpa debug log (2) (36.00 KB, text/plain)
2014-09-08 11:07 UTC, Matthias Apitz
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Apitz 2014-09-08 09:07:57 UTC
$ uname -a
FreeBSD tiny-r269739 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r269739M: Fri Aug 15 18:07:41 CEST 2014     guru@vm-tiny-r269739:/usr/obj/usr/src/sys/GENERIC  i386

Wifi NIC:

urtwn0: <vendor 0x7392 product 0x7811, class 0/0, rev 2.00/2.00, addr 4> on usbus4
urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
wlan0: Ethernet address: 80:1f:02:ee:16:37

# cat /etc/wpa_supplicant.conf

# Hotel Wieserhof
        ssid="Naturhotel Wieserhof"
        # key_mgmt=WPA-PSK WPA-EAP IEEE8021X
        # key_mgmt=WPA-PSK WPA-EAP
        # key_mgmt=NONE
        # wep_tx_keyidx=0
        # wep_key0="N@tur%Wieser"

note: credentials have been was by local hotel management staff as:
Wi-Fi: Naturhotel Wieserhof
Password: N@tur%Wieser
i.e. the credentials are correct and the SSID was visible with ifconfig wlan0 list scan

WPA started as:

# /usr/sbin/wpa_supplicant -d -i wlan0 -c /etc/wpa_supplicant.conf -D bsd

connection (associating, IP by DHCP) was only sometimes possible far away from the AP (in the hotel room, where the staff said it is not supposed to work), and was never possible near the AP (in the lobby, where it was supposed to work);

I tested the various combinations, the best was what is visible above as aktive lines;

I will attach log files;
Comment 1 Matthias Apitz 2014-09-08 11:06:42 UTC
Created attachment 147057 [details]
wpa debug log
Comment 2 Matthias Apitz 2014-09-08 11:07:19 UTC
Created attachment 147058 [details]
wpa debug log (2)