Bug 244902 - rtwn(4): Fails to associate on USB3, but succeeds on USB2
Summary: rtwn(4): Fails to associate on USB3, but succeeds on USB2
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 12.1-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-usb (Nobody)
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2020-03-19 08:04 UTC by Ruairi
Modified: 2020-03-24 08:15 UTC (History)
2 users (show)

See Also:


Attachments
gzip'd tarball containing all files (31.89 KB, application/x-gzip)
2020-03-19 08:04 UTC, Ruairi
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ruairi 2020-03-19 08:04:41 UTC
Created attachment 212519 [details]
gzip'd tarball containing all files

Hey,

I have a TP-WN823N V3 USB Wi-Fi adapter connected via USB3.0. This module refused to work on bare metal, but worked happily when connected to VM for local testing. After some investigation, it seems that the USB mode affects the drivers behaviour - USB3.0 controller and the driver loads, but refuses to associate with the SSID. However switch to a USB2.0 controller, and the driver behaves correctly. Specifically, the failure scenario here is that the driver ends up calling r92e_power_off and the module powers off completely, and needs to be re-seated. 

I setup a test bed, a fresh install of FreeBSD 12.1.

which I've taken with the following enabled:

sysctl hw.usb.ehci.iaadbug=1
sysctl hw.usb.ehci.debug=1
sysctl hw.usb.xhci.debug=1

Attached are two sets of logs;

On successful association: 
- freebsd_syslog_success.txt - /var/log/messages syslog taken with 
- freebsd_cli_success.txt - loading the driver and calling wpa_supplicant(with timestamp)


On unsuccessful association: 
- freebsd_syslog_failure.txt - /var/log/messages syslog taken with 
- freebsd_cli_failure.txt - loading the driver and calling wpa_supplicant(with timestamp)


I'm not sure how to further debug this issue, so I could use a little help please.

/Ruairi