diff options
author | Alexis Lothoré <alexis.lothore@bootlin.com> | 2024-02-15 15:13:53 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2024-02-21 20:54:34 +0200 |
commit | 00413dd3641408f5728694d794478613fbe06c23 (patch) | |
tree | 61cfa3b476513e7d6b10752b321683afe354abe3 /net/unix/af_unix.c | |
parent | 81830c8f809c01f3780dc33f7d951be8e146ced1 (diff) | |
download | linux-00413dd3641408f5728694d794478613fbe06c23.tar.gz linux-00413dd3641408f5728694d794478613fbe06c23.tar.bz2 linux-00413dd3641408f5728694d794478613fbe06c23.zip |
wifi: wilc1000: remove AKM suite be32 conversion for external auth request
The driver currently raises the following sparse warning:
[...] cfg80211.c:360:42: warning: incorrect type in assignment (different
base types)
[...] cfg80211.c:360:42: expected unsigned int key_mgmt_suite
[...] cfg80211.c:360:42: got restricted __be32 [usertype]
CHECK drivers/net/wireless/microchip/wilc1000/netdev.c
This conversion was needed because historically the external supplicant
(observed with wpa_supplicant) expects AKM suite as big endian in
NL80211_CMD_EXTERNAL_AUTH message when the AKM suite is WLAN_AKM_SUITE_SAE.
This is not needed anymore:
- new (to be released) versions of wpa_supplicant now reads it in host
endian _while_ keeping compatibility for older drivers
- for new drivers used with current/old wpa_supplicant, this conversion has
been added to nl80211 to force big endian when the AKM suite is
WLAN_AKM_SUITE_SAE
Remove this not-needed-anymore conversion to fix the sparse warning.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202308290615.lUTIgqUl-lkp@intel.com/
Tested-on: WILC1000 hwB SPI WILC_WIFI_FW_REL_16_1-13452
Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240215-nl80211_fix_akm_suites_endianness-v1-2-57e902632f9d@bootlin.com
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions