CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2026/11/26 09:55:17

Modified files:
        sbin/ifconfig  : ifconfig.8 ifconfig.c 

Log message:
Make ifconfig send WPA parameters to the kernel in one ioctl call.

When a sequence of WPA parameters needs to be set, instead of sending
each parameter via a separate get/set ioctl dance to the kernel, ifconfig
now collects all parameters and sends one ioctl to the kernel when done.

Setting any WPA parameter now enables WPA on the interface. Previously,
only the wpa, wpakey, and wpaakms "802.1x" commands enabled WPA.
As before, -wpa and -wpakey disable WPA and clear the WPA configuration.
Fixes misbehaviour where the wpaakms command would disable WPA and clear
the WPA configuration unless AKM "802.1x" was used.
Found by Spiros Thanasoulas of Radically Open Security while reviewing
and testing my WPA3 support patch.

Reset WPA AKMs to defaults if the WPA protocol version is changed and
no AKMs are provided on the subsequent command line. This will keep us
happy once WPA3 appears in the future.

ok armani@ phessler@

Reply via email to