Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950443 - >=sys-kernel/gentoo-kernel-bin-6.12 has CONFIG_CFG80211_WEXT disabled
Summary: >=sys-kernel/gentoo-kernel-bin-6.12 has CONFIG_CFG80211_WEXT disabled
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Distribution Kernel Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-01 13:21 UTC by Klaus Ethgen
Modified: 2025-03-04 16:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus Ethgen 2025-03-01 13:21:02 UTC
The ioctl SIOCGIWAP is important for getting socket informations. For example, /sbin/iwgetid from net-wireless/wireless-tools, which I heavily depend on, is not able to get accesspoint or other informations from the network anymore.



Reproducible: Always

Steps to Reproduce:
1. strace iwgetid wlan0 --scheme --ap

Actual Results:  
+++ exited with 255 +++

Expected Results:  
Should give the accesspoint informations and exit 0

The former kernel, 6.6.74, was working great. Unfortunable it is not botable anymore as the systemd rott, linking all to /usr has happened even that I have a split-user profile!
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-01 13:27:06 UTC
(In reply to Klaus Ethgen from comment #0)
> The ioctl SIOCGIWAP is important for getting socket informations. For
> example, /sbin/iwgetid from net-wireless/wireless-tools, which I heavily
> depend on, is not able to get accesspoint or other informations from the
> network anymore.
> 

I can't immediately see what would've caused this (can't spot any relevant commits). I guess some default config option may have changed. 

> 
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. strace iwgetid wlan0 --scheme --ap
> 
> Actual Results:  
> +++ exited with 255 +++

Showing the actual bad strace line may be helpful.

> 
> Expected Results:  
> Should give the accesspoint informations and exit 0
> 
> The former kernel, 6.6.74, was working great. Unfortunable it is not botable
> anymore as the systemd rott, linking all to /usr has happened even that I
> have a split-user profile!

See https://www.gentoo.org/support/news-items/2024-01-05-usr-initramfs.html. Not really anything to do with merged-usr or split-usr.
Comment 2 Klaus Ethgen 2025-03-01 16:12:09 UTC
Well, sorry about not posting the full strace. Now I am unable to reproduce as I had to block that kernel altogether.

But the return of that ioctl was -ENOIOCTLCMD.
Comment 3 Klaus Ethgen 2025-03-02 10:43:33 UTC
I was wrong about the returned error.

Today, I removed the masks and installed the broken kernel again. Here is the relevant part of the strace:
socket(AF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
ioctl(3, SIOCGIWAP, 0x7fff6660bb70)     = -1 EOPNOTSUPP (Die Operation wird nicht unterstützt)
close(3)                                = 0
exit_group(-1)                          = ?
+++ exited with 255 +++

Please note that the EOPNOTSUPP is undokumented in the manual of that system call!
Comment 4 Mike Gilbert gentoo-dev 2025-03-03 16:30:00 UTC
I believe that ioctl is part of the WEXT legacy interface. You would need to rebuild the kernel with CONFIG_CFG80211_WEXT enabled to use it with modern kernels.

Alternatively, migrate to more modern userspace tools.
Comment 5 Klaus Ethgen 2025-03-03 20:09:46 UTC
I have no problem with migrating to other tool, given that I can extract the same information with them.

But unfortunately, iwgetid is the only one I found, that can extract ssid or accesspoint from a wireless interface.

The question might be, why this config is disabled between 6.6 and 6.12?
Comment 6 Mike Gilbert gentoo-dev 2025-03-03 22:09:50 UTC
In 6.6, CFG80211_WEXT requires the RTL8723BS driver.

In 6.12, the RTL8723BS driver no longer requires it, so the option defaults to disabled.

Upstream kernel change:

https://web.git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=71cea1fe415681ad00a9550c2ed107b8da16d5b6
Comment 7 Mike Gilbert gentoo-dev 2025-03-03 22:12:00 UTC
(In reply to Klaus Ethgen from comment #5)
> I have no problem with migrating to other tool, given that I can extract the
> same information with them.

I assume you should be able to get the information using some invocation of the "iw" tool. If not, you could request it be added as a feature.
Comment 8 Mike Gilbert gentoo-dev 2025-03-03 22:12:37 UTC
(In reply to Mike Gilbert from comment #6)
> In 6.6, CFG80211_WEXT requires the RTL8723BS driver.

This should say that RTL8723BS requires CFG80211_WEXT.