Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ioctl invalid argument



On Wed, Oct 09, 2024 at 05:58:13AM +0000, pin wrote:
> Hi,
> 
> Recently, every time I reboot my laptop or, restart wpa_supplicant I get:
> 
> ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument
> ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument

This is strange - the only way I see it would happen is if the size of 
the ieee80211req_del_key structure in your kernel would differ from the
version wpa_supplicant compiles.

On amd64 for me the kernel uses (as expected) 7 bytes:

gdb netbsd.gdb
[...]
(gdb) p sizeof(struct ieee80211req_del_key)
$1 = 7


and the same is true for wpa_supplicant:

gdb wpa_supplicant
[...]
Reading symbols from wpa_supplicant...
Reading symbols from /usr/libdata/debug//usr/sbin/wpa_supplicant.debug...
(gdb) p sizeof(struct ieee80211req_del_key)
$1 = 7


Are you using some special compiler flags for either the kernel or userland?

Martin


Home | Main Index | Thread Index | Old Index