NetBSD-Bugs archive

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

bin/58735: new wpa_supplicant is not working on NetBSD



>Number:         58735
>Category:       bin
>Synopsis:       new wpa_supplicant is not working on NetBSD
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 10 05:15:00 +0000 2024
>Originator:     Martin Husemann
>Release:        NetBSD 10.99.12
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD martins.aprisoft.de 10.99.12 NetBSD 10.99.12 (GENERIC) #247: Wed Oct 9 20:47:53 CEST 2024 martin%martins.aprisoft.de@localhost:/home/martin/current/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:

New wpa_supplicant fails to bring up interfaces because it tries to delete
(hardware) keys that are not supported by our kernel.

The old version had code like:

void wpa_clear_keys(struct wpa_supplicant *wpa_s, const u8 *addr)
{
        int i, max;

#ifdef CONFIG_IEEE80211W
        max = 6;
#else /* CONFIG_IEEE80211W */
        max = 4;
#endif /* CONFIG_IEEE80211W */

and the tried to delete 4 keys (which matches what the kernel can do).
The new code unconditionally tries to delete 6 keys, which makes the kernel
reject the calls for the last two.

>How-To-Repeat:

Try to use wlan.

>Fix:
n/a



Home | Main Index | Thread Index | Old Index