mirror_ubuntu-kernels/drivers/net/wireless
Arnd Bergmann b64acb28da ath9k: fix build error with LEDS_CLASS=m
When CONFIG_ATH9K is built-in but LED support is in a loadable
module, both ath9k drivers fails to link:

x86_64-linux-ld: drivers/net/wireless/ath/ath9k/gpio.o: in function `ath_deinit_leds':
gpio.c:(.text+0x36): undefined reference to `led_classdev_unregister'
x86_64-linux-ld: drivers/net/wireless/ath/ath9k/gpio.o: in function `ath_init_leds':
gpio.c:(.text+0x179): undefined reference to `led_classdev_register_ext'

The problem is that the 'imply' keyword does not enforce any dependency
but is only a weak hint to Kconfig to enable another symbol from a
defconfig file.

Change imply to a 'depends on LEDS_CLASS' that prevents the incorrect
configuration but still allows building the driver without LED support.

The 'select MAC80211_LEDS' is now ensures that the LED support is
actually used if it is present, and the added Kconfig dependency
on MAC80211_LEDS ensures that it cannot be enabled manually when it
has no effect.

Fixes: 197f466e93 ("ath9k_htc: Do not select MAC80211_LEDS by default")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210125113654.2408057-1-arnd@kernel.org
2021-01-28 09:29:34 +02:00
..
admtek adm8211: fix error return code in adm8211_probe() 2020-12-07 18:35:43 +02:00
ath ath9k: fix build error with LEDS_CLASS=m 2021-01-28 09:29:34 +02:00
atmel atmel: convert tasklets to use new tasklet_setup() API 2020-08-27 16:22:02 +03:00
broadcom brcmfmac: remove redundant assignment to pointer 'entry' 2020-12-07 18:36:11 +02:00
cisco airo: Fix fall-through warnings for Clang 2020-12-08 10:06:53 +02:00
intel iwlwifi: queue: bail out on invalid freeing 2021-01-25 15:59:27 +02:00
intersil orinoco: Annotate ezusb_read_ltv() 2020-11-24 17:01:19 +02:00
marvell mwifiex: Fix possible buffer overflows in mwifiex_cmd_802_11_ad_hoc_start 2020-12-08 09:33:27 +02:00
mediatek mt7601u: fix kernel crash unplugging the device 2021-01-25 16:02:52 +02:00
microchip wilc1000: changes for SPI communication stall issue found with Iperf 2020-12-10 20:48:13 +02:00
quantenna wireless-drivers-next patches for v5.11 2020-12-04 10:56:37 -08:00
ralink rt2x00: Fix fall-through warnings for Clang 2020-12-08 10:06:56 +02:00
realtek rtlwifi: rise completion at the last step of firmware callback 2020-12-17 18:37:47 +02:00
rsi rsi: fix error return code in rsi_reset_card() 2020-11-24 17:04:58 +02:00
st cw1200: txrx: convert comma to semicolon 2020-12-10 20:49:14 +02:00
ti wl1251: remove trailing semicolon in macro definition 2020-12-02 21:39:20 +02:00
zydas zd1201: Fix fall-through warnings for Clang 2020-12-08 10:06:59 +02:00
Kconfig wireless: remove CONFIG_WIRELESS_WDS 2020-11-10 09:39:08 +01:00
mac80211_hwsim.c genetlink: move to smaller ops wherever possible 2020-10-02 19:11:11 -07:00
mac80211_hwsim.h
Makefile wilc1000: move wilc driver out of staging 2020-06-26 08:46:46 +03:00
ray_cs.c ray_cs: Use fallthrough pseudo-keyword 2020-11-07 13:30:09 +02:00
ray_cs.h
rayctl.h
rndis_wlan.c net: usb: switch to dev_get_tstats64 and remove usbnet_get_stats64 alias 2020-11-12 14:58:27 -08:00
virt_wifi.c
wl3501_cs.c wl3501_cs: Fix misspelling and provide missing documentation 2020-11-07 18:05:36 +02:00
wl3501.h