[PATCH 2/2] WPA: fix PROTO field being printed incorrectly as WPA VERSION in debug logs

Jouni Malinen j at w1.fi
Mon Oct 6 03:08:30 PDT 2025


On Thu, Jul 31, 2025 at 02:17:02PM +0530, Gokul Sivakumar wrote:
> During SET AP operation, the WPA proto (WPA/RSN) field is incorrectly
> printed as "wpa_version", while the actual WPA version is not printed. So
> add a new debug print for the bitmask of AP supported WPA versions (1,2,3).
> 
> And since the AP param member wpa_driver_ap_params::wpa_version actually
> indicates the proto field and not the WPA version, rename this member from
> "wpa_version => wpa_proto", to make this consistent with the struct member
> wpa_driver_associate_params::wpa_proto currently used during STA CONNECT.

Renaming of the variable in the semi-stable driver.h API does not seem
necessary and even if it were to be renamed, that renaming should be in
a separate patch that does not change anything else.

As far as the debug print from nl80211 is concerned, I moved the change
from here to patch 1 to cover the part about being consistent between
STA and AP modes and applied that modified patch 1.
 
-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list