wifi: ath12k: use select for CRYPTO_MICHAEL_MIC
authorJames Prestwood <prestwoj@gmail.com>
Mon, 13 Nov 2023 15:35:44 +0000 (07:35 -0800)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 29 Nov 2023 11:25:05 +0000 (13:25 +0200)
Let ath12k select this option automatically which makes building
more intuitive if the user enables this driver (rather than the
driver not building unless CRYPTO_MICHAEL_MIC is explicitly enabled).

Further investigation shows that ath11k and ath12k are the only who use
'depends on' with CRYPTO_MICHAEL_MIC:

./drivers/net/wireless/intel/ipw2x00/Kconfig: select CRYPTO_MICHAEL_MIC
./drivers/net/wireless/intersil/hostap/Kconfig: select CRYPTO_MICHAEL_MIC
./drivers/net/wireless/intersil/orinoco/Kconfig: select CRYPTO_MICHAEL_MIC
./drivers/net/wireless/ath/ath11k/Kconfig: depends on CRYPTO_MICHAEL_MIC
./drivers/net/wireless/ath/ath12k/Kconfig: depends on CRYPTO_MICHAEL_MIC
./drivers/staging/rtl8192e/Kconfig: select CRYPTO_MICHAEL_MIC
./drivers/staging/ks7010/Kconfig: select CRYPTO_MICHAEL_MIC

Signed-off-by: James Prestwood <prestwoj@gmail.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20231113153544.282461-2-prestwoj@gmail.com
drivers/net/wireless/ath/ath12k/Kconfig

index 4f9c514c13e7f04c31949c2ca35ca295b84ff7ad..e135d2b1b61d6675bb6d855e14c8952aa8a28770 100644 (file)
@@ -2,7 +2,7 @@
 config ATH12K
        tristate "Qualcomm Technologies Wi-Fi 7 support (ath12k)"
        depends on MAC80211 && HAS_DMA && PCI
-       depends on CRYPTO_MICHAEL_MIC
+       select CRYPTO_MICHAEL_MIC
        select QCOM_QMI_HELPERS
        select MHI_BUS
        select QRTR