[brcm63xx] package the bcm63xx-spi driver
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 410-ath9k-always-compile-ath_radio_-en-dis-able.patch
1 From eb96b22223352ed6446532c2436f301e86970144 Mon Sep 17 00:00:00 2001
2 From: Gabor Juhos <juhosg@openwrt.org>
3 Date: Fri, 6 Mar 2009 10:50:37 +0100
4 Subject: [PATCH] ath9k: always compile ath_radio_{en,dis}able
5
6 ath_radio_{en,dis}able is only compiled if RFKILL is enabled, but it is
7 required by the 'ath9k_wiphy_select' function.
8
9 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
10 ---
11 drivers/net/wireless/ath9k/main.c | 12 ++++++------
12 1 files changed, 6 insertions(+), 6 deletions(-)
13
14 --- a/drivers/net/wireless/ath9k/main.c
15 +++ b/drivers/net/wireless/ath9k/main.c
16 @@ -1090,12 +1090,6 @@ fail:
17 ath_deinit_leds(sc);
18 }
19
20 -#if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE)
21 -
22 -/*******************/
23 -/* Rfkill */
24 -/*******************/
25 -
26 void ath_radio_enable(struct ath_softc *sc)
27 {
28 struct ath_hw *ah = sc->sc_ah;
29 @@ -1172,6 +1166,12 @@ void ath_radio_disable(struct ath_softc
30 ath9k_ps_restore(sc);
31 }
32
33 +#if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE)
34 +
35 +/*******************/
36 +/* Rfkill */
37 +/*******************/
38 +
39 static bool ath_is_rfkill_set(struct ath_softc *sc)
40 {
41 struct ath_hw *ah = sc->sc_ah;