summaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/570-mac80211_get_freq.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-01-17 20:49:28 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-01-17 20:49:28 +0000
commit66fdfcd51321caf82c263dcaedaa1010102443ce (patch)
tree28027bfebdeaf99c8358901fc8d7ac14f0bede54 /package/mac80211/patches/570-mac80211_get_freq.patch
parent7b293e59ef28b174d80a0e6b2e7a0b9e13d17720 (diff)
iw, mac80211: get the frequency info per-netdev instead of per-phy
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19194 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/570-mac80211_get_freq.patch')
-rw-r--r--package/mac80211/patches/570-mac80211_get_freq.patch29
1 files changed, 0 insertions, 29 deletions
diff --git a/package/mac80211/patches/570-mac80211_get_freq.patch b/package/mac80211/patches/570-mac80211_get_freq.patch
deleted file mode 100644
index 073fe6386..000000000
--- a/package/mac80211/patches/570-mac80211_get_freq.patch
+++ /dev/null
@@ -1,29 +0,0 @@
---- a/net/mac80211/cfg.c
-+++ b/net/mac80211/cfg.c
-@@ -1154,6 +1154,18 @@ static int ieee80211_set_txq_params(stru
- return 0;
- }
-
-+static int ieee80211_get_oper_channel(struct wiphy *wiphy,
-+ struct ieee80211_channel **chan,
-+ enum nl80211_channel_type *channel_type)
-+{
-+ struct ieee80211_local *local = wiphy_priv(wiphy);
-+
-+ *chan = local->oper_channel;
-+ *channel_type = local->oper_channel_type;
-+
-+ return 0;
-+}
-+
- static int ieee80211_set_channel(struct wiphy *wiphy,
- struct ieee80211_channel *chan,
- enum nl80211_channel_type channel_type)
-@@ -1494,6 +1506,7 @@ struct cfg80211_ops mac80211_config_ops
- #endif
- .change_bss = ieee80211_change_bss,
- .set_txq_params = ieee80211_set_txq_params,
-+ .get_channel = ieee80211_get_oper_channel,
- .set_channel = ieee80211_set_channel,
- .suspend = ieee80211_suspend,
- .resume = ieee80211_resume,