diff options
author | Pavel Roskin <proski@gnu.org> | 2011-07-21 13:36:28 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-22 09:51:14 -0400 |
commit | fabba0480637add5411b1dc59603cc71e3505a69 (patch) | |
tree | be0ef4e4f52ec53fd2ef7cedd2b0ff046bdfc99a /drivers/net/wireless/ath | |
parent | 24aad3f4c8a5c0a7514733fb9fa70994e24a5707 (diff) |
ath5k: merge ath5k_{init, deinit}_hw() with their thin wrappers
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/ath5k.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/base.c | 10 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/mac80211-ops.c | 14 |
3 files changed, 6 insertions, 22 deletions
diff --git a/drivers/net/wireless/ath/ath5k/ath5k.h b/drivers/net/wireless/ath/ath5k/ath5k.h index 028958494976..c6fb44cea0bf 100644 --- a/drivers/net/wireless/ath/ath5k/ath5k.h +++ b/drivers/net/wireless/ath/ath5k/ath5k.h | |||
@@ -1372,8 +1372,8 @@ void ath5k_set_beacon_filter(struct ieee80211_hw *hw, bool enable); | |||
1372 | bool ath5k_any_vif_assoc(struct ath5k_hw *ah); | 1372 | bool ath5k_any_vif_assoc(struct ath5k_hw *ah); |
1373 | void ath5k_tx_queue(struct ieee80211_hw *hw, struct sk_buff *skb, | 1373 | void ath5k_tx_queue(struct ieee80211_hw *hw, struct sk_buff *skb, |
1374 | struct ath5k_txq *txq); | 1374 | struct ath5k_txq *txq); |
1375 | int ath5k_init_hw(struct ath5k_hw *ah); | 1375 | int ath5k_start(struct ieee80211_hw *hw); |
1376 | int ath5k_stop_hw(struct ath5k_hw *ah); | 1376 | void ath5k_stop(struct ieee80211_hw *hw); |
1377 | void ath5k_mode_setup(struct ath5k_hw *ah, struct ieee80211_vif *vif); | 1377 | void ath5k_mode_setup(struct ath5k_hw *ah, struct ieee80211_vif *vif); |
1378 | void ath5k_update_bssid_mask_and_opmode(struct ath5k_hw *ah, | 1378 | void ath5k_update_bssid_mask_and_opmode(struct ath5k_hw *ah, |
1379 | struct ieee80211_vif *vif); | 1379 | struct ieee80211_vif *vif); |
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index 20e4ef4db3ea..a74d28601453 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c | |||
@@ -2526,9 +2526,9 @@ ath5k_stop_locked(struct ath5k_hw *ah) | |||
2526 | return 0; | 2526 | return 0; |
2527 | } | 2527 | } |
2528 | 2528 | ||
2529 | int | 2529 | int ath5k_start(struct ieee80211_hw *hw) |
2530 | ath5k_init_hw(struct ath5k_hw *ah) | ||
2531 | { | 2530 | { |
2531 | struct ath5k_hw *ah = hw->priv; | ||
2532 | struct ath_common *common = ath5k_hw_common(ah); | 2532 | struct ath_common *common = ath5k_hw_common(ah); |
2533 | int ret, i; | 2533 | int ret, i; |
2534 | 2534 | ||
@@ -2602,9 +2602,9 @@ static void ath5k_stop_tasklets(struct ath5k_hw *ah) | |||
2602 | * if another thread does a system call and the thread doing the | 2602 | * if another thread does a system call and the thread doing the |
2603 | * stop is preempted). | 2603 | * stop is preempted). |
2604 | */ | 2604 | */ |
2605 | int | 2605 | void ath5k_stop(struct ieee80211_hw *hw) |
2606 | ath5k_stop_hw(struct ath5k_hw *ah) | ||
2607 | { | 2606 | { |
2607 | struct ath5k_hw *ah = hw->priv; | ||
2608 | int ret; | 2608 | int ret; |
2609 | 2609 | ||
2610 | mutex_lock(&ah->lock); | 2610 | mutex_lock(&ah->lock); |
@@ -2644,8 +2644,6 @@ ath5k_stop_hw(struct ath5k_hw *ah) | |||
2644 | cancel_delayed_work_sync(&ah->tx_complete_work); | 2644 | cancel_delayed_work_sync(&ah->tx_complete_work); |
2645 | 2645 | ||
2646 | ath5k_rfkill_hw_stop(ah); | 2646 | ath5k_rfkill_hw_stop(ah); |
2647 | |||
2648 | return ret; | ||
2649 | } | 2647 | } |
2650 | 2648 | ||
2651 | /* | 2649 | /* |
diff --git a/drivers/net/wireless/ath/ath5k/mac80211-ops.c b/drivers/net/wireless/ath/ath5k/mac80211-ops.c index 7aa2a6348f2f..2a715ca0c5e4 100644 --- a/drivers/net/wireless/ath/ath5k/mac80211-ops.c +++ b/drivers/net/wireless/ath/ath5k/mac80211-ops.c | |||
@@ -66,20 +66,6 @@ ath5k_tx(struct ieee80211_hw *hw, struct sk_buff *skb) | |||
66 | 66 | ||
67 | 67 | ||
68 | static int | 68 | static int |
69 | ath5k_start(struct ieee80211_hw *hw) | ||
70 | { | ||
71 | return ath5k_init_hw(hw->priv); | ||
72 | } | ||
73 | |||
74 | |||
75 | static void | ||
76 | ath5k_stop(struct ieee80211_hw *hw) | ||
77 | { | ||
78 | ath5k_stop_hw(hw->priv); | ||
79 | } | ||
80 | |||
81 | |||
82 | static int | ||
83 | ath5k_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif) | 69 | ath5k_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif) |
84 | { | 70 | { |
85 | struct ath5k_hw *ah = hw->priv; | 71 | struct ath5k_hw *ah = hw->priv; |