diff options
| author | John W. Linville <linville@tuxdriver.com> | 2011-04-25 14:34:25 -0400 |
|---|---|---|
| committer | John W. Linville <linville@tuxdriver.com> | 2011-04-25 14:34:25 -0400 |
| commit | cfef6047c4027a8448ec8dafeaf2bb362cc882e4 (patch) | |
| tree | c254bd25aa8b4b0696b5b5cc45d8e30c7c1bb9dd /include/linux | |
| parent | b71d1d426d263b0b6cb5760322efebbfc89d4463 (diff) | |
| parent | 73b48099cc265f88fa1255f3f43e52fe6a94fd5c (diff) | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
Conflicts:
drivers/net/wireless/iwlwifi/iwl-core.c
drivers/net/wireless/rt2x00/rt2x00queue.c
drivers/net/wireless/rt2x00/rt2x00queue.h
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/nl80211.h | 34 | ||||
| -rw-r--r-- | include/linux/rfkill-regulator.h | 48 |
2 files changed, 78 insertions, 4 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index 1832c27c520c..216b1d8a862f 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
| @@ -410,6 +410,16 @@ | |||
| 410 | * notification. This event is used to indicate that an unprotected | 410 | * notification. This event is used to indicate that an unprotected |
| 411 | * disassociation frame was dropped when MFP is in use. | 411 | * disassociation frame was dropped when MFP is in use. |
| 412 | * | 412 | * |
| 413 | * @NL80211_CMD_NEW_PEER_CANDIDATE: Notification on the reception of a | ||
| 414 | * beacon or probe response from a compatible mesh peer. This is only | ||
| 415 | * sent while no station information (sta_info) exists for the new peer | ||
| 416 | * candidate and when @NL80211_MESH_SETUP_USERSPACE_AUTH is set. On | ||
| 417 | * reception of this notification, userspace may decide to create a new | ||
| 418 | * station (@NL80211_CMD_NEW_STATION). To stop this notification from | ||
| 419 | * reoccurring, the userspace authentication daemon may want to create the | ||
| 420 | * new station with the AUTHENTICATED flag unset and maybe change it later | ||
| 421 | * depending on the authentication result. | ||
| 422 | * | ||
| 413 | * @NL80211_CMD_MAX: highest used command number | 423 | * @NL80211_CMD_MAX: highest used command number |
| 414 | * @__NL80211_CMD_AFTER_LAST: internal use | 424 | * @__NL80211_CMD_AFTER_LAST: internal use |
| 415 | */ | 425 | */ |
| @@ -522,6 +532,8 @@ enum nl80211_commands { | |||
| 522 | NL80211_CMD_UNPROT_DEAUTHENTICATE, | 532 | NL80211_CMD_UNPROT_DEAUTHENTICATE, |
| 523 | NL80211_CMD_UNPROT_DISASSOCIATE, | 533 | NL80211_CMD_UNPROT_DISASSOCIATE, |
| 524 | 534 | ||
| 535 | NL80211_CMD_NEW_PEER_CANDIDATE, | ||
| 536 | |||
| 525 | /* add new commands above here */ | 537 | /* add new commands above here */ |
| 526 | 538 | ||
| 527 | /* used to define NL80211_CMD_MAX below */ | 539 | /* used to define NL80211_CMD_MAX below */ |
| @@ -545,6 +557,7 @@ enum nl80211_commands { | |||
| 545 | /* source-level API compatibility */ | 557 | /* source-level API compatibility */ |
| 546 | #define NL80211_CMD_GET_MESH_PARAMS NL80211_CMD_GET_MESH_CONFIG | 558 | #define NL80211_CMD_GET_MESH_PARAMS NL80211_CMD_GET_MESH_CONFIG |
| 547 | #define NL80211_CMD_SET_MESH_PARAMS NL80211_CMD_SET_MESH_CONFIG | 559 | #define NL80211_CMD_SET_MESH_PARAMS NL80211_CMD_SET_MESH_CONFIG |
| 560 | #define NL80211_MESH_SETUP_VENDOR_PATH_SEL_IE NL80211_MESH_SETUP_IE | ||
| 548 | 561 | ||
| 549 | /** | 562 | /** |
| 550 | * enum nl80211_attrs - nl80211 netlink attributes | 563 | * enum nl80211_attrs - nl80211 netlink attributes |
| @@ -886,6 +899,9 @@ enum nl80211_commands { | |||
| 886 | * changed once the mesh is active. | 899 | * changed once the mesh is active. |
| 887 | * @NL80211_ATTR_MESH_CONFIG: Mesh configuration parameters, a nested attribute | 900 | * @NL80211_ATTR_MESH_CONFIG: Mesh configuration parameters, a nested attribute |
| 888 | * containing attributes from &enum nl80211_meshconf_params. | 901 | * containing attributes from &enum nl80211_meshconf_params. |
| 902 | * @NL80211_ATTR_SUPPORT_MESH_AUTH: Currently, this means the underlying driver | ||
| 903 | * allows auth frames in a mesh to be passed to userspace for processing via | ||
| 904 | * the @NL80211_MESH_SETUP_USERSPACE_AUTH flag. | ||
| 889 | * | 905 | * |
| 890 | * @NL80211_ATTR_MAX: highest attribute number currently defined | 906 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
| 891 | * @__NL80211_ATTR_AFTER_LAST: internal use | 907 | * @__NL80211_ATTR_AFTER_LAST: internal use |
| @@ -1074,6 +1090,8 @@ enum nl80211_attrs { | |||
| 1074 | NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX, | 1090 | NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX, |
| 1075 | NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX, | 1091 | NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX, |
| 1076 | 1092 | ||
| 1093 | NL80211_ATTR_SUPPORT_MESH_AUTH, | ||
| 1094 | |||
| 1077 | /* add attributes here, update the policy in nl80211.c */ | 1095 | /* add attributes here, update the policy in nl80211.c */ |
| 1078 | 1096 | ||
| 1079 | __NL80211_ATTR_AFTER_LAST, | 1097 | __NL80211_ATTR_AFTER_LAST, |
| @@ -1168,6 +1186,7 @@ enum nl80211_iftype { | |||
| 1168 | * with short barker preamble | 1186 | * with short barker preamble |
| 1169 | * @NL80211_STA_FLAG_WME: station is WME/QoS capable | 1187 | * @NL80211_STA_FLAG_WME: station is WME/QoS capable |
| 1170 | * @NL80211_STA_FLAG_MFP: station uses management frame protection | 1188 | * @NL80211_STA_FLAG_MFP: station uses management frame protection |
| 1189 | * @NL80211_STA_FLAG_AUTHENTICATED: station is authenticated | ||
| 1171 | * @NL80211_STA_FLAG_MAX: highest station flag number currently defined | 1190 | * @NL80211_STA_FLAG_MAX: highest station flag number currently defined |
| 1172 | * @__NL80211_STA_FLAG_AFTER_LAST: internal use | 1191 | * @__NL80211_STA_FLAG_AFTER_LAST: internal use |
| 1173 | */ | 1192 | */ |
| @@ -1177,6 +1196,7 @@ enum nl80211_sta_flags { | |||
| 1177 | NL80211_STA_FLAG_SHORT_PREAMBLE, | 1196 | NL80211_STA_FLAG_SHORT_PREAMBLE, |
| 1178 | NL80211_STA_FLAG_WME, | 1197 | NL80211_STA_FLAG_WME, |
| 1179 | NL80211_STA_FLAG_MFP, | 1198 | NL80211_STA_FLAG_MFP, |
| 1199 | NL80211_STA_FLAG_AUTHENTICATED, | ||
| 1180 | 1200 | ||
| 1181 | /* keep last */ | 1201 | /* keep last */ |
| 1182 | __NL80211_STA_FLAG_AFTER_LAST, | 1202 | __NL80211_STA_FLAG_AFTER_LAST, |
| @@ -1277,6 +1297,7 @@ enum nl80211_sta_bss_param { | |||
| 1277 | * attribute, like NL80211_STA_INFO_TX_BITRATE. | 1297 | * attribute, like NL80211_STA_INFO_TX_BITRATE. |
| 1278 | * @NL80211_STA_INFO_BSS_PARAM: current station's view of BSS, nested attribute | 1298 | * @NL80211_STA_INFO_BSS_PARAM: current station's view of BSS, nested attribute |
| 1279 | * containing info as possible, see &enum nl80211_sta_bss_param | 1299 | * containing info as possible, see &enum nl80211_sta_bss_param |
| 1300 | * @NL80211_STA_INFO_CONNECTED_TIME: time since the station is last connected | ||
| 1280 | * @__NL80211_STA_INFO_AFTER_LAST: internal | 1301 | * @__NL80211_STA_INFO_AFTER_LAST: internal |
| 1281 | * @NL80211_STA_INFO_MAX: highest possible station info attribute | 1302 | * @NL80211_STA_INFO_MAX: highest possible station info attribute |
| 1282 | */ | 1303 | */ |
| @@ -1297,6 +1318,7 @@ enum nl80211_sta_info { | |||
| 1297 | NL80211_STA_INFO_SIGNAL_AVG, | 1318 | NL80211_STA_INFO_SIGNAL_AVG, |
| 1298 | NL80211_STA_INFO_RX_BITRATE, | 1319 | NL80211_STA_INFO_RX_BITRATE, |
| 1299 | NL80211_STA_INFO_BSS_PARAM, | 1320 | NL80211_STA_INFO_BSS_PARAM, |
| 1321 | NL80211_STA_INFO_CONNECTED_TIME, | ||
| 1300 | 1322 | ||
| 1301 | /* keep last */ | 1323 | /* keep last */ |
| 1302 | __NL80211_STA_INFO_AFTER_LAST, | 1324 | __NL80211_STA_INFO_AFTER_LAST, |
| @@ -1719,9 +1741,12 @@ enum nl80211_meshconf_params { | |||
| 1719 | * vendor specific path metric or disable it to use the default Airtime | 1741 | * vendor specific path metric or disable it to use the default Airtime |
| 1720 | * metric. | 1742 | * metric. |
| 1721 | * | 1743 | * |
| 1722 | * @NL80211_MESH_SETUP_VENDOR_PATH_SEL_IE: A vendor specific information | 1744 | * @NL80211_MESH_SETUP_IE: Information elements for this mesh, for instance, a |
| 1723 | * element that vendors will use to identify the path selection methods and | 1745 | * robust security network ie, or a vendor specific information element that |
| 1724 | * metrics in use. | 1746 | * vendors will use to identify the path selection methods and metrics in use. |
| 1747 | * | ||
| 1748 | * @NL80211_MESH_SETUP_USERSPACE_AUTH: Enable this option if an authentication | ||
| 1749 | * daemon will be authenticating mesh candidates. | ||
| 1725 | * | 1750 | * |
| 1726 | * @NL80211_MESH_SETUP_ATTR_MAX: highest possible mesh setup attribute number | 1751 | * @NL80211_MESH_SETUP_ATTR_MAX: highest possible mesh setup attribute number |
| 1727 | * @__NL80211_MESH_SETUP_ATTR_AFTER_LAST: Internal use | 1752 | * @__NL80211_MESH_SETUP_ATTR_AFTER_LAST: Internal use |
| @@ -1730,7 +1755,8 @@ enum nl80211_mesh_setup_params { | |||
| 1730 | __NL80211_MESH_SETUP_INVALID, | 1755 | __NL80211_MESH_SETUP_INVALID, |
| 1731 | NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL, | 1756 | NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL, |
| 1732 | NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC, | 1757 | NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC, |
| 1733 | NL80211_MESH_SETUP_VENDOR_PATH_SEL_IE, | 1758 | NL80211_MESH_SETUP_IE, |
| 1759 | NL80211_MESH_SETUP_USERSPACE_AUTH, | ||
| 1734 | 1760 | ||
| 1735 | /* keep last */ | 1761 | /* keep last */ |
| 1736 | __NL80211_MESH_SETUP_ATTR_AFTER_LAST, | 1762 | __NL80211_MESH_SETUP_ATTR_AFTER_LAST, |
diff --git a/include/linux/rfkill-regulator.h b/include/linux/rfkill-regulator.h new file mode 100644 index 000000000000..aca36bc83315 --- /dev/null +++ b/include/linux/rfkill-regulator.h | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | /* | ||
| 2 | * rfkill-regulator.c - Regulator consumer driver for rfkill | ||
| 3 | * | ||
| 4 | * Copyright (C) 2009 Guiming Zhuo <gmzhuo@gmail.com> | ||
| 5 | * Copyright (C) 2011 Antonio Ospite <ospite@studenti.unina.it> | ||
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License version 2 as | ||
| 9 | * published by the Free Software Foundation. | ||
| 10 | * | ||
| 11 | */ | ||
| 12 | |||
| 13 | #ifndef __LINUX_RFKILL_REGULATOR_H | ||
| 14 | #define __LINUX_RFKILL_REGULATOR_H | ||
| 15 | |||
| 16 | /* | ||
| 17 | * Use "vrfkill" as supply id when declaring the regulator consumer: | ||
| 18 | * | ||
| 19 | * static struct regulator_consumer_supply pcap_regulator_V6_consumers [] = { | ||
| 20 | * { .dev_name = "rfkill-regulator.0", .supply = "vrfkill" }, | ||
| 21 | * }; | ||
| 22 | * | ||
| 23 | * If you have several regulator driven rfkill, you can append a numerical id to | ||
| 24 | * .dev_name as done above, and use the same id when declaring the platform | ||
| 25 | * device: | ||
| 26 | * | ||
| 27 | * static struct rfkill_regulator_platform_data ezx_rfkill_bt_data = { | ||
| 28 | * .name = "ezx-bluetooth", | ||
| 29 | * .type = RFKILL_TYPE_BLUETOOTH, | ||
| 30 | * }; | ||
| 31 | * | ||
| 32 | * static struct platform_device a910_rfkill = { | ||
| 33 | * .name = "rfkill-regulator", | ||
| 34 | * .id = 0, | ||
| 35 | * .dev = { | ||
| 36 | * .platform_data = &ezx_rfkill_bt_data, | ||
| 37 | * }, | ||
| 38 | * }; | ||
| 39 | */ | ||
| 40 | |||
| 41 | #include <linux/rfkill.h> | ||
| 42 | |||
| 43 | struct rfkill_regulator_platform_data { | ||
| 44 | char *name; /* the name for the rfkill switch */ | ||
| 45 | enum rfkill_type type; /* the type as specified in rfkill.h */ | ||
| 46 | }; | ||
| 47 | |||
| 48 | #endif /* __LINUX_RFKILL_REGULATOR_H */ | ||
