Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Feb 2020 12:08:34 +1000
From:      Kris G <netsick@gmail.com>
To:        freebsd-usb@freebsd.org, Kevin Lo <kevlo@freebsd.org>
Subject:   Re: RTL8192EU USB Wifi error: rtwn0: r92e_power_off: failed to block Tx queues
Message-ID:  <CAFJznXDaB5SgkJgOWemtXc3QSHYPTdFwo6d0AhJsCye8RAT_hw@mail.gmail.com>
In-Reply-To: <CAFJznXDW=N60iAGH43o2MF%2BPqGuXC2OMfi6KeyX60Tm5CQyT7w@mail.gmail.com>
References:  <CAFJznXDW=N60iAGH43o2MF%2BPqGuXC2OMfi6KeyX60Tm5CQyT7w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Does this help any?

# wpa_supplicant -d -d -i wlan0 -c /etc/wpa_supplicant.conf
wpa_supplicant v2.9
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'
Line: 2 - start of a new network block
ssid - hexdump_ascii(len=11):
     69 69 4e 65 74 42 33 43 38 30 33                  iiNetB3C803
key_mgmt: 0x2
PSK (ASCII passphrase) - hexdump_ascii(len=10): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
   id=0 ssid='iiNetB3C803'
wpa_driver_bsd_capa: drivercaps=0x0591c541,cryptocaps=0x0000000b
Add interface wlan0 to a new radio N/A
wlan0: Failed to attach pkt_type filter
wlan0: Own MAC address: a0:f4:59:7f:4b:8c
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: Setting scan request: 0.100000 sec
wlan0: WPS: UUID based on MAC address: 3c7cd09d-b3cb-5865-b533-e33869532769
ENGINE: Loading builtin engines
ENGINE: Loading builtin engines
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: DISCONNECTED -> DISCONNECTED
wlan0: Event SCAN_RESULTS (3) received
Received 0 bytes of scan results (0 BSSes)
wlan0: BSS: Start scan result update 1
BSS: last_scan_res_used=0/0
wlan0: New scan results available (own=0 ext=0)
wlan0: No suitable network found
wlan0: Ignore new scan request for 5.000000 sec since an earlier request is
scheduled to trigger sooner
wlan0: State: DISCONNECTED -> SCANNING
wlan0: Starting AP scan for wildcard SSID
wlan0: Add radio work 'scan'@0x20c2a480
wlan0: First radio work item in the queue - schedule start immediately
wlan0: Starting radio work 'scan'@0x20c2a480 after 0.000010 second wait
wpa_driver_bsd_set_wpa: enabled=1
wpa_driver_bsd_set_wpa_internal: wpa=3 privacy=1
ioctl[SIOCS80211, op=103, val=0, arg_len=128]: Network is down
wlan0: State: SCANNING -> DISCONNECTED
wlan0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
wlan0: Radio work 'scan'@0x20c2a480 done in 6.478101 seconds
wlan0: radio_work_free('scan'@0x20c2a480): num_active_works --> 0
wlan0: Setting scan request: 1.000000 sec
EAPOL: disable timer tick
RTM_IFINFO: Interface 'wlan0' DOWN
wlan0: Event INTERFACE_DISABLED (26) received
wlan0: Interface was disabled
wlan0: State: DISCONNECTED -> DISCONNECTED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wlan0: State: DISCONNECTED -> INTERFACE_DISABLED
RTM_IFANNOUNCE: Interface 'wlan0' removed
wlan0: Event INTERFACE_STATUS (5) received
wlan0: Configured interface was removed
wlan0: State: INTERFACE_DISABLED -> INTERFACE_DISABLED
wlan0: Removing interface wlan0
wlan0: Request to deauthenticate - bssid=00:00:00:00:00:00
pending_bssid=00:00:00:00:00:00 reason=3 (DEAUTH_LEAVING)
state=INTERFACE_DISABLED
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
wlan0: CTRL-EVENT-TERMINATING

On Thu, Feb 13, 2020 at 10:41 AM Kris G <netsick@gmail.com> wrote:

