diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-02-17 14:13:27 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-02-17 14:13:27 +0000 |
commit | 25ca63a87ad8e7fbd323fcd70c3adfb92e2bf1e1 (patch) | |
tree | ee88601cbd70ab0fb2b19306c5f0b4c16ea48da6 /package/mac80211/patches/530-cfg80211_get_freq.patch | |
parent | c3e124355806ce269251cfcb072cbe1a817eac60 (diff) |
mac80211: update to wireless-testing 2010-02-16
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19688 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/530-cfg80211_get_freq.patch')
-rw-r--r-- | package/mac80211/patches/530-cfg80211_get_freq.patch | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/package/mac80211/patches/530-cfg80211_get_freq.patch b/package/mac80211/patches/530-cfg80211_get_freq.patch deleted file mode 100644 index a2fb29ee2..000000000 --- a/package/mac80211/patches/530-cfg80211_get_freq.patch +++ /dev/null @@ -1,34 +0,0 @@ ---- a/net/wireless/core.h -+++ b/net/wireless/core.h -@@ -76,6 +76,7 @@ struct cfg80211_registered_device { - - /* current channel */ - struct ieee80211_channel *channel; -+ enum nl80211_channel_type channel_type; - - /* must be last because of the way we do wiphy_priv(), - * and it should at least be aligned to NETDEV_ALIGN */ ---- a/net/wireless/chan.c -+++ b/net/wireless/chan.c -@@ -97,6 +97,7 @@ int rdev_set_freq(struct cfg80211_regist - return result; - - rdev->channel = chan; -+ rdev->channel_type = channel_type; - - return 0; - } ---- a/net/wireless/nl80211.c -+++ b/net/wireless/nl80211.c -@@ -881,6 +881,11 @@ static int nl80211_send_iface(struct sk_ - NLA_PUT_U32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx); - NLA_PUT_STRING(msg, NL80211_ATTR_IFNAME, dev->name); - NLA_PUT_U32(msg, NL80211_ATTR_IFTYPE, dev->ieee80211_ptr->iftype); -+ if (rdev->channel) { -+ NLA_PUT_U32(msg, NL80211_ATTR_WIPHY_FREQ, rdev->channel->center_freq); -+ NLA_PUT_U32(msg, NL80211_ATTR_WIPHY_CHANNEL_TYPE, rdev->channel_type); -+ } -+ - - NLA_PUT_U32(msg, NL80211_ATTR_GENERATION, - rdev->devlist_generation ^ |