diff options
author | Lukáš Turek <8an@praha12.net> | 2009-12-21 16:50:47 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-01-12 13:49:17 -0500 |
commit | 81077e82c3f591578625805dd6464a27a9ff56ec (patch) | |
tree | cb1e502c54b4e2f052f129b80a47190de7e22b62 /include | |
parent | 14acdde6e527950f66c084dbf19bad6fbfcaeedc (diff) |
nl80211: Add new WIPHY attribute COVERAGE_CLASS
The new attribute NL80211_ATTR_WIPHY_COVERAGE_CLASS sets IEEE 802.11
Coverage Class, which depends on maximum distance of nodes in a
wireless network. It's required for long distance links (more than a few
hundred meters).
The attribute is now ignored by two non-mac80211 drivers, rndis and
iwmc3200wifi, together with WIPHY_PARAM_RETRY_SHORT and
WIPHY_PARAM_RETRY_LONG. If it turns out to be a problem, we could split
set_wiphy_params callback or add new capability bits.
Signed-off-by: Lukas Turek <8an@praha12.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nl80211.h | 4 | ||||
-rw-r--r-- | include/net/cfg80211.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index 2bfbe88837ef..d4c556de7170 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
@@ -430,6 +430,8 @@ enum nl80211_commands { | |||
430 | * @NL80211_ATTR_WIPHY_RTS_THRESHOLD: RTS threshold (TX frames with length | 430 | * @NL80211_ATTR_WIPHY_RTS_THRESHOLD: RTS threshold (TX frames with length |
431 | * larger than or equal to this use RTS/CTS handshake); allowed range: | 431 | * larger than or equal to this use RTS/CTS handshake); allowed range: |
432 | * 0..65536, disable with (u32)-1; dot11RTSThreshold; u32 | 432 | * 0..65536, disable with (u32)-1; dot11RTSThreshold; u32 |
433 | * @NL80211_ATTR_WIPHY_COVERAGE_CLASS: Coverage Class as defined by IEEE 802.11 | ||
434 | * section 7.3.2.9; dot11CoverageClass; u8 | ||
433 | * | 435 | * |
434 | * @NL80211_ATTR_IFINDEX: network interface index of the device to operate on | 436 | * @NL80211_ATTR_IFINDEX: network interface index of the device to operate on |
435 | * @NL80211_ATTR_IFNAME: network interface name | 437 | * @NL80211_ATTR_IFNAME: network interface name |
@@ -779,6 +781,8 @@ enum nl80211_attrs { | |||
779 | 781 | ||
780 | NL80211_ATTR_COOKIE, | 782 | NL80211_ATTR_COOKIE, |
781 | 783 | ||
784 | NL80211_ATTR_WIPHY_COVERAGE_CLASS, | ||
785 | |||
782 | /* add attributes here, update the policy in nl80211.c */ | 786 | /* add attributes here, update the policy in nl80211.c */ |
783 | 787 | ||
784 | __NL80211_ATTR_AFTER_LAST, | 788 | __NL80211_ATTR_AFTER_LAST, |
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index add79930f47d..a8d5d04314b9 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -837,6 +837,7 @@ enum wiphy_params_flags { | |||
837 | WIPHY_PARAM_RETRY_LONG = 1 << 1, | 837 | WIPHY_PARAM_RETRY_LONG = 1 << 1, |
838 | WIPHY_PARAM_FRAG_THRESHOLD = 1 << 2, | 838 | WIPHY_PARAM_FRAG_THRESHOLD = 1 << 2, |
839 | WIPHY_PARAM_RTS_THRESHOLD = 1 << 3, | 839 | WIPHY_PARAM_RTS_THRESHOLD = 1 << 3, |
840 | WIPHY_PARAM_COVERAGE_CLASS = 1 << 4, | ||
840 | }; | 841 | }; |
841 | 842 | ||
842 | /** | 843 | /** |
@@ -1236,6 +1237,7 @@ struct wiphy { | |||
1236 | u8 retry_long; | 1237 | u8 retry_long; |
1237 | u32 frag_threshold; | 1238 | u32 frag_threshold; |
1238 | u32 rts_threshold; | 1239 | u32 rts_threshold; |
1240 | u8 coverage_class; | ||
1239 | 1241 | ||
1240 | char fw_version[ETHTOOL_BUSINFO_LEN]; | 1242 | char fw_version[ETHTOOL_BUSINFO_LEN]; |
1241 | u32 hw_version; | 1243 | u32 hw_version; |