summaryrefslogtreecommitdiff
path: root/package/mac80211/patches/512-ath9k_channelbw_debugfs.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-01-09 12:56:25 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-01-09 12:56:25 +0000
commitddbb25c6a79a0836a79eab96d9c0a293acee4089 (patch)
tree510a754bcce3454e40903bf2f306a65939b7f546 /package/mac80211/patches/512-ath9k_channelbw_debugfs.patch
parent5c9fd3b2d26012f8b77d1f5c86bf0b9223460cf4 (diff)
downloadmtk-20170518-ddbb25c6a79a0836a79eab96d9c0a293acee4089.zip
mtk-20170518-ddbb25c6a79a0836a79eab96d9c0a293acee4089.tar.gz
mtk-20170518-ddbb25c6a79a0836a79eab96d9c0a293acee4089.tar.bz2
mac80211, ath9k: merge some pending fixes from linux-wireless@
SVN-Revision: 35066
Diffstat (limited to 'package/mac80211/patches/512-ath9k_channelbw_debugfs.patch')
-rw-r--r--package/mac80211/patches/512-ath9k_channelbw_debugfs.patch14
1 files changed, 7 insertions, 7 deletions
diff --git a/package/mac80211/patches/512-ath9k_channelbw_debugfs.patch b/package/mac80211/patches/512-ath9k_channelbw_debugfs.patch
index 2dfed59..73ffc8b3 100644
--- a/package/mac80211/patches/512-ath9k_channelbw_debugfs.patch
+++ b/package/mac80211/patches/512-ath9k_channelbw_debugfs.patch
@@ -1,6 +1,6 @@
--- a/drivers/net/wireless/ath/ath9k/ath9k.h
+++ b/drivers/net/wireless/ath/ath9k/ath9k.h
-@@ -674,6 +674,7 @@ struct ath_softc {
+@@ -672,6 +672,7 @@ struct ath_softc {
struct ieee80211_hw *hw;
struct device *dev;
@@ -8,7 +8,7 @@
struct survey_info *cur_survey;
struct survey_info survey[ATH9K_NUM_CHANNELS];
-@@ -746,6 +747,7 @@ struct ath_softc {
+@@ -744,6 +745,7 @@ struct ath_softc {
#endif
};
@@ -18,7 +18,7 @@
--- a/drivers/net/wireless/ath/ath9k/debug.c
+++ b/drivers/net/wireless/ath/ath9k/debug.c
-@@ -1765,6 +1765,50 @@ static const struct file_operations fops
+@@ -1764,6 +1764,50 @@ static const struct file_operations fops
.owner = THIS_MODULE
};
@@ -69,7 +69,7 @@
int ath9k_init_debug(struct ath_hw *ah)
{
struct ath_common *common = ath9k_hw_common(ah);
-@@ -1784,6 +1828,8 @@ int ath9k_init_debug(struct ath_hw *ah)
+@@ -1783,6 +1827,8 @@ int ath9k_init_debug(struct ath_hw *ah)
debugfs_create_file("eeprom", S_IRUSR, sc->debug.debugfs_phy, sc,
&fops_eeprom);
@@ -80,7 +80,7 @@
debugfs_create_file("interrupt", S_IRUSR, sc->debug.debugfs_phy, sc,
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
-@@ -1075,7 +1075,7 @@ static void ath9k_disable_ps(struct ath_
+@@ -1069,7 +1069,7 @@ static void ath9k_disable_ps(struct ath_
ath_dbg(common, PS, "PowerSave disabled\n");
}
@@ -89,7 +89,7 @@
{
struct ath_softc *sc = hw->priv;
struct ath_hw *ah = sc->sc_ah;
-@@ -1129,9 +1129,11 @@ static int ath9k_config(struct ieee80211
+@@ -1123,9 +1123,11 @@ static int ath9k_config(struct ieee80211
if ((changed & IEEE80211_CONF_CHANGE_CHANNEL) || reset_channel) {
struct ieee80211_channel *curchan = hw->conf.channel;
@@ -101,7 +101,7 @@
if (ah->curchan)
old_pos = ah->curchan - &ah->channels[0];
-@@ -1174,7 +1176,23 @@ static int ath9k_config(struct ieee80211
+@@ -1168,7 +1170,23 @@ static int ath9k_config(struct ieee80211
memset(&sc->survey[pos], 0, sizeof(struct survey_info));
}