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
commit0aabd7a6fbbdba2367e951031ed35016e0b7ee1b (patch)
tree2e125bd699ff9f332b60f78a0a9d6afa76eedcb6 /package/kernel/mac80211/patches/512-ath9k_channelbw_debugfs.patch
parent2a60be271a96e468804f1cc73202829ea00c9e93 (diff)
downloadmaster-187ad058-0aabd7a6fbbdba2367e951031ed35016e0b7ee1b.tar.gz
master-187ad058-0aabd7a6fbbdba2367e951031ed35016e0b7ee1b.tar.bz2
master-187ad058-0aabd7a6fbbdba2367e951031ed35016e0b7ee1b.zip
ath9k: merge a few reset / calibration fixes
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38854 3c298f89-4303-0410-b956-a3cf2f4a3e73
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);