> Hi,
>
> I can't seem to get my USB wifi working. Here is what I see..
>
> Logs when I insert the device.
>
> kernel: rtwn0 on uhub0
> kernel: rtwn0: <802.11n NIC> on usbus0
> kernel: rtwn0: MAC/BB RTL8192EU, RF 6052 2T2R
> kernel: wlan0: Ethernet address: a0:f4:59:7f:4b:8c
> kernel: wlan0: ieee80211_new_state_locked: pending INIT -> SCAN transition
> lost
>
>
> # wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
> Successfully initialized wpa_supplicant
> ioctl[SIOCS80211, op=103, val=0, arg_len=128]: Network is down
> wlan0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
> wlan0: CTRL-EVENT-TERMINATING
>
> Logs below returned when running wpa_supplicant command above.
>
> kernel: ugen0.4: <Realtek 802.11n NIC> at usbus0 (disconnected)
> kernel: rtwn0: at uhub0, port 4, addr 6 (disconnected)
> kernel: rtwn0: r92e_power_off: failed to block Tx queues
> kernel: rtwn0: detached
> root[70569]: /etc/rc.d/netif: WARNING: wlan0 does not exist.  Skipped.
> kernel: usb_alloc_device: set address 4 failed (USB_ERR_IOERROR, ignored)
> kernel: usbd_setup_device_desc: getting device descriptor at addr 4
> failed, USB_ERR_IOERROR
> kernel: usbd_req_re_enumerate: addr=4, set address failed!
> (USB_ERR_IOERROR, ignored)
> kernel: usbd_setup_device_desc: getting device descriptor at addr 4
> failed, USB_ERR_IOERROR
> kernel: usbd_req_re_enumerate: addr=4, set address failed!
> (USB_ERR_IOERROR, ignored)
> kernel: usbd_setup_device_desc: getting device descriptor at addr 4
> failed, USB_ERR_IOERROR
> kernel: usbd_req_re_enumerate: addr=4, set address failed!
> (USB_ERR_IOERROR, ignored)
> kernel: usbd_setup_device_desc: getting device descriptor at addr 4
> failed, USB_ERR_IOERROR
> kernel: usbd_req_re_enumerate: addr=4, set address failed!
> (USB_ERR_IOERROR, ignored)
> kernel: usbd_setup_device_desc: getting device descriptor at addr 4
> failed, USB_ERR_IOERROR
> kernel: ugen0.4: <Unknown > at usbus0 (disconnected)
> kernel: uhub_reattach_port: could not allocate new device
>
> I now have to reinsert the device to have it attached again. How can I fix
> error " kernel: rtwn0: r92e_power_off: failed to block Tx queues"
>
> # usbconfig -d 0.4 dump_all_desc
> ugen0.4: <Realtek 802.11n NIC> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps)
> pwr=ON (500mA)
>
>   bLength = 0x0012
>   bDescriptorType = 0x0001
>   bcdUSB = 0x0210
>   bDeviceClass = 0x0000  <Probed by interface class>
>   bDeviceSubClass = 0x0000
>   bDeviceProtocol = 0x0000
>   bMaxPacketSize0 = 0x0040
>   idVendor = 0x0bda
>   idProduct = 0x818b
>   bcdDevice = 0x0200
>   iManufacturer = 0x0001  <Realtek>
>   iProduct = 0x0002  <802.11n NIC>
>   iSerialNumber = 0x0003  <00e04c000001>
>   bNumConfigurations = 0x0001
>
>  Configuration index 0
>
>     bLength = 0x0009
>     bDescriptorType = 0x0002
>     wTotalLength = 0x0035
>     bNumInterfaces = 0x0001
>     bConfigurationValue = 0x0001
>     iConfiguration = 0x0000  <no string>
>     bmAttributes = 0x00e0
>     bMaxPower = 0x00fa
>
>     Interface 0
>       bLength = 0x0009
>       bDescriptorType = 0x0004
>       bInterfaceNumber = 0x0000
>       bAlternateSetting = 0x0000
>       bNumEndpoints = 0x0005
>       bInterfaceClass = 0x00ff  <Vendor specific>
>       bInterfaceSubClass = 0x00ff
>       bInterfaceProtocol = 0x00ff
>       iInterface = 0x0002  <802.11n NIC>
>
>      Endpoint 0
>         bLength = 0x0007
>         bDescriptorType = 0x0005
>         bEndpointAddress = 0x0084  <IN>
>         bmAttributes = 0x0002  <BULK>
>         wMaxPacketSize = 0x0200
>         bInterval = 0x0000
>         bRefresh = 0x0000
>         bSynchAddress = 0x0000
>
>      Endpoint 1
>         bLength = 0x0007
>         bDescriptorType = 0x0005
>         bEndpointAddress = 0x0005  <OUT>
>         bmAttributes = 0x0002  <BULK>
>         wMaxPacketSize = 0x0200
>         bInterval = 0x0000
>         bRefresh = 0x0000
>         bSynchAddress = 0x0000
>
>      Endpoint 2
>         bLength = 0x0007
>         bDescriptorType = 0x0005
>         bEndpointAddress = 0x0006  <OUT>
>         bmAttributes = 0x0002  <BULK>
>         wMaxPacketSize = 0x0200
>         bInterval = 0x0000
>         bRefresh = 0x0000
>         bSynchAddress = 0x0000
>
>      Endpoint 3
>         bLength = 0x0007
>         bDescriptorType = 0x0005
>         bEndpointAddress = 0x0087  <IN>
>         bmAttributes = 0x0003  <INTERRUPT>
>         wMaxPacketSize = 0x0040
>         bInterval = 0x0003
>         bRefresh = 0x0000
>         bSynchAddress = 0x0000
>
>      Endpoint 4
>         bLength = 0x0007
>         bDescriptorType = 0x0005
>         bEndpointAddress = 0x0008  <OUT>
>         bmAttributes = 0x0002  <BULK>
>         wMaxPacketSize = 0x0200
>         bInterval = 0x0000
>         bRefresh = 0x0000
>         bSynchAddress = 0x0000
>
> Cheers
> Kris
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFJznXDaB5SgkJgOWemtXc3QSHYPTdFwo6d0AhJsCye8RAT_hw>