Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rtl8192se won't authenticate when using wpa_supplicant
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
axeax
n00b
n00b


Joined: 07 Apr 2019
Posts: 3

PostPosted: Sun Apr 07, 2019 11:21 pm    Post subject: rtl8192se won't authenticate when using wpa_supplicant Reply with quote

Hi, I've already read previously-posted similar problems, but unfortunately this didn't help me :/ I'm basically stuck without connection because whenever I run wpa_supplicant on any SSID it fails to authenticate. It seems like it actually manages to send the request packet, but then it gets errors. When this happens, dmesg basically follows this pattern:
wlp3s0: send auth to 1c:49:7b:5f:3e:7a
rtl8192se: Set FW Cmd fail!
This, combined with the fact that authentication works in the livecd, makes me think that this may be a driver/fw issue. I (think) I have linux-firmware installed, and the driver was selected to be builtin from menuconfig, before compiling the kernel.
Any suggestion? Should I upload any log?
Thanks in advance for your help!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42563
Location: 56N 3W

PostPosted: Sun Apr 07, 2019 11:50 pm    Post subject: Reply with quote

axeax,

Welcome to gentoo.

Lets start with dmesg for your gentoo install that fails to authenticate.
You will need to save it to a file as its the kernel log, then put in onto a pastebin, using the liveCD, as its too big to fit into a past.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
axeax
n00b
n00b


Joined: 07 Apr 2019
Posts: 3

PostPosted: Mon Apr 08, 2019 12:57 pm    Post subject: Reply with quote

Thank you NeddySeagoon, here is my pastebin. dmesg was run after booting up and issuing wpa_supplicant.
Back to top
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 7895
Location: ~Brussels - Belgique

PostPosted: Mon Apr 08, 2019 1:11 pm    Post subject: Reply with quote

Code:
[    2.376200] rtl8192se: Driver for Realtek RTL8192SE/RTL8191SE
               Loading firmware rtlwifi/rtl8192sefw.bin
[    2.376516] rtl8192se 0000:03:00.0: Direct firmware load for rtlwifi/rtl8192sefw.bin failed with error -2
[    2.376761] rtl8192se: Firmware rtlwifi/rtl8192sefw.bin not available


Hi,

Try to emerge linux-firmware in order to provide the missing firmware
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42563
Location: 56N 3W

PostPosted: Mon Apr 08, 2019 1:34 pm    Post subject: Reply with quote

axeax,

Your firmware attempts to load here.
Code:
[    2.376200] rtl8192se: Driver for Realtek RTL8192SE/RTL8191SE
               Loading firmware rtlwifi/rtl8192sefw.bin
[    2.376516] rtl8192se 0000:03:00.0: Direct firmware load for rtlwifi/rtl8192sefw.bin failed with error -2
[    2.376761] rtl8192se: Firmware rtlwifi/rtl8192sefw.bin not available


Well before the root filesystem is mounted, here.
Code:
[    5.477540] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)


Your wifi driver is in two parts. The kernel driver and the firmware that gets loaded into the device.
The firmware must be available when the kernel driver initalises.
That means that there are four combinations, only two of which work.

Both the kernel driver and firmware are built into the kernel binary
Both the kernel driver and firmware are loaded after root is mounted.
You have the driver in the kernel binary and the firmware missing from the kernel.

The firmware you need is provided by linux-firmware, that's required but not sufficient
You need to rebuild your kernel either to include the firmware or to make rtlwifi a loadable module.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
axeax
n00b
n00b


Joined: 07 Apr 2019
Posts: 3

PostPosted: Mon Apr 08, 2019 4:23 pm    Post subject: Reply with quote

I had linux-firmware already installed, so I opted to inlcude the firmware in the kernel, and I did so by doing menuconfig->Device Drivers->Generic Driver Options->Include in-kernel firmware blobs in kernel library and typing rtlwifi/rtl8192sefw.bin as string.
As a result, I am now able to use wpa_supplicant and ping seems to work correctly. Huge thanks to both of you!
The only "problem" now seems to be that dmesg returns a "rtl8192se: switch case 0x5e not processed" line - however everything still seems to work fine for now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum