aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/common.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/common.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/drivers/net/wireless/ath/ath9k/common.c b/drivers/net/wireless/ath/ath9k/common.c
index f43a2d98421c..df1998d48253 100644
--- a/drivers/net/wireless/ath/ath9k/common.c
+++ b/drivers/net/wireless/ath/ath9k/common.c
@@ -107,12 +107,10 @@ static u32 ath9k_get_extchanmode(struct ieee80211_channel *chan,
107/* 107/*
108 * Update internal channel flags. 108 * Update internal channel flags.
109 */ 109 */
110void ath9k_cmn_update_ichannel(struct ieee80211_hw *hw, 110void ath9k_cmn_update_ichannel(struct ath9k_channel *ichan,
111 struct ath9k_channel *ichan) 111 struct ieee80211_channel *chan,
112 enum nl80211_channel_type channel_type)
112{ 113{
113 struct ieee80211_channel *chan = hw->conf.channel;
114 struct ieee80211_conf *conf = &hw->conf;
115
116 ichan->channel = chan->center_freq; 114 ichan->channel = chan->center_freq;
117 ichan->chan = chan; 115 ichan->chan = chan;
118 116
@@ -124,9 +122,8 @@ void ath9k_cmn_update_ichannel(struct ieee80211_hw *hw,
124 ichan->channelFlags = CHANNEL_5GHZ | CHANNEL_OFDM; 122 ichan->channelFlags = CHANNEL_5GHZ | CHANNEL_OFDM;
125 } 123 }
126 124
127 if (conf_is_ht(conf)) 125 if (channel_type != NL80211_CHAN_NO_HT)
128 ichan->chanmode = ath9k_get_extchanmode(chan, 126 ichan->chanmode = ath9k_get_extchanmode(chan, channel_type);
129 conf->channel_type);
130} 127}
131EXPORT_SYMBOL(ath9k_cmn_update_ichannel); 128EXPORT_SYMBOL(ath9k_cmn_update_ichannel);
132 129
@@ -142,7 +139,7 @@ struct ath9k_channel *ath9k_cmn_get_curchannel(struct ieee80211_hw *hw,
142 139
143 chan_idx = curchan->hw_value; 140 chan_idx = curchan->hw_value;
144 channel = &ah->channels[chan_idx]; 141 channel = &ah->channels[chan_idx];
145 ath9k_cmn_update_ichannel(hw, channel); 142 ath9k_cmn_update_ichannel(channel, curchan, hw->conf.channel_type);
146 143
147 return channel; 144 return channel;
148} 145}
@@ -183,8 +180,8 @@ void ath9k_cmn_btcoex_bt_stomp(struct ath_common *common,
183 AR_STOMP_NONE_WLAN_WGHT); 180 AR_STOMP_NONE_WLAN_WGHT);
184 break; 181 break;
185 default: 182 default:
186 ath_print(common, ATH_DBG_BTCOEX, 183 ath_dbg(common, ATH_DBG_BTCOEX,
187 "Invalid Stomptype\n"); 184 "Invalid Stomptype\n");
188 break; 185 break;
189 } 186 }
190 187