diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-10-11 17:30:57 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-10-14 13:39:59 -0400 |
commit | 2297f1c7beec785e437da3da0157666bca525c99 (patch) | |
tree | 1c6e13d2725f847fda293d2887a0c7f3befdbf35 /drivers/net/wireless/ath/ath9k/common.c | |
parent | 6b21fd2027f8deb6fb7d3283b4c2eacabc8eeb95 (diff) |
ath9k: make ath9k_cmn_update_ichannel static
Rework its wrapper function to make it more generic, using it as a
replacement for previous calls to ath9k_cmn_update_ichannel.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/common.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/common.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/wireless/ath/ath9k/common.c b/drivers/net/wireless/ath/ath9k/common.c index b5ac26994f19..a7e5a05b2eff 100644 --- a/drivers/net/wireless/ath/ath9k/common.c +++ b/drivers/net/wireless/ath/ath9k/common.c | |||
@@ -52,8 +52,8 @@ EXPORT_SYMBOL(ath9k_cmn_get_hw_crypto_keytype); | |||
52 | /* | 52 | /* |
53 | * Update internal channel flags. | 53 | * Update internal channel flags. |
54 | */ | 54 | */ |
55 | void ath9k_cmn_update_ichannel(struct ath9k_channel *ichan, | 55 | static void ath9k_cmn_update_ichannel(struct ath9k_channel *ichan, |
56 | struct cfg80211_chan_def *chandef) | 56 | struct cfg80211_chan_def *chandef) |
57 | { | 57 | { |
58 | struct ieee80211_channel *chan = chandef->chan; | 58 | struct ieee80211_channel *chan = chandef->chan; |
59 | u16 flags = 0; | 59 | u16 flags = 0; |
@@ -88,25 +88,25 @@ void ath9k_cmn_update_ichannel(struct ath9k_channel *ichan, | |||
88 | 88 | ||
89 | ichan->channelFlags = flags; | 89 | ichan->channelFlags = flags; |
90 | } | 90 | } |
91 | EXPORT_SYMBOL(ath9k_cmn_update_ichannel); | ||
92 | 91 | ||
93 | /* | 92 | /* |
94 | * Get the internal channel reference. | 93 | * Get the internal channel reference. |
95 | */ | 94 | */ |
96 | struct ath9k_channel *ath9k_cmn_get_curchannel(struct ieee80211_hw *hw, | 95 | struct ath9k_channel *ath9k_cmn_get_channel(struct ieee80211_hw *hw, |
97 | struct ath_hw *ah) | 96 | struct ath_hw *ah, |
97 | struct cfg80211_chan_def *chandef) | ||
98 | { | 98 | { |
99 | struct ieee80211_channel *curchan = hw->conf.chandef.chan; | 99 | struct ieee80211_channel *curchan = chandef->chan; |
100 | struct ath9k_channel *channel; | 100 | struct ath9k_channel *channel; |
101 | u8 chan_idx; | 101 | u8 chan_idx; |
102 | 102 | ||
103 | chan_idx = curchan->hw_value; | 103 | chan_idx = curchan->hw_value; |
104 | channel = &ah->channels[chan_idx]; | 104 | channel = &ah->channels[chan_idx]; |
105 | ath9k_cmn_update_ichannel(channel, &hw->conf.chandef); | 105 | ath9k_cmn_update_ichannel(channel, chandef); |
106 | 106 | ||
107 | return channel; | 107 | return channel; |
108 | } | 108 | } |
109 | EXPORT_SYMBOL(ath9k_cmn_get_curchannel); | 109 | EXPORT_SYMBOL(ath9k_cmn_get_channel); |
110 | 110 | ||
111 | int ath9k_cmn_count_streams(unsigned int chainmask, int max) | 111 | int ath9k_cmn_count_streams(unsigned int chainmask, int max) |
112 | { | 112 | { |