diff options
| author | David S. Miller <davem@davemloft.net> | 2010-10-08 16:51:11 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2010-10-08 16:51:11 -0400 |
| commit | 9cf8d1a3b8cb19fa49494c1b8f0f9e3a37f2c218 (patch) | |
| tree | 0e9262488832ad27f6ba42680bf104872fa3c697 /include/linux | |
| parent | 8391d07b80e8da957cd888870e23f8e218438622 (diff) | |
| parent | e9a68707d736f4f73d7e209885d7b4c5c452b1dc (diff) | |
Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/nl80211.h | 25 | ||||
| -rw-r--r-- | include/linux/wl12xx.h | 13 |
2 files changed, 36 insertions, 2 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index f0518b0278a9..c08709fe36fc 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
| @@ -315,8 +315,8 @@ | |||
| 315 | * channel for the specified amount of time. This can be used to do | 315 | * channel for the specified amount of time. This can be used to do |
| 316 | * off-channel operations like transmit a Public Action frame and wait for | 316 | * off-channel operations like transmit a Public Action frame and wait for |
| 317 | * a response while being associated to an AP on another channel. | 317 | * a response while being associated to an AP on another channel. |
| 318 | * %NL80211_ATTR_WIPHY or %NL80211_ATTR_IFINDEX is used to specify which | 318 | * %NL80211_ATTR_IFINDEX is used to specify which interface (and thus |
| 319 | * radio is used. %NL80211_ATTR_WIPHY_FREQ is used to specify the | 319 | * radio) is used. %NL80211_ATTR_WIPHY_FREQ is used to specify the |
| 320 | * frequency for the operation and %NL80211_ATTR_WIPHY_CHANNEL_TYPE may be | 320 | * frequency for the operation and %NL80211_ATTR_WIPHY_CHANNEL_TYPE may be |
| 321 | * optionally used to specify additional channel parameters. | 321 | * optionally used to specify additional channel parameters. |
| 322 | * %NL80211_ATTR_DURATION is used to specify the duration in milliseconds | 322 | * %NL80211_ATTR_DURATION is used to specify the duration in milliseconds |
| @@ -387,6 +387,8 @@ | |||
| 387 | * of any other interfaces, and other interfaces will again take | 387 | * of any other interfaces, and other interfaces will again take |
| 388 | * precedence when they are used. | 388 | * precedence when they are used. |
| 389 | * | 389 | * |
| 390 | * @NL80211_CMD_SET_WDS_PEER: Set the MAC address of the peer on a WDS interface. | ||
| 391 | * | ||
| 390 | * @NL80211_CMD_MAX: highest used command number | 392 | * @NL80211_CMD_MAX: highest used command number |
| 391 | * @__NL80211_CMD_AFTER_LAST: internal use | 393 | * @__NL80211_CMD_AFTER_LAST: internal use |
| 392 | */ | 394 | */ |
| @@ -489,6 +491,7 @@ enum nl80211_commands { | |||
| 489 | NL80211_CMD_NOTIFY_CQM, | 491 | NL80211_CMD_NOTIFY_CQM, |
| 490 | 492 | ||
| 491 | NL80211_CMD_SET_CHANNEL, | 493 | NL80211_CMD_SET_CHANNEL, |
| 494 | NL80211_CMD_SET_WDS_PEER, | ||
| 492 | 495 | ||
| 493 | /* add new commands above here */ | 496 | /* add new commands above here */ |
| 494 | 497 | ||
| @@ -798,6 +801,9 @@ enum nl80211_commands { | |||
| 798 | * This is used in association with @NL80211_ATTR_WIPHY_TX_POWER_SETTING | 801 | * This is used in association with @NL80211_ATTR_WIPHY_TX_POWER_SETTING |
| 799 | * for non-automatic settings. | 802 | * for non-automatic settings. |
| 800 | * | 803 | * |
| 804 | * @NL80211_ATTR_SUPPORT_IBSS_RSN: The device supports IBSS RSN, which mostly | ||
| 805 | * means support for per-station GTKs. | ||
| 806 | * | ||
| 801 | * @NL80211_ATTR_MAX: highest attribute number currently defined | 807 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
| 802 | * @__NL80211_ATTR_AFTER_LAST: internal use | 808 | * @__NL80211_ATTR_AFTER_LAST: internal use |
| 803 | */ | 809 | */ |
| @@ -965,6 +971,8 @@ enum nl80211_attrs { | |||
| 965 | NL80211_ATTR_CONTROL_PORT_ETHERTYPE, | 971 | NL80211_ATTR_CONTROL_PORT_ETHERTYPE, |
| 966 | NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT, | 972 | NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT, |
| 967 | 973 | ||
| 974 | NL80211_ATTR_SUPPORT_IBSS_RSN, | ||
| 975 | |||
| 968 | /* add attributes here, update the policy in nl80211.c */ | 976 | /* add attributes here, update the policy in nl80211.c */ |
| 969 | 977 | ||
| 970 | __NL80211_ATTR_AFTER_LAST, | 978 | __NL80211_ATTR_AFTER_LAST, |
| @@ -1129,6 +1137,8 @@ enum nl80211_rate_info { | |||
| 1129 | * @NL80211_STA_INFO_RX_PACKETS: total received packet (u32, from this station) | 1137 | * @NL80211_STA_INFO_RX_PACKETS: total received packet (u32, from this station) |
| 1130 | * @NL80211_STA_INFO_TX_PACKETS: total transmitted packets (u32, to this | 1138 | * @NL80211_STA_INFO_TX_PACKETS: total transmitted packets (u32, to this |
| 1131 | * station) | 1139 | * station) |
| 1140 | * @NL80211_STA_INFO_TX_RETRIES: total retries (u32, to this station) | ||
| 1141 | * @NL80211_STA_INFO_TX_FAILED: total failed packets (u32, to this station) | ||
| 1132 | */ | 1142 | */ |
| 1133 | enum nl80211_sta_info { | 1143 | enum nl80211_sta_info { |
| 1134 | __NL80211_STA_INFO_INVALID, | 1144 | __NL80211_STA_INFO_INVALID, |
| @@ -1142,6 +1152,8 @@ enum nl80211_sta_info { | |||
| 1142 | NL80211_STA_INFO_TX_BITRATE, | 1152 | NL80211_STA_INFO_TX_BITRATE, |
| 1143 | NL80211_STA_INFO_RX_PACKETS, | 1153 | NL80211_STA_INFO_RX_PACKETS, |
| 1144 | NL80211_STA_INFO_TX_PACKETS, | 1154 | NL80211_STA_INFO_TX_PACKETS, |
| 1155 | NL80211_STA_INFO_TX_RETRIES, | ||
| 1156 | NL80211_STA_INFO_TX_FAILED, | ||
| 1145 | 1157 | ||
| 1146 | /* keep last */ | 1158 | /* keep last */ |
| 1147 | __NL80211_STA_INFO_AFTER_LAST, | 1159 | __NL80211_STA_INFO_AFTER_LAST, |
| @@ -1400,6 +1412,7 @@ enum nl80211_reg_rule_flags { | |||
| 1400 | * @__NL80211_SURVEY_INFO_INVALID: attribute number 0 is reserved | 1412 | * @__NL80211_SURVEY_INFO_INVALID: attribute number 0 is reserved |
| 1401 | * @NL80211_SURVEY_INFO_FREQUENCY: center frequency of channel | 1413 | * @NL80211_SURVEY_INFO_FREQUENCY: center frequency of channel |
| 1402 | * @NL80211_SURVEY_INFO_NOISE: noise level of channel (u8, dBm) | 1414 | * @NL80211_SURVEY_INFO_NOISE: noise level of channel (u8, dBm) |
| 1415 | * @NL80211_SURVEY_INFO_IN_USE: channel is currently being used | ||
| 1403 | * @NL80211_SURVEY_INFO_MAX: highest survey info attribute number | 1416 | * @NL80211_SURVEY_INFO_MAX: highest survey info attribute number |
| 1404 | * currently defined | 1417 | * currently defined |
| 1405 | * @__NL80211_SURVEY_INFO_AFTER_LAST: internal use | 1418 | * @__NL80211_SURVEY_INFO_AFTER_LAST: internal use |
| @@ -1408,6 +1421,7 @@ enum nl80211_survey_info { | |||
| 1408 | __NL80211_SURVEY_INFO_INVALID, | 1421 | __NL80211_SURVEY_INFO_INVALID, |
| 1409 | NL80211_SURVEY_INFO_FREQUENCY, | 1422 | NL80211_SURVEY_INFO_FREQUENCY, |
| 1410 | NL80211_SURVEY_INFO_NOISE, | 1423 | NL80211_SURVEY_INFO_NOISE, |
| 1424 | NL80211_SURVEY_INFO_IN_USE, | ||
| 1411 | 1425 | ||
| 1412 | /* keep last */ | 1426 | /* keep last */ |
| 1413 | __NL80211_SURVEY_INFO_AFTER_LAST, | 1427 | __NL80211_SURVEY_INFO_AFTER_LAST, |
| @@ -1654,11 +1668,14 @@ enum nl80211_auth_type { | |||
| 1654 | * @NL80211_KEYTYPE_GROUP: Group (broadcast/multicast) key | 1668 | * @NL80211_KEYTYPE_GROUP: Group (broadcast/multicast) key |
| 1655 | * @NL80211_KEYTYPE_PAIRWISE: Pairwise (unicast/individual) key | 1669 | * @NL80211_KEYTYPE_PAIRWISE: Pairwise (unicast/individual) key |
| 1656 | * @NL80211_KEYTYPE_PEERKEY: PeerKey (DLS) | 1670 | * @NL80211_KEYTYPE_PEERKEY: PeerKey (DLS) |
| 1671 | * @NUM_NL80211_KEYTYPES: number of defined key types | ||
| 1657 | */ | 1672 | */ |
| 1658 | enum nl80211_key_type { | 1673 | enum nl80211_key_type { |
| 1659 | NL80211_KEYTYPE_GROUP, | 1674 | NL80211_KEYTYPE_GROUP, |
| 1660 | NL80211_KEYTYPE_PAIRWISE, | 1675 | NL80211_KEYTYPE_PAIRWISE, |
| 1661 | NL80211_KEYTYPE_PEERKEY, | 1676 | NL80211_KEYTYPE_PEERKEY, |
| 1677 | |||
| 1678 | NUM_NL80211_KEYTYPES | ||
| 1662 | }; | 1679 | }; |
| 1663 | 1680 | ||
| 1664 | /** | 1681 | /** |
| @@ -1689,6 +1706,9 @@ enum nl80211_wpa_versions { | |||
| 1689 | * CCMP keys, each six bytes in little endian | 1706 | * CCMP keys, each six bytes in little endian |
| 1690 | * @NL80211_KEY_DEFAULT: flag indicating default key | 1707 | * @NL80211_KEY_DEFAULT: flag indicating default key |
| 1691 | * @NL80211_KEY_DEFAULT_MGMT: flag indicating default management key | 1708 | * @NL80211_KEY_DEFAULT_MGMT: flag indicating default management key |
| 1709 | * @NL80211_KEY_TYPE: the key type from enum nl80211_key_type, if not | ||
| 1710 | * specified the default depends on whether a MAC address was | ||
| 1711 | * given with the command using the key or not (u32) | ||
| 1692 | * @__NL80211_KEY_AFTER_LAST: internal | 1712 | * @__NL80211_KEY_AFTER_LAST: internal |
| 1693 | * @NL80211_KEY_MAX: highest key attribute | 1713 | * @NL80211_KEY_MAX: highest key attribute |
| 1694 | */ | 1714 | */ |
| @@ -1700,6 +1720,7 @@ enum nl80211_key_attributes { | |||
| 1700 | NL80211_KEY_SEQ, | 1720 | NL80211_KEY_SEQ, |
| 1701 | NL80211_KEY_DEFAULT, | 1721 | NL80211_KEY_DEFAULT, |
| 1702 | NL80211_KEY_DEFAULT_MGMT, | 1722 | NL80211_KEY_DEFAULT_MGMT, |
| 1723 | NL80211_KEY_TYPE, | ||
| 1703 | 1724 | ||
| 1704 | /* keep last */ | 1725 | /* keep last */ |
| 1705 | __NL80211_KEY_AFTER_LAST, | 1726 | __NL80211_KEY_AFTER_LAST, |
diff --git a/include/linux/wl12xx.h b/include/linux/wl12xx.h index 95deae3968f4..4f902e1908aa 100644 --- a/include/linux/wl12xx.h +++ b/include/linux/wl12xx.h | |||
| @@ -32,7 +32,20 @@ struct wl12xx_platform_data { | |||
| 32 | int board_ref_clock; | 32 | int board_ref_clock; |
| 33 | }; | 33 | }; |
| 34 | 34 | ||
| 35 | #ifdef CONFIG_WL12XX_PLATFORM_DATA | ||
| 36 | |||
| 35 | int wl12xx_set_platform_data(const struct wl12xx_platform_data *data); | 37 | int wl12xx_set_platform_data(const struct wl12xx_platform_data *data); |
| 38 | |||
| 39 | #else | ||
| 40 | |||
| 41 | static inline | ||
| 42 | int wl12xx_set_platform_data(const struct wl12xx_platform_data *data) | ||
| 43 | { | ||
| 44 | return -ENOSYS; | ||
| 45 | } | ||
| 46 | |||
| 47 | #endif | ||
| 48 | |||
| 36 | const struct wl12xx_platform_data *wl12xx_get_platform_data(void); | 49 | const struct wl12xx_platform_data *wl12xx_get_platform_data(void); |
| 37 | 50 | ||
| 38 | #endif | 51 | #endif |
