diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-06-26 14:27:34 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-06-26 14:27:34 -0400 |
commit | 2c443443e715fc79da9b7c3e4f31a71fcf315b09 (patch) | |
tree | 5b73cea04b13c888d94e29000c0a66ed2c23980f /include | |
parent | 5ea276963eacbef742fe4854883c0f69c903fcfd (diff) | |
parent | 371a255e863857f988a91a3850d6feeaa4f3c536 (diff) |
Merge branch 'for-john' of git://git.sipsolutions.net/mac80211-next
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ieee80211.h | 2 | ||||
-rw-r--r-- | include/linux/nl80211.h | 6 | ||||
-rw-r--r-- | include/net/cfg80211.h | 2 | ||||
-rw-r--r-- | include/net/mac80211.h | 29 |
4 files changed, 15 insertions, 24 deletions
diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index 6e0601189db9..318fc1f705b1 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h | |||
@@ -1633,6 +1633,8 @@ enum ieee80211_sa_query_action { | |||
1633 | #define WLAN_OUI_TYPE_WFA_P2P 9 | 1633 | #define WLAN_OUI_TYPE_WFA_P2P 9 |
1634 | #define WLAN_OUI_MICROSOFT 0x0050f2 | 1634 | #define WLAN_OUI_MICROSOFT 0x0050f2 |
1635 | #define WLAN_OUI_TYPE_MICROSOFT_WPA 1 | 1635 | #define WLAN_OUI_TYPE_MICROSOFT_WPA 1 |
1636 | #define WLAN_OUI_TYPE_MICROSOFT_WMM 2 | ||
1637 | #define WLAN_OUI_TYPE_MICROSOFT_WPS 4 | ||
1636 | 1638 | ||
1637 | /* | 1639 | /* |
1638 | * WMM/802.11e Tspec Element | 1640 | * WMM/802.11e Tspec Element |
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index b7c3b737ddde..c0fc5d277338 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
@@ -1542,6 +1542,9 @@ enum nl80211_attrs { | |||
1542 | 1542 | ||
1543 | #define NL80211_MIN_REMAIN_ON_CHANNEL_TIME 10 | 1543 | #define NL80211_MIN_REMAIN_ON_CHANNEL_TIME 10 |
1544 | 1544 | ||
1545 | /* default RSSI threshold for scan results if none specified. */ | ||
1546 | #define NL80211_SCAN_RSSI_THOLD_OFF -300 | ||
1547 | |||
1545 | /** | 1548 | /** |
1546 | * enum nl80211_iftype - (virtual) interface types | 1549 | * enum nl80211_iftype - (virtual) interface types |
1547 | * | 1550 | * |
@@ -1974,6 +1977,8 @@ enum nl80211_reg_rule_attr { | |||
1974 | * @__NL80211_SCHED_SCAN_MATCH_ATTR_INVALID: attribute number 0 is reserved | 1977 | * @__NL80211_SCHED_SCAN_MATCH_ATTR_INVALID: attribute number 0 is reserved |
1975 | * @NL80211_SCHED_SCAN_MATCH_ATTR_SSID: SSID to be used for matching, | 1978 | * @NL80211_SCHED_SCAN_MATCH_ATTR_SSID: SSID to be used for matching, |
1976 | * only report BSS with matching SSID. | 1979 | * only report BSS with matching SSID. |
1980 | * @NL80211_SCHED_SCAN_MATCH_ATTR_RSSI: RSSI threshold (in dBm) for reporting a | ||
1981 | * BSS in scan results. Filtering is turned off if not specified. | ||
1977 | * @NL80211_SCHED_SCAN_MATCH_ATTR_MAX: highest scheduled scan filter | 1982 | * @NL80211_SCHED_SCAN_MATCH_ATTR_MAX: highest scheduled scan filter |
1978 | * attribute number currently defined | 1983 | * attribute number currently defined |
1979 | * @__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST: internal use | 1984 | * @__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST: internal use |
@@ -1982,6 +1987,7 @@ enum nl80211_sched_scan_match_attr { | |||
1982 | __NL80211_SCHED_SCAN_MATCH_ATTR_INVALID, | 1987 | __NL80211_SCHED_SCAN_MATCH_ATTR_INVALID, |
1983 | 1988 | ||
1984 | NL80211_SCHED_SCAN_MATCH_ATTR_SSID, | 1989 | NL80211_SCHED_SCAN_MATCH_ATTR_SSID, |
1990 | NL80211_SCHED_SCAN_MATCH_ATTR_RSSI, | ||
1985 | 1991 | ||
1986 | /* keep last */ | 1992 | /* keep last */ |
1987 | __NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST, | 1993 | __NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST, |
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index f0163a10b8ce..061c01957e54 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -1027,6 +1027,7 @@ struct cfg80211_match_set { | |||
1027 | * @wiphy: the wiphy this was for | 1027 | * @wiphy: the wiphy this was for |
1028 | * @dev: the interface | 1028 | * @dev: the interface |
1029 | * @channels: channels to scan | 1029 | * @channels: channels to scan |
1030 | * @rssi_thold: don't report scan results below this threshold (in s32 dBm) | ||
1030 | */ | 1031 | */ |
1031 | struct cfg80211_sched_scan_request { | 1032 | struct cfg80211_sched_scan_request { |
1032 | struct cfg80211_ssid *ssids; | 1033 | struct cfg80211_ssid *ssids; |
@@ -1037,6 +1038,7 @@ struct cfg80211_sched_scan_request { | |||
1037 | size_t ie_len; | 1038 | size_t ie_len; |
1038 | struct cfg80211_match_set *match_sets; | 1039 | struct cfg80211_match_set *match_sets; |
1039 | int n_match_sets; | 1040 | int n_match_sets; |
1041 | s32 rssi_thold; | ||
1040 | 1042 | ||
1041 | /* internal */ | 1043 | /* internal */ |
1042 | struct wiphy *wiphy; | 1044 | struct wiphy *wiphy; |
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 6914f9978aea..670a58ba8a41 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -2254,6 +2254,9 @@ enum ieee80211_rate_control_changed { | |||
2254 | * @get_et_strings: Ethtool API to get a set of strings to describe stats | 2254 | * @get_et_strings: Ethtool API to get a set of strings to describe stats |
2255 | * and perhaps other supported types of ethtool data-sets. | 2255 | * and perhaps other supported types of ethtool data-sets. |
2256 | * | 2256 | * |
2257 | * @get_rssi: Get current signal strength in dBm, the function is optional | ||
2258 | * and can sleep. | ||
2259 | * | ||
2257 | */ | 2260 | */ |
2258 | struct ieee80211_ops { | 2261 | struct ieee80211_ops { |
2259 | void (*tx)(struct ieee80211_hw *hw, struct sk_buff *skb); | 2262 | void (*tx)(struct ieee80211_hw *hw, struct sk_buff *skb); |
@@ -2393,6 +2396,8 @@ struct ieee80211_ops { | |||
2393 | void (*get_et_strings)(struct ieee80211_hw *hw, | 2396 | void (*get_et_strings)(struct ieee80211_hw *hw, |
2394 | struct ieee80211_vif *vif, | 2397 | struct ieee80211_vif *vif, |
2395 | u32 sset, u8 *data); | 2398 | u32 sset, u8 *data); |
2399 | int (*get_rssi)(struct ieee80211_hw *hw, struct ieee80211_vif *vif, | ||
2400 | struct ieee80211_sta *sta, s8 *rssi_dbm); | ||
2396 | }; | 2401 | }; |
2397 | 2402 | ||
2398 | /** | 2403 | /** |
@@ -3843,28 +3848,4 @@ int ieee80211_add_ext_srates_ie(struct ieee80211_vif *vif, | |||
3843 | */ | 3848 | */ |
3844 | int ieee80211_ave_rssi(struct ieee80211_vif *vif); | 3849 | int ieee80211_ave_rssi(struct ieee80211_vif *vif); |
3845 | 3850 | ||
3846 | /* Extra debugging macros */ | ||
3847 | |||
3848 | #ifdef CONFIG_MAC80211_HT_DEBUG | ||
3849 | #define ht_vdbg(fmt, ...) \ | ||
3850 | pr_debug(fmt, ##__VA_ARGS__) | ||
3851 | #else | ||
3852 | #define ht_vdbg(fmt, ...) \ | ||
3853 | do { \ | ||
3854 | if (0) \ | ||
3855 | pr_debug(fmt, ##__VA_ARGS__); \ | ||
3856 | } while (0) | ||
3857 | #endif | ||
3858 | |||
3859 | #ifdef CONFIG_MAC80211_IBSS_DEBUG | ||
3860 | #define ibss_vdbg(fmt, ...) \ | ||
3861 | pr_debug(fmt, ##__VA_ARGS__) | ||
3862 | #else | ||
3863 | #define ibss_vdbg(fmt, ...) \ | ||
3864 | do { \ | ||
3865 | if (0) \ | ||
3866 | pr_debug(fmt, ##__VA_ARGS__); \ | ||
3867 | } while (0) | ||
3868 | #endif | ||
3869 | |||
3870 | #endif /* MAC80211_H */ | 3851 | #endif /* MAC80211_H */ |