Bug 193458

Summary: can not connect reliable to Wifi AP with WPA-PSK / WPA-EAP
Product: Base System Reporter: Matthias Apitz <guru>
Component: wirelessAssignee: Fernando Apesteguía <fernape>
Status: Closed Unable to Reproduce    
Severity: Affects Only Me CC: fernape, vbotka
Priority: ---    
Version: CURRENT   
Hardware: i386   
OS: Any   
Attachments:
Description Flags
wpa debug log
none
wpa debug log (2) none

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
#
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
eapol_version=1
ap_scan=1
fast_reauth=1

# Hotel Wieserhof
#
network={
        ssid="Naturhotel Wieserhof"
        scan_ssid=1
        # key_mgmt=WPA-PSK WPA-EAP IEEE8021X
        key_mgmt=WPA-PSK
        # key_mgmt=WPA-PSK WPA-EAP
        psk="N@tur%Wieser"
        # 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)
Comment 3 Fernando Apesteguía freebsd_committer freebsd_triage 2023-01-24 12:57:44 UTC
Hi Matthias,

This is very old and I assume we can not reproduce it in the same hotel with the same AP :-)

Any related problems in a more recent version of FreeBSD?
Comment 4 Matthias Apitz 2023-01-24 16:56:09 UTC
I do not use this hardware anymore on any recent FreeBSD.
Comment 5 Fernando Apesteguía freebsd_committer freebsd_triage 2023-01-25 07:48:07 UTC
OK, thanks.