]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: mwifiex: simplify WPA flags setting
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 5 Aug 2024 06:39:13 +0000 (08:39 +0200)
committerKalle Valo <kvalo@kernel.org>
Sat, 10 Aug 2024 07:35:28 +0000 (10:35 +0300)
commiteb84567e7208491cd6733cc867d849ab07dabd67
treeb14cd240531858e00491b9f495e608372a9a4e31
parent4ab9f870a6335af27507d1f3bfb29635d956af48
wifi: mwifiex: simplify WPA flags setting

The WPA flags setting only depends on the wpa_versions bitfield and not
on the AKM suite, so move it out of the switch/case to simplify the code
a bit. Also set bss_config->protocol to zero explicitly. This is done
only to make the code clearer, bss_config has been zero alloced by the
caller, so should be zero already. No functional change intended.

Reviewed-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Acked-by: Brian Norris <briannorris@chromium.org>
Link: https://lore.kernel.org/r/20240723-mwifiex-wpa-psk-sha256-v3-1-025168a91da1@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20240805-mwifiex-wpa-psk-sha256-v4-1-e1eee80508e6@pengutronix.de
drivers/net/wireless/marvell/mwifiex/uap_cmd.c