supplicant/config: Add a comment mentioning global pmf config value

It looks a bit weird on the first glance that we do nothing when
NM_SETTING_WIRELESS_SECURITY_PMF_OPTIONAL is used. The reason for this
is that we already intialize the global option "pmf" of wpa_supplicant
to "1" (optional), so add a brief comment about that here.
This commit is contained in:
Jonas Dreßler 2021-04-23 16:00:52 +02:00 committed by Beniamino Galvani
parent 6400c33915
commit dcd032055c

View file

@ -1007,6 +1007,9 @@ nm_supplicant_config_add_setting_wireless_security(NMSupplicantConfig *
error))
return FALSE;
/* We set the supplicants global "pmf" config value to "1" (optional),
* so no need to set it network-specific again if PMF_OPTIONAL is set.
*/
if (set_pmf
&& NM_IN_SET(pmf,
NM_SETTING_WIRELESS_SECURITY_PMF_DISABLE,