Hello;
Under `FreeBSD 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC amd64`, I am trying to setup my WiFi network with my TP-Link WN823N usb dongle.
according to dmesg and the WikiDevi website I am running a device with RTL8192EU chipset.
and this is what I have in my /boot/loader.conf :
It seems that I can't get the device to be picked up during the boot time.
and
detaching and reattaching the device bring wlan0 to ifconfig .
And it seems the USB device gets disconnected when I try to handshake with wpa_supplicant
AND MORE STRANGE THINGS:
DMESG:
wpa_supplicant from the packages and not the base system since it crashes at the beginning:
Under `FreeBSD 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC amd64`, I am trying to setup my WiFi network with my TP-Link WN823N usb dongle.
according to dmesg and the WikiDevi website I am running a device with RTL8192EU chipset.
Code:
ugen7.2: <Realtek 802.11n NIC> at usbus7
rtwn0 on uhub0
rtwn0: <802.11n NIC > on usbus7
rtwn0: MAC/BB RTL8192EU, RF 6052 2T2R
wlan0: Ethernet address: d4:6e:0e:7f:51:67
and this is what I have in my /boot/loader.conf :
Code:
wlan_wep_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"
if_rtwn_usb_load="YES"
if_rtwn_pci_load="YES"
if_urtwn_load="YES"
wlan_wpa_load="YES"
wlan_wpa2_load="YES"
wlan_scan_ap_load="YES"
legal.realtek.license_ack=1
It seems that I can't get the device to be picked up during the boot time.
and
ifconfig wlan0 create wlandev rtwn0
returns SIOCIFCREATE2: Device not configured.
detaching and reattaching the device bring wlan0 to ifconfig .
And it seems the USB device gets disconnected when I try to handshake with wpa_supplicant
Code:
usb_alloc_device: set address 2 failed (USB_ERR_IOERROR, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR
ugen5.2: <Unknown > at usbus5 (disconnected)
uhub_reattach_port: could not allocate new device
ugen7.2: <Realtek 802.11n NIC> at usbus7
rtwn0 on uhub0
rtwn0: <802.11n NIC > on usbus7
rtwn0: MAC/BB RTL8192EU, RF 6052 2T2R
wlan0: Ethernet address: d4:6e:0e:7f:51:67
ugen7.2: <Realtek 802.11n NIC> at usbus7 (disconnected)
rtwn0: at uhub0, port 3, addr 2 (disconnected)
rtwn0: r92e_power_off: failed to block Tx queues
rtwn0: detached >>!!! I unpluged the dongle at this point !!!
usb_alloc_device: set address 2 failed (USB_ERR_IOERROR, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR
ugen5.2: <Unknown > at usbus5 (disconnected)
uhub_reattach_port: could not allocate new device
AND MORE STRANGE THINGS:
DMESG:
Code:
uhub_reattach_port: could not allocate new device
ugen7.2: <Realtek 802.11n NIC> at usbus7
rtwn0 on uhub0
rtwn0: <802.11n NIC > on usbus7
rtwn0: MAC/BB RTL8192EU, RF 6052 2T2R
wlan0: Ethernet address: d4:6e:0e:7f:51:67
wlan0: ieee80211_new_state_locked: pending INIT -> SCAN transition lost
wlan0: ieee80211_new_state_locked: pending SCAN -> AUTH transition lost
wlan0: ieee80211_new_state_locked: pending INIT -> SCAN transition lost
wlan0: ieee80211_new_state_locked: pending SCAN -> AUTH transition lost
wlan0: ieee80211_new_state_locked: pending INIT -> SCAN transition lost
wlan0: ieee80211_new_state_locked: pending SCAN -> AUTH transition lost
wlan0: ieee80211_new_state_locked: pending INIT -> SCAN transition lost
wlan0: ieee80211_new_state_locked: pending SCAN -> AUTH transition lost
wlan0: ieee80211_new_state_locked: pending SCAN -> AUTH transition lost
wpa_supplicant from the packages and not the base system since it crashes at the beginning:
Code:
BSS: last_scan_res_used=4/32
Add randomness: count=57 entropy=56
random pool - hexdump(len=128): [REMOVED]
random_mix_pool - hexdump(len=16): [REMOVED]
random_mix_pool - hexdump(len=5): [REMOVED]
random pool - hexdump(len=128): [REMOVED]
Add randomness: count=58 entropy=57
random pool - hexdump(len=128): [REMOVED]
random_mix_pool - hexdump(len=16): [REMOVED]
random_mix_pool - hexdump(len=5): [REMOVED]
random pool - hexdump(len=128): [REMOVED]
Add randomness: count=59 entropy=58
random pool - hexdump(len=128): [REMOVED]
random_mix_pool - hexdump(len=16): [REMOVED]
random_mix_pool - hexdump(len=5): [REMOVED]
random pool - hexdump(len=128): [REMOVED]
Add randomness: count=60 entropy=59
random pool - hexdump(len=128): [REMOVED]
random_mix_pool - hexdump(len=16): [REMOVED]
random_mix_pool - hexdump(len=5): [REMOVED]
random pool - hexdump(len=128): [REMOVED]
wlan0: New scan results available (own=0 ext=0)
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1049 len=6
WPS: WFA subelement id=0 len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1049 len=6
WPS: WFA subelement id=0 len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1049 len=6
WPS: WFA subelement id=0 len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1047 len=16
WPS: attr type=0x103c len=1
WPS: attr type=0x1049 len=6
WPS: WFA subelement id=0 len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1047 len=16
WPS: attr type=0x103c len=1
WPS: attr type=0x1049 len=6
WPS: WFA subelement id=0 len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1047 len=16
WPS: attr type=0x103c len=1
WPS: attr type=0x1049 len=6
WPS: WFA subelement id=0 len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1049 len=6
WPS: WFA subelement id=0 len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1049 len=6
WPS: WFA subelement id=0 len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1049 len=6
WPS: WFA subelement id=0 len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1047 len=16
WPS: attr type=0x103c len=1
WPS: attr type=0x1049 len=6
WPS: WFA subelement id=0 len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1047 len=16
WPS: attr type=0x103c len=1
WPS: attr type=0x1049 len=6
WPS: WFA subelement id=0 len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1047 len=16
WPS: attr type=0x103c len=1
WPS: attr type=0x1049 len=6
WPS: WFA subelement id=0 len=1
WPS: AP[0] 1c:15:1f:38:f2:f3 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[1] 74:da:da:e1:e4:b0 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[2] 18:d6:c7:d3:2a:42 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
wlan0: Authentication with 1c:15:1f:38:f2:f3 timed out.
Added BSSID 1c:15:1f:38:f2:f3 into blacklist
wlan0: WPA: Clear old PMK and PTK
wlan0: Request to deauthenticate - bssid=00:00:00:00:00:00 pending_bssid=1c:15:1f:38:f2:f3 reason=3 (DEAUTH_LEAVING) state=ASSOCIATING
wlan0: Event DEAUTH (11) received
wlan0: Deauthentication notification
wlan0: * reason 3 (DEAUTH_LEAVING) locally_generated=1
Deauthentication frame IE(s) - hexdump(len=0): [NULL]
wlan0: CTRL-EVENT-DISCONNECTED bssid=1c:15:1f:38:f2:f3 reason=3 locally_generated=1
wlan0: Auto connect enabled: try to reconnect (wps=0/0 wpa_state=5)
wlan0: Setting scan request: 0.100000 sec
wlan0: Radio work 'connect'@0x800ca6320 done in 10.006021 seconds
wlan0: radio_work_free('connect'@0x800ca6320): num_active_works --> 0
BSSID 1c:15:1f:38:f2:f3 blacklist count incremented to 2
Continuous association failures - consider temporary network disabling
wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="DINO(" auth_failures=5 duration=60 reason=CONN_FAILED
wlan0: Blacklist count 12 --> request scan in 10000 ms
wlan0: Ignore new scan request for 10.000000 sec since an earlier request is scheduled to trigger sooner
wlan0: WPA: Clear old PMK and PTK
wlan0: Disconnect event - remove keys
wlan0: State: ASSOCIATING -> DISCONNECTED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
wlan0: State: DISCONNECTED -> DISCONNECTED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wlan0: Ignore new scan request for 1.000000 sec since an earlier request is scheduled to trigger sooner
wlan0: State: DISCONNECTED -> SCANNING
Scan SSID - hexdump_ascii(len=5):
44 49 4e 4f 28 DINO(
wlan0: Starting AP scan for wildcard SSID
wlan0: Add radio work 'scan'@0x800ca6320
wlan0: First radio work item in the queue - schedule start immediately
wlan0: Starting radio work 'scan'@0x800ca6320 after 0.000012 second wait
wpa_driver_bsd_set_wpa: enabled=1
wpa_driver_bsd_set_wpa_internal: wpa=3 privacy=1
wlan0: Event SCAN_RESULTS (3) received
Received 1080 bytes of scan results (4 BSSes)
Sorted scan results
74:da:da:e1:e4:b0 freq=2452 qual=53 noise=-95 level=-69 flags=0x0 age=0 est=1000
IEs - hexdump(len=266): 00 03 73 6c 6d 01 0c 82 84 8b 96 12 24 48 6c 0c 18 30 60 2a 01 04 00 03 73 6c 6d 01 08 82 84 8b 96 12 24 48 6c 03 01 09 32 04 0c 18 30 60 07 06 41 45 20 01 0d 14 33 08 20 01 02 03 04 05 06 07 33 08 21 05 06 07 08 09 0a 0b 05 04 00 01 00 00 30 18 01 00 00 0f ac 02 02 00 00 0f ac 02 00 0f ac 04 01 00 00 0f ac 02 00 00 dd 31 00 50 f2 04 10 4a 00 01 10 10 44 00 01 02 10 47 00 10 bc 32 9e 00 1d d8 11 b2 86 01 74 da da e1 e4 b0 10 3c 00 01 01 10 49 00 06 00 37 2a 00 01 20 2a 01 04 2d 1a 6e 10 17 ff ff 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 0c 00 00 00 00 00 3d 16 09 04 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4a 0e 14 00 0a 00 2c 01 c8 00 14 00 05 00 19 00 7f 01 01 dd 18 00 50 f2 02 01 01 00 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00 dd 07 00 0c 43 04 00 00 00
18:d6:c7:d3:2a:42 freq=2462 qual=21 noise=-95 level=-85 flags=0x0 age=0 est=1000
IEs - hexdump(len=285): 00 00 01 0c 82 84 8b 96 12 24 48 6c 0c 18 30 60 2a 01 00 00 00 01 08 82 84 8b 96 12 24 48 6c 03 01 0b 32 04 0c 18 30 60 07 06 55 53 00 01 0b 14 33 08 20 01 02 03 04 05 06 07 33 08 21 05 06 07 08 09 0a 0b 05 04 00 01 00 00 dd 1a 00 50 f2 01 01 00 00 50 f2 02 02 00 00 50 f2 02 00 50 f2 04 01 00 00 50 f2 02 30 18 01 00 00 0f ac 02 02 00 00 0f ac 02 00 0f ac 04 01 00 00 0f ac 02 00 00 dd 27 00 50 f2 04 10 4a 00 01 10 10 44 00 01 02 10 47 00 10 bc 32 9e 00 1d d8 11 b2 86 01 18 d6 c7 d3 2a 42 10 3c 00 01 01 2a 01 00 2d 1a ec 11 17 ff ff 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 3d 16 0b 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4a 0e 14 00 0a 00 2c 01 c8 00 14 00 05 00 19 00 7f 08 00 00 00 01 00 00 00 00 dd 18 00 50 f2 02 01 01 00 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00 dd 07 00 0c 43 00 00 00 00
c0:4a:00:d2:7a:ab freq=2422 qual=21 noise=-95 level=-85 flags=0x0 age=0 est=1000
IEs - hexdump(len=214): 00 04 53 61 62 61 01 0c 82 84 8b 96 12 24 48 6c 0c 18 30 60 2a 01 04 00 04 53 61 62 61 01 08 82 84 8b 96 12 24 48 6c 03 01 03 32 04 0c 18 30 60 07 06 55 53 00 01 0b 14 33 08 20 01 02 03 04 05 06 07 33 08 21 05 06 07 08 09 0a 0b 05 04 00 01 00 00 2a 01 04 2d 1a 6e 11 17 ff 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 0c 00 00 00 00 00 3d 16 03 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4a 0e 14 00 0a 00 2c 01 c8 00 14 00 05 00 19 00 30 18 01 00 00 0f ac 02 02 00 00 0f ac 02 00 0f ac 04 01 00 00 0f ac 02 00 00 dd 18 00 50 f2 02 01 01 00 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00 dd 07 00 0c 43 04 00 00 00
be:2f:a0:4e:ac:88 freq=2412 qual=13 noise=-95 level=-89 flags=0x0 age=0 est=1000
IEs - hexdump(len=227): 00 0f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 0c 82 84 8b 96 24 30 48 6c 0c 12 18 60 2a 01 00 00 0f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 08 82 84 8b 96 24 30 48 6c 03 01 01 05 04 00 01 00 00 07 06 55 53 20 01 0d 1e 20 01 00 23 02 11 00 2a 01 00 32 04 0c 12 18 60 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 0c 00 2d 1a 2d 00 17 ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 3d 16 01 00 15 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7f 08 04 00 00 00 00 00 00 40 dd 0a 00 17 f2 06 01 01 03 01 00 00 dd 09 00 10 18 02 01 00 1c 00 00 dd 18 00 50 f2 02 01 01 80 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00
wlan0: BSS: Start scan result update 15
wlan0: BSS: Add new id 8 BSSID 18:d6:c7:d3:2a:42 SSID '' freq 2462
wlan0: BSS: Add new id 9 BSSID be:2f:a0:4e:ac:88 SSID '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' freq 2412
BSS: last_scan_res_used=4/32
Add randomness: count=61 entropy=60
random pool - hexdump(len=128): [REMOVED]
random_mix_pool - hexdump(len=16): [REMOVED]
random_mix_pool - hexdump(len=5): [REMOVED]
random pool - hexdump(len=128): [REMOVED]
Add randomness: count=62 entropy=61
random pool - hexdump(len=128): [REMOVED]
random_mix_pool - hexdump(len=16): [REMOVED]
random_mix_pool - hexdump(len=5): [REMOVED]
random pool - hexdump(len=128): [REMOVED]
Add randomness: count=63 entropy=62
random pool - hexdump(len=128): [REMOVED]
random_mix_pool - hexdump(len=16): [REMOVED]
random_mix_pool - hexdump(len=5): [REMOVED]
random pool - hexdump(len=128): [REMOVED]
Add randomness: count=64 entropy=63
random pool - hexdump(len=128): [REMOVED]
random_mix_pool - hexdump(len=16): [REMOVED]
random_mix_pool - hexdump(len=5): [REMOVED]
random pool - hexdump(len=128): [REMOVED]
wlan0: New scan results available (own=0 ext=0)
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1049 len=6
WPS: WFA subelement id=0 len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1049 len=6
WPS: WFA subelement id=0 len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1049 len=6
WPS: WFA subelement id=0 len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1047 len=16
WPS: attr type=0x103c len=1
WPS: attr type=0x1049 len=6
WPS: WFA subelement id=0 len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1047 len=16
WPS: attr type=0x103c len=1
WPS: attr type=0x1049 len=6
WPS: WFA subelement id=0 len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1047 len=16
WPS: attr type=0x103c len=1
WPS: attr type=0x1049 len=6
WPS: WFA subelement id=0 len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1047 len=16
WPS: attr type=0x103c len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1047 len=16
WPS: attr type=0x103c len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1047 len=16
WPS: attr type=0x103c len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1047 len=16
WPS: attr type=0x103c len=1
WPS: attr type=0x1049 len=6
WPS: WFA subelement id=0 len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1047 len=16
WPS: attr type=0x103c len=1
WPS: attr type=0x1049 len=6
WPS: WFA subelement id=0 len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1047 len=16
WPS: attr type=0x103c len=1
WPS: attr type=0x1049 len=6
WPS: WFA subelement id=0 len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1047 len=16
WPS: attr type=0x103c len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1047 len=16
WPS: attr type=0x103c len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x1047 len=16
WPS: attr type=0x103c len=1
WPS: AP[0] 1c:15:1f:38:f2:f3 type=0 tries=0 last_attempt=-1 sec ago blacklist=2
WPS: AP[1] 74:da:da:e1:e4:b0 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[2] 18:d6:c7:d3:2a:42 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
wlan0: Radio work 'scan'@0x800ca6320 done in 1.881858 seconds
wlan0: radio_work_free('scan'@0x800ca6320): num_active_works --> 0
wlan0: Postpone network selection by 58 seconds sinc
Last edited: