mac80211: fixed missing cfg80211 dependency on kmod-rfkill
authorOldřich Jedlička <oldium.pro@gmail.com>
Sun, 7 Nov 2021 19:30:25 +0000 (20:30 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 29 Nov 2021 21:11:15 +0000 (22:11 +0100)
commit8d6a534cc12cb4b4d9f0f21324cb752365a71743
tree6430e0c8de6a398a5a9c07f2f57bf93c83ba0c54
parent040c02497c56c17d8cf04f9b8b535967d7c3b10e
mac80211: fixed missing cfg80211 dependency on kmod-rfkill

When compiling with CONFIG_USE_RFKILL=y, the build fails and mentions that
dependency on kmod-rfkill is missing, which is correct [1]. Add this
dependency to the Makefile.

Depend on +USE_RFKILL and not PACKAGE_kmod-rfkill, because it forces
selection of kmod-rfkill package. Other combinations in DEPENDS like
USE_RFKILL:kmod-rfkill or (+)PACKAGE_kmod-rfkill:kmod-rfkill do not force
selection of kmod-rfkill package.

The kmod-rfkill package itself depends on USE_RFKILL, so with +USE_RFKILL
in kmod-cfg80211 package it is not possible to select wrong combination of
packages.

[1] https://linux-wireless.vger.kernel.narkive.com/m8JY9Iks/cfg80211-depends-on-rfkill-or-not

Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
package/kernel/mac80211/Makefile