Skip to content

Commit 01a95b2

Browse files
committed
cfg80211: select CRYPTO_SHA256 if needed
When regulatory database certificates are built-in, they're currently using the SHA256 digest algorithm, so add that to the build in that case. Also add a note that for custom certificates, one may need to add the right algorithms. Reported-by: Florian Fainelli <[email protected]> Tested-by: Florian Fainelli <[email protected]> Signed-off-by: Johannes Berg <[email protected]>
1 parent a13e8d4 commit 01a95b2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

net/wireless/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ config CFG80211
2020
tristate "cfg80211 - wireless configuration API"
2121
depends on RFKILL || !RFKILL
2222
select FW_LOADER
23+
# may need to update this when certificates are changed and are
24+
# using a different algorithm, though right now they shouldn't
25+
# (this is here rather than below to allow it to be a module)
26+
select CRYPTO_SHA256 if CFG80211_USE_KERNEL_REGDB_KEYS
2327
---help---
2428
cfg80211 is the Linux wireless LAN (802.11) configuration API.
2529
Enable this if you have a wireless device.
@@ -113,6 +117,9 @@ config CFG80211_EXTRA_REGDB_KEYDIR
113117
certificates like in the kernel sources (net/wireless/certs/)
114118
that shall be accepted for a signed regulatory database.
115119

120+
Note that you need to also select the correct CRYPTO_<hash> modules
121+
for your certificates, and if cfg80211 is built-in they also must be.
122+
116123
config CFG80211_REG_CELLULAR_HINTS
117124
bool "cfg80211 regulatory support for cellular base station hints"
118125
depends on CFG80211_CERTIFICATION_ONUS

0 commit comments

Comments
 (0)