]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
staging: rtl8712: Introduce auth_algorithm macros
authorDominik Karol Piątkowski <dominik.karol.piatkowski@protonmail.com>
Sat, 12 Oct 2024 16:17:55 +0000 (16:17 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Oct 2024 13:48:53 +0000 (15:48 +0200)
commit90003c7825c0d07d600586e36e9c0dfb1bf635f7
tree681dad7555e0ab8dfe1ca224f3577923c5326e53
parentdcf8c7f335e44aba78900d4f52dd6934a85a5786
staging: rtl8712: Introduce auth_algorithm macros

Currently, auth_algorithm is assigned/compared to using hardcoded
numbers. Some of the lines are commented, some of them are not.

This patch introduces macros that replace numeric assignments and
comparisons of auth_algorithm, increasing readability.

Signed-off-by: Dominik Karol Piątkowski <dominik.karol.piatkowski@protonmail.com>
Tested-by:
Link: https://lore.kernel.org/r/20241012161638.67030-4-dominik.karol.piatkowski@protonmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/mlme_linux.c
drivers/staging/rtl8712/rtl871x_ioctl_linux.c
drivers/staging/rtl8712/rtl871x_ioctl_set.c
drivers/staging/rtl8712/rtl871x_mlme.c
drivers/staging/rtl8712/rtl871x_security.h