diff options
author | Bob Copeland <me@bobcopeland.com> | 2011-02-15 09:19:28 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-02-18 16:53:20 -0500 |
commit | 12873372fe1f201813f1cc750a8af7d9193f445c (patch) | |
tree | 51fa98e021a0aed1b6db17c603308b4456735a85 | |
parent | 8c68bd401d423c81fd4bfc19c625180528e4a5e8 (diff) |
ath5k: move external function definitions to a header file
Johannes pointed out the mess of external function prototypes in the
mac80211-ops.c file. Woe to anyone who changes these functions...
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Cc: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath5k/ath5k.h | 20 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/mac80211-ops.c | 17 |
2 files changed, 20 insertions, 17 deletions
diff --git a/drivers/net/wireless/ath/ath5k/ath5k.h b/drivers/net/wireless/ath/ath5k/ath5k.h index e43175a89d67..70abb61e9eff 100644 --- a/drivers/net/wireless/ath/ath5k/ath5k.h +++ b/drivers/net/wireless/ath/ath5k/ath5k.h | |||
@@ -1158,6 +1158,26 @@ void ath5k_hw_deinit(struct ath5k_hw *ah); | |||
1158 | int ath5k_sysfs_register(struct ath5k_softc *sc); | 1158 | int ath5k_sysfs_register(struct ath5k_softc *sc); |
1159 | void ath5k_sysfs_unregister(struct ath5k_softc *sc); | 1159 | void ath5k_sysfs_unregister(struct ath5k_softc *sc); |
1160 | 1160 | ||
1161 | /* base.c */ | ||
1162 | struct ath5k_buf; | ||
1163 | struct ath5k_txq; | ||
1164 | |||
1165 | void set_beacon_filter(struct ieee80211_hw *hw, bool enable); | ||
1166 | bool ath_any_vif_assoc(struct ath5k_softc *sc); | ||
1167 | int ath5k_tx_queue(struct ieee80211_hw *hw, struct sk_buff *skb, | ||
1168 | struct ath5k_txq *txq); | ||
1169 | int ath5k_init_hw(struct ath5k_softc *sc); | ||
1170 | int ath5k_stop_hw(struct ath5k_softc *sc); | ||
1171 | void ath5k_mode_setup(struct ath5k_softc *sc, struct ieee80211_vif *vif); | ||
1172 | void ath5k_update_bssid_mask_and_opmode(struct ath5k_softc *sc, | ||
1173 | struct ieee80211_vif *vif); | ||
1174 | int ath5k_chan_set(struct ath5k_softc *sc, struct ieee80211_channel *chan); | ||
1175 | void ath5k_beacon_update_timers(struct ath5k_softc *sc, u64 bc_tsf); | ||
1176 | int ath5k_beacon_update(struct ieee80211_hw *hw, struct ieee80211_vif *vif); | ||
1177 | void ath5k_beacon_config(struct ath5k_softc *sc); | ||
1178 | void ath5k_txbuf_free_skb(struct ath5k_softc *sc, struct ath5k_buf *bf); | ||
1179 | void ath5k_rxbuf_free_skb(struct ath5k_softc *sc, struct ath5k_buf *bf); | ||
1180 | |||
1161 | /*Chip id helper functions */ | 1181 | /*Chip id helper functions */ |
1162 | const char *ath5k_chip_name(enum ath5k_srev_type type, u_int16_t val); | 1182 | const char *ath5k_chip_name(enum ath5k_srev_type type, u_int16_t val); |
1163 | int ath5k_hw_read_srev(struct ath5k_hw *ah); | 1183 | int ath5k_hw_read_srev(struct ath5k_hw *ah); |
diff --git a/drivers/net/wireless/ath/ath5k/mac80211-ops.c b/drivers/net/wireless/ath/ath5k/mac80211-ops.c index 36a51995a7bc..a60a726a140c 100644 --- a/drivers/net/wireless/ath/ath5k/mac80211-ops.c +++ b/drivers/net/wireless/ath/ath5k/mac80211-ops.c | |||
@@ -48,23 +48,6 @@ | |||
48 | 48 | ||
49 | extern int ath5k_modparam_nohwcrypt; | 49 | extern int ath5k_modparam_nohwcrypt; |
50 | 50 | ||
51 | /* functions used from base.c */ | ||
52 | void set_beacon_filter(struct ieee80211_hw *hw, bool enable); | ||
53 | bool ath_any_vif_assoc(struct ath5k_softc *sc); | ||
54 | int ath5k_tx_queue(struct ieee80211_hw *hw, struct sk_buff *skb, | ||
55 | struct ath5k_txq *txq); | ||
56 | int ath5k_init_hw(struct ath5k_softc *sc); | ||
57 | int ath5k_stop_hw(struct ath5k_softc *sc); | ||
58 | void ath5k_mode_setup(struct ath5k_softc *sc, struct ieee80211_vif *vif); | ||
59 | void ath5k_update_bssid_mask_and_opmode(struct ath5k_softc *sc, | ||
60 | struct ieee80211_vif *vif); | ||
61 | int ath5k_chan_set(struct ath5k_softc *sc, struct ieee80211_channel *chan); | ||
62 | void ath5k_beacon_update_timers(struct ath5k_softc *sc, u64 bc_tsf); | ||
63 | int ath5k_beacon_update(struct ieee80211_hw *hw, struct ieee80211_vif *vif); | ||
64 | void ath5k_beacon_config(struct ath5k_softc *sc); | ||
65 | void ath5k_txbuf_free_skb(struct ath5k_softc *sc, struct ath5k_buf *bf); | ||
66 | void ath5k_rxbuf_free_skb(struct ath5k_softc *sc, struct ath5k_buf *bf); | ||
67 | |||
68 | /********************\ | 51 | /********************\ |
69 | * Mac80211 functions * | 52 | * Mac80211 functions * |
70 | \********************/ | 53 | \********************/ |