aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nl80211.h
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2011-11-18 14:31:59 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-11-21 16:22:06 -0500
commit7e7c8926b2f4e3453b8aeb39cd814d2af3fec24f (patch)
treee22df42bf84d6ea3cb67ae0e332d7d7d10cca4b4 /include/linux/nl80211.h
parentdd76986b0e398978ca32dd60c1b7dc50ab4e9ae1 (diff)
wireless: Support ht-capabilities over-rides.
This allows users to disable features such as HT, HT40, and to modify the MCS, AMPDU, and AMSDU settings for drivers that support it. The MCS, AMPDU, and AMSDU features that may be disabled are are reported in the phy-info netlink message as a mask. Attemping to disable features that are not supported will take no affect, but will not return errors. This is to aid backwards compatibility in user-space apps that may not be clever enough to deal with parsing the the capabilities mask. This patch only enables the infrastructure. An additional patch will enable the feature in mac80211. Signed-off-by: Ben Greear <greearb@candelatech.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/nl80211.h')
-rw-r--r--include/linux/nl80211.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h
index 6396819a7e41..97bfebfcce90 100644
--- a/include/linux/nl80211.h
+++ b/include/linux/nl80211.h
@@ -1169,6 +1169,17 @@ enum nl80211_commands {
1169 * @NL80211_ATTR_PROBE_RESP: Probe Response template data. Contains the entire 1169 * @NL80211_ATTR_PROBE_RESP: Probe Response template data. Contains the entire
1170 * probe-response frame. The DA field in the 802.11 header is zero-ed out, 1170 * probe-response frame. The DA field in the 802.11 header is zero-ed out,
1171 * to be filled by the FW. 1171 * to be filled by the FW.
1172 * @NL80211_ATTR_DISABLE_HT: Force HT capable interfaces to disable
1173 * this feature. Currently, only supported in mac80211 drivers.
1174 * @NL80211_ATTR_HT_CAPABILITY_MASK: Specify which bits of the
1175 * ATTR_HT_CAPABILITY to which attention should be paid.
1176 * Currently, only mac80211 NICs support this feature.
1177 * The values that may be configured are:
1178 * MCS rates, MAX-AMSDU, HT-20-40 and HT_CAP_SGI_40
1179 * AMPDU density and AMPDU factor.
1180 * All values are treated as suggestions and may be ignored
1181 * by the driver as required. The actual values may be seen in
1182 * the station debugfs ht_caps file.
1172 * 1183 *
1173 * @NL80211_ATTR_DFS_REGION: region for regulatory rules which this country 1184 * @NL80211_ATTR_DFS_REGION: region for regulatory rules which this country
1174 * abides to when initiating radiation on DFS channels. A country maps 1185 * abides to when initiating radiation on DFS channels. A country maps
@@ -1414,6 +1425,9 @@ enum nl80211_attrs {
1414 1425
1415 NL80211_ATTR_DFS_REGION, 1426 NL80211_ATTR_DFS_REGION,
1416 1427
1428 NL80211_ATTR_DISABLE_HT,
1429 NL80211_ATTR_HT_CAPABILITY_MASK,
1430
1417 /* add attributes here, update the policy in nl80211.c */ 1431 /* add attributes here, update the policy in nl80211.c */
1418 1432
1419 __NL80211_ATTR_AFTER_LAST, 1433 __NL80211_ATTR_AFTER_LAST,