OrangePi_CM5/drivers/net/wireless/ath/ath5k
Arnd Bergmann fbca14abc1 ath5k: fix building with LEDS=m
[ Upstream commit fb8c3a3c52400512fc8b3b61150057b888c30b0d ]

Randconfig builds still show a failure for the ath5k driver,
similar to the one that was fixed for ath9k earlier:

WARNING: unmet direct dependencies detected for MAC80211_LEDS
  Depends on [n]: NET [=y] && WIRELESS [=y] && MAC80211 [=y] && (LEDS_CLASS [=m]=y || LEDS_CLASS [=m]=MAC80211 [=y])
  Selected by [m]:
  - ATH5K [=m] && NETDEVICES [=y] && WLAN [=y] && WLAN_VENDOR_ATH [=y] && (PCI [=y] || ATH25) && MAC80211 [=y]
net/mac80211/led.c: In function 'ieee80211_alloc_led_names':
net/mac80211/led.c:34:22: error: 'struct led_trigger' has no member named 'name'
   34 |         local->rx_led.name = kasprintf(GFP_KERNEL, "%srx",
      |                      ^

Copying the same logic from my ath9k patch makes this one work
as well, stubbing out the calls to the LED subsystem.

Fixes: b64acb28da83 ("ath9k: fix build error with LEDS_CLASS=m")
Fixes: 72cdab8087 ("ath9k: Do not select MAC80211_LEDS by default")
Fixes: 3a078876ca ("ath5k: convert LED code to use mac80211 triggers")
Link: https://lore.kernel.org/all/20210722105501.1000781-1-arnd@kernel.org/
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210920122359.353810-1-arnd@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-10-13 10:04:25 +02:00
..
Kconfig
…
Makefile
…
ahb.c
…
ani.c
…
ani.h
…
ath5k.h
…
attach.c
…
base.c
…
base.h
…
caps.c
…
debug.c
…
debug.h
…
desc.c
…
desc.h
…
dma.c
…
eeprom.c
…
eeprom.h
…
gpio.c
…
initvals.c
…
led.c
…
mac80211-ops.c
…
pci.c
…
pcu.c
…
phy.c
…
qcu.c
…
reg.h
…
reset.c
…
rfbuffer.h
…
rfgain.h
…
rfkill.c
…
sysfs.c
…
trace.h
…