diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-10-07 14:27:54 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-10-07 14:27:54 +0000 |
commit | 2f64e98fbc71ffbda7038183c335d7084c846efe (patch) | |
tree | d28369843e071c301a4dc0ebcd70452a1316402f /package/mac80211/patches/514-mac80211_survey_chan_in_use.patch | |
parent | ae91389b77dab1aa1eadb70df6069b644f387487 (diff) | |
download | master-187ad058-2f64e98fbc71ffbda7038183c335d7084c846efe.tar.gz master-187ad058-2f64e98fbc71ffbda7038183c335d7084c846efe.tar.bz2 master-187ad058-2f64e98fbc71ffbda7038183c335d7084c846efe.zip |
mac80211: update to wireless-testing 2010-10-06
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23294 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/514-mac80211_survey_chan_in_use.patch')
-rw-r--r-- | package/mac80211/patches/514-mac80211_survey_chan_in_use.patch | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/package/mac80211/patches/514-mac80211_survey_chan_in_use.patch b/package/mac80211/patches/514-mac80211_survey_chan_in_use.patch deleted file mode 100644 index 1f9d4462e4..0000000000 --- a/package/mac80211/patches/514-mac80211_survey_chan_in_use.patch +++ /dev/null @@ -1,46 +0,0 @@ ---- a/include/net/cfg80211.h -+++ b/include/net/cfg80211.h -@@ -294,12 +294,14 @@ struct key_params { - * enum survey_info_flags - survey information flags - * - * @SURVEY_INFO_NOISE_DBM: noise (in dBm) was filled in -+ * @SURVEY_INFO_IN_USE: channel is currently being used - * - * Used by the driver to indicate which info in &struct survey_info - * it has filled in during the get_survey(). - */ - enum survey_info_flags { - SURVEY_INFO_NOISE_DBM = 1<<0, -+ SURVEY_INFO_IN_USE = 1<<1, - }; - - /** ---- a/include/linux/nl80211.h -+++ b/include/linux/nl80211.h -@@ -1400,6 +1400,7 @@ enum nl80211_reg_rule_flags { - * @__NL80211_SURVEY_INFO_INVALID: attribute number 0 is reserved - * @NL80211_SURVEY_INFO_FREQUENCY: center frequency of channel - * @NL80211_SURVEY_INFO_NOISE: noise level of channel (u8, dBm) -+ * @NL80211_SURVEY_INFO_IN_USE: channel is currently being used - * @NL80211_SURVEY_INFO_MAX: highest survey info attribute number - * currently defined - * @__NL80211_SURVEY_INFO_AFTER_LAST: internal use -@@ -1408,6 +1409,7 @@ enum nl80211_survey_info { - __NL80211_SURVEY_INFO_INVALID, - NL80211_SURVEY_INFO_FREQUENCY, - NL80211_SURVEY_INFO_NOISE, -+ NL80211_SURVEY_INFO_IN_USE, - - /* keep last */ - __NL80211_SURVEY_INFO_AFTER_LAST, ---- a/net/wireless/nl80211.c -+++ b/net/wireless/nl80211.c -@@ -3491,6 +3491,8 @@ static int nl80211_send_survey(struct sk - if (survey->filled & SURVEY_INFO_NOISE_DBM) - NLA_PUT_U8(msg, NL80211_SURVEY_INFO_NOISE, - survey->noise); -+ if (survey->filled & SURVEY_INFO_IN_USE) -+ NLA_PUT_FLAG(msg, NL80211_SURVEY_INFO_IN_USE); - - nla_nest_end(msg, infoattr); - |