mirror of
https://github.com/torvalds/linux.git
synced 2024-11-20 11:01:38 +00:00
ath9k: Fix build error
This happens when CONFIG_ATH9K_CHANNEL_CONTEXT is not enabled. ../drivers/net/wireless/ath/ath9k/recv.c: In function ‘ath_rx_ps_beacon’: ../drivers/net/wireless/ath/ath9k/recv.c:553:27: error: ‘struct ath_softc’ has no member named ‘offchannel’ if (sc->cur_chan == &sc->offchannel.chan) ^ ../scripts/Makefile.build:257: recipe for target 'drivers/net/wireless/ath/ath9k/recv.o' failed make[10]: *** [drivers/net/wireless/ath/ath9k/recv.o] Error 1 ../scripts/Makefile.build:404: recipe for target 'drivers/net/wireless/ath/ath9k' failed make[9]: *** [drivers/net/wireless/ath/ath9k] Error 2 Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
44b47a7d48
commit
853854d6b2
@ -550,10 +550,12 @@ static void ath_rx_ps_beacon(struct ath_softc *sc, struct sk_buff *skb)
|
||||
ath_dbg(common, PS,
|
||||
"Reconfigure beacon timers based on synchronized timestamp\n");
|
||||
|
||||
#ifdef CONFIG_ATH9K_CHANNEL_CONTEXT
|
||||
if (ath9k_is_chanctx_enabled()) {
|
||||
if (sc->cur_chan == &sc->offchannel.chan)
|
||||
skip_beacon = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!skip_beacon &&
|
||||
!(WARN_ON_ONCE(sc->cur_chan->beacon.beacon_interval == 0)))
|
||||
|
Loading…
Reference in New Issue
Block a user