aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorHolger Schurig <holgerschurig@gmail.com>2010-04-19 04:23:57 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-20 11:50:52 -0400
commit1289723ef238908ca8d95ff48a46ee0de970f882 (patch)
treeb4d584aee8abcc33dec2039fb45112156d3cd3d0 /include/net
parent03ceedea972a82d343fa5c2528b3952fa9e615d5 (diff)
mac80211: sample survey implementation for mac80211 & hwsim
This adds the survey function to both mac80211 itself and to mac80211_hwsim. For the latter driver, we simply invent some noise level.A real driver which cannot determine the real channel noise MUST NOT report any noise, especially not a magically conjured one :-) Signed-off-by: Holger Schurig <holgerschurig@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/mac80211.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 63e9d37e3e71..cd9915686dd9 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -1674,7 +1674,8 @@ struct ieee80211_ops {
1674 struct ieee80211_vif *vif, 1674 struct ieee80211_vif *vif,
1675 enum ieee80211_ampdu_mlme_action action, 1675 enum ieee80211_ampdu_mlme_action action,
1676 struct ieee80211_sta *sta, u16 tid, u16 *ssn); 1676 struct ieee80211_sta *sta, u16 tid, u16 *ssn);
1677 1677 int (*get_survey)(struct ieee80211_hw *hw, int idx,
1678 struct survey_info *survey);
1678 void (*rfkill_poll)(struct ieee80211_hw *hw); 1679 void (*rfkill_poll)(struct ieee80211_hw *hw);
1679 void (*set_coverage_class)(struct ieee80211_hw *hw, u8 coverage_class); 1680 void (*set_coverage_class)(struct ieee80211_hw *hw, u8 coverage_class);
1680#ifdef CONFIG_NL80211_TESTMODE 1681#ifdef CONFIG_NL80211_TESTMODE