From owner-freebsd-usb@freebsd.org Thu Feb 20 02:08:53 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0471A24E2FF for ; Thu, 20 Feb 2020 02:08:53 +0000 (UTC) (envelope-from netsick@gmail.com) Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48NJ0z4DFsz3KZ1; Thu, 20 Feb 2020 02:08:51 +0000 (UTC) (envelope-from netsick@gmail.com) Received: by mail-ot1-x32a.google.com with SMTP id h9so2193379otj.11; Wed, 19 Feb 2020 18:08:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=rAMkAn8eJsv9Lzg3aYwp6e4wONl+D1xUdwSr59EzBAY=; b=CXaliu0oHcB9AIXz05x11ye1GrjqCxcTVnnyTUvbag/2j9FkubiPnY353pD+IJjkC9 pGyPQNGOfDR86orFFUZ/Zgx9RfYWu8y0nAk1HunvomQ+n2YeUqPWDrNzZpdJabMYVuXB 8jmD8GiL2PmMJJgZOceGJ0BSLmz6ixGpnHYZ3gvszMckQnuqgGNF8evb9d14Ox6flQW3 e+yaCRQP8URVPAXLhQXZHT1pjx0o8YXxAZ2IUn+1ecS+NxEeAzVT5UTIjKhbQbYHdauU n/C7m05S4XTsfDFJ42dByNaXVSu+n2c6XnOmuX+SrawoxLzbaCS/2+fR8TrXPPKkvWlF koOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=rAMkAn8eJsv9Lzg3aYwp6e4wONl+D1xUdwSr59EzBAY=; b=HeYph4fEVuj9C19FvB1962SnXPsxHGzQeR9iNbzz2+TZ6HWgXQaQDASBFf5g8zs/eg 5FDM8Fzw/363nPOEFwSH+sMWTb/efvPwVkI8Hw5CREs6eNtG1wapqVx+JG3vsm9+6oLG xg6ta2l2ydO7CSotdZCIXBgP1dPrNA9pCIERQ+aIWlnbpoycvn/oF9b5rHISKuxlOYVO 2QrGEsHtj/dwMxjq/NYCRhZ+UER9F1Z8mzc9iuOzGDGPqiCpJsVJoGlLgNtzox3omaCh NEfItsO03y7vkDOAX7YCT/T8CgNSwlUIk2FKCyoAfpGlpttZeCSuDpp3rtc14SrRx2VJ /QIg== X-Gm-Message-State: APjAAAVTMD99prJBZxEsIin3G0baD2tdp4RRw/vyHXpvF55PN0ytihxE +QtScjPqCKDp/8u51I2qPWl8Tx7O7OS28LaqeB6w7g== X-Google-Smtp-Source: APXvYqxosskkTQrt7dVdQ8CCeDfd0y+xbVUN0XB1kjmn8xnRVeQVcJMOVQVWyOwKVF24/suhuJPQcC47s3fuZTYpHSA= X-Received: by 2002:a9d:65cb:: with SMTP id z11mr20541916oth.348.1582164529507; Wed, 19 Feb 2020 18:08:49 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Kris G Date: Thu, 20 Feb 2020 12:08:34 +1000 Message-ID: Subject: Re: RTL8192EU USB Wifi error: rtwn0: r92e_power_off: failed to block Tx queues To: freebsd-usb@freebsd.org, Kevin Lo X-Rspamd-Queue-Id: 48NJ0z4DFsz3KZ1 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=CXaliu0o; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of netsick@gmail.com designates 2607:f8b0:4864:20::32a as permitted sender) smtp.mailfrom=netsick@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; IP_SCORE(0.00)[ip: (-8.12), ipnet: 2607:f8b0::/32(-1.89), asn: 15169(-1.67), country: US(-0.05)]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[a.2.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Feb 2020 02:08:53 -0000 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 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: 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: 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: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) > pwr=ON (500mA) > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0210 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0bda > idProduct = 0x818b > bcdDevice = 0x0200 > iManufacturer = 0x0001 > 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 > bmAttributes = 0x00e0 > bMaxPower = 0x00fa > > Interface 0 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0000 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0005 > bInterfaceClass = 0x00ff > bInterfaceSubClass = 0x00ff > bInterfaceProtocol = 0x00ff > iInterface = 0x0002 <802.11n NIC> > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0084 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0005 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 2 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0006 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 3 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0087 > bmAttributes = 0x0003 > wMaxPacketSize = 0x0040 > bInterval = 0x0003 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 4 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0008 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Cheers > Kris > >