wifi: rt2x00: fix CRC_CCITT dependency
authorArnd Bergmann <arnd@arndb.de>
Thu, 31 Jul 2025 07:58:33 +0000 (09:58 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 26 Aug 2025 11:44:28 +0000 (13:44 +0200)
commitf64768bec0d57988782d26d1ea7ae21f959309dd
tree9295889df46397ca75c267939271a288dabc3a3f
parent2d52c9e43a48387a323ab6a4fed755d55040e625
wifi: rt2x00: fix CRC_CCITT dependency

Compile-testing this driver on Arm platforms shows a link failure
when the CRC functions are not part of the kernel:

x86_64-linux-ld: drivers/net/wireless/ralink/rt2x00/rt2800lib.o: in function `rt2800_check_firmware':
rt2800lib.c:(.text+0x20e5): undefined reference to `crc_ccitt'

Move the select statement to the correct Kconfig symbol to match
the call site.

Fixes: 311b05e235cf ("wifi: rt2x00: add COMPILE_TEST")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://patch.msgid.link/20250731075837.1969136-1-arnd@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/ralink/rt2x00/Kconfig