aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/512-ath9k_channelbw_debugfs.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-11-18 19:58:53 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-11-18 19:58:53 +0000
commit03fcc9bf43b27157fba896cb7d48a7e4ca4d02ee (patch)
treea96a3c285c7489763e92ed0508586471467f1809 /package/kernel/mac80211/patches/512-ath9k_channelbw_debugfs.patch
parent9706d4e00e4309b0872df87635d214d5a169827d (diff)
downloadupstream-03fcc9bf43b27157fba896cb7d48a7e4ca4d02ee.tar.gz
upstream-03fcc9bf43b27157fba896cb7d48a7e4ca4d02ee.tar.bz2
upstream-03fcc9bf43b27157fba896cb7d48a7e4ca4d02ee.zip
ath9k: merge a few reset / calibration fixes
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38854
Diffstat (limited to 'package/kernel/mac80211/patches/512-ath9k_channelbw_debugfs.patch')
-rw-r--r--package/kernel/mac80211/patches/512-ath9k_channelbw_debugfs.patch6
1 files changed, 2 insertions, 4 deletions
diff --git a/package/kernel/mac80211/patches/512-ath9k_channelbw_debugfs.patch b/package/kernel/mac80211/patches/512-ath9k_channelbw_debugfs.patch
index 2b16ae1278..88e0756814 100644
--- a/package/kernel/mac80211/patches/512-ath9k_channelbw_debugfs.patch
+++ b/package/kernel/mac80211/patches/512-ath9k_channelbw_debugfs.patch
@@ -110,16 +110,14 @@
case NL80211_CHAN_WIDTH_5:
flags |= CHANNEL_QUARTER;
break;
-@@ -97,12 +111,13 @@ struct ath9k_channel *ath9k_cmn_get_chan
+@@ -97,10 +111,11 @@ struct ath9k_channel *ath9k_cmn_get_chan
struct cfg80211_chan_def *chandef)
{
struct ieee80211_channel *curchan = chandef->chan;
+ struct ath_common *common = ath9k_hw_common(ah);
struct ath9k_channel *channel;
- u8 chan_idx;
- chan_idx = curchan->hw_value;
- channel = &ah->channels[chan_idx];
+ channel = &ah->channels[curchan->hw_value];
- ath9k_cmn_update_ichannel(channel, chandef);
+ ath9k_cmn_update_ichannel(common, channel, chandef);