Bug 237673 - TP-Link WN-822N v5, unable to connect using WPA-PSK.
Summary: TP-Link WN-822N v5, unable to connect using WPA-PSK.
Status: Closed Feedback Timeout
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 12.0-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-30 18:21 UTC by adnaan404
Modified: 2019-05-07 15:26 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description adnaan404 2019-04-30 18:21:43 UTC
I have the TP-Link WN-822N v5 but I am unable to connect to WPA networks and authentication doesn't seem to work;

I get;

Created wlan(4) interfaces: wlan0.
wpa_supplicant already running? (pid=2980).
Starting dhclient.
Cannot open or create pidfile: No such file or directory
wlan0: no link .............. giving up
/etc/rc.d/dhclient: WARNING: failed to start dhclient

My device isn't listed under rtwn_usb. The device is detected: 

dmesg:

rtwn0 on uhub0
rtwn0: <802.11n NIC > on usbus0
rtwn0: MAC/BB RTL8192EU, RF 6052 2T2R
Comment 1 adnaan404 2019-04-30 18:24:03 UTC
further info

ifconfig;

wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    ether 50:3e:aa:5d:6f:71
    groups: wlan
    ssid "" channel 11 (2462 MHz 11g ht/20)
    regdomain FCC country US authmode WPA1+WPA2/802.11i privacy ON
    deftxkey UNDEF txpower 30 bmiss 7 scanvalid 60 protmode CTS ht20
    ampdulimit 8k ampdudensity 16 shortgi -stbc -ldpc wme roaming MANUAL
    media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
    status: no carrier
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

script wpa-dbg.txt

wpa_supplicant -i wlan0 -d -c /etc/wpa_supplicant.conf;

root@NomadBSD:/home/nomad # wpa_suppkl  [K  [Klicant -i wlan0 -d -c /etc/wpa_supplki  [K  [Kicant.co  nf
wpa_supplicant v2.6
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
wpa_driver_bsd_capa: drivercaps=0x0591c541,cryptocaps=0x0000000b
Add interface wlan0 to a new radio N/A
wlan0: Own MAC address: 50:3e:aa:5d:6f:71
bsd_set_key: alg=0 addr=0x0 key_idx=0 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=0
bsd_set_key: alg=0 addr=0x0 key_idx=1 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=1
bsd_set_key: alg=0 addr=0x0 key_idx=2 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=2
bsd_set_key: alg=0 addr=0x0 key_idx=3 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=3
wpa_driver_bsd_set_countermeasures: enabled=0
wlan0: RSN: flushing PMKID list in the driver
wlan0: State: DISCONNECTED -> INACTIVE
wlan0: WPS: UUID based on MAC address: d17a653f-a2cf-570c-a935-79bc2c577dc2
ENGINE: Loading dynamic engine
ENGINE: Loading dynamic engine
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
wlan0: Added interface wlan0
wlan0: State: INACTIVE -> DISCONNECTED
EAPOL: disable timer tick
^Cwlan0: Removing interface wlan0
wlan0: Request to deauthenticate - bssid=00:00:00:00:00:00 pending_bssid=00:00:00:00:00:00 reason=3 state=DISCONNECTED
wlan0: State: DISCONNECTED -> DISCONNECTED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_bsd_set_countermeasures: enabled=0
wlan0: WPA: Clear old PMK and PTK
wlan0: Cancelling scan request
wlan0: Cancelling authentication timeout
HS20: Delete all stored icons
Remove interface wlan0 from radio
Remove radio
wpa_driver_bsd_set_wpa: enabled=0
wpa_driver_bsd_set_wpa_internal: wpa=0 privacy=0
bsd_set_opt_ie: set WPA+RSN ie (len 0)
wpa_driver_bsd_set_wpa_internal: wpa=0 privacy=0
bsd_set_opt_ie: set WPA+RSN ie (len 0)
wlan0: CTRL-EVENT-TERMINATING