[Bug 247528] rtwn(4) RTL8192EU usb wifi dongle can't connect to AP

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 13 Jan 2023 07:09:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247528

--- Comment #37 from titus m <titus@edc.ro> ---
i tested AP mode/open, set up dhcpd, forwarding and connected with my phone
got about 20Mb/s up/down on fast.com (a netflix service) which is inline with
what i get in sta mode

my dongle still crashes on ifconfig down/up so i have modified power_off
the last 5 setbits calls from r92e_power_off
        /* SOP option to disable BG/MB. */
        /* Unlock small LDO Register. */
        /* Disable small LDO. */
        /* Enable WL suspend. */
        /* Enable SW LPS. */
changed to 
       /* Enable WL suspend. */
       /* SOP option to disable BG/MB. */       
the other 3 i commented out and it works this way
otherwise the power_on bombs in various places and the device gets disconnected
...
Jan 12 08:35:38 hp430 kernel: rtwn0: rtwn_do_request: control request failed,
USB_ERR_IOERROR (retries left: 9).....
Jan 12 08:35:51 hp430 kernel: ugen0.3: <Realtek 802.11n NIC> at usbus0
(disconnected)
Jan 12 08:35:51 hp430 kernel: rtwn0: at uhub0, port 2, addr 2 (disconnected)
...
after that i have to reinsert the dongle, or power cycle the host
a reboot won't fix it, it remains dead

but if this only ifconfig down/up only affects my setup it can stay as it is
I don't really need to ifconfig down/up remotely and otherwise i can remove /
reinsert

-- 
You are receiving this mail because:
You are on the CC list for the bug.