aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2011-09-30 14:52:16 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-09-30 14:52:29 -0400
commit8e00f5fbb4ecbc3431fa686cba60cd76a62604af (patch)
tree78aa3bdef892dbd1afc8969fc528e529cfc266f7 /include/linux
parent56fd49e399ce1d82200fad5b8924d4e35a587809 (diff)
parent0874073570d9184a169a4ae2abbe8dbcb71878e9 (diff)
Merge branch 'master' of git://git.infradead.org/users/linville/wireless-next into for-davem
Conflicts: drivers/net/wireless/iwlwifi/iwl-pci.c drivers/net/wireless/wl12xx/main.c
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/bcma/bcma_driver_chipcommon.h9
-rw-r--r--include/linux/ieee80211.h10
-rw-r--r--include/linux/nfc.h6
-rw-r--r--include/linux/nl80211.h46
4 files changed, 71 insertions, 0 deletions
diff --git a/include/linux/bcma/bcma_driver_chipcommon.h b/include/linux/bcma/bcma_driver_chipcommon.h
index a7ae33d06f24..1526d965ed06 100644
--- a/include/linux/bcma/bcma_driver_chipcommon.h
+++ b/include/linux/bcma/bcma_driver_chipcommon.h
@@ -378,4 +378,13 @@ u32 bcma_chipco_gpio_polarity(struct bcma_drv_cc *cc, u32 mask, u32 value);
378/* PMU support */ 378/* PMU support */
379extern void bcma_pmu_init(struct bcma_drv_cc *cc); 379extern void bcma_pmu_init(struct bcma_drv_cc *cc);
380 380
381extern void bcma_chipco_pll_write(struct bcma_drv_cc *cc, u32 offset,
382 u32 value);
383extern void bcma_chipco_pll_maskset(struct bcma_drv_cc *cc, u32 offset,
384 u32 mask, u32 set);
385extern void bcma_chipco_chipctl_maskset(struct bcma_drv_cc *cc,
386 u32 offset, u32 mask, u32 set);
387extern void bcma_chipco_regctl_maskset(struct bcma_drv_cc *cc,
388 u32 offset, u32 mask, u32 set);
389
381#endif /* LINUX_BCMA_DRIVER_CC_H_ */ 390#endif /* LINUX_BCMA_DRIVER_CC_H_ */
diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h
index 72f3933938c0..b5e0a5c344fd 100644
--- a/include/linux/ieee80211.h
+++ b/include/linux/ieee80211.h
@@ -777,6 +777,13 @@ struct ieee80211_mmie {
777 u8 mic[8]; 777 u8 mic[8];
778} __attribute__ ((packed)); 778} __attribute__ ((packed));
779 779
780struct ieee80211_vendor_ie {
781 u8 element_id;
782 u8 len;
783 u8 oui[3];
784 u8 oui_type;
785} __packed;
786
780/* Control frames */ 787/* Control frames */
781struct ieee80211_rts { 788struct ieee80211_rts {
782 __le16 frame_control; 789 __le16 frame_control;
@@ -1470,6 +1477,9 @@ enum ieee80211_sa_query_action {
1470 1477
1471#define WLAN_PMKID_LEN 16 1478#define WLAN_PMKID_LEN 16
1472 1479
1480#define WLAN_OUI_WFA 0x506f9a
1481#define WLAN_OUI_TYPE_WFA_P2P 9
1482
1473/* 1483/*
1474 * WMM/802.11e Tspec Element 1484 * WMM/802.11e Tspec Element
1475 */ 1485 */
diff --git a/include/linux/nfc.h b/include/linux/nfc.h
index c525e0b5876b..36cb955b05cc 100644
--- a/include/linux/nfc.h
+++ b/include/linux/nfc.h
@@ -39,6 +39,10 @@
39 * 39 *
40 * @NFC_CMD_GET_DEVICE: request information about a device (requires 40 * @NFC_CMD_GET_DEVICE: request information about a device (requires
41 * %NFC_ATTR_DEVICE_INDEX) or dump request to get a list of all nfc devices 41 * %NFC_ATTR_DEVICE_INDEX) or dump request to get a list of all nfc devices
42 * @NFC_CMD_DEV_UP: turn on the nfc device
43 * (requires %NFC_ATTR_DEVICE_INDEX)
44 * @NFC_CMD_DEV_DOWN: turn off the nfc device
45 * (requires %NFC_ATTR_DEVICE_INDEX)
42 * @NFC_CMD_START_POLL: start polling for targets using the given protocols 46 * @NFC_CMD_START_POLL: start polling for targets using the given protocols
43 * (requires %NFC_ATTR_DEVICE_INDEX and %NFC_ATTR_PROTOCOLS) 47 * (requires %NFC_ATTR_DEVICE_INDEX and %NFC_ATTR_PROTOCOLS)
44 * @NFC_CMD_STOP_POLL: stop polling for targets (requires 48 * @NFC_CMD_STOP_POLL: stop polling for targets (requires
@@ -56,6 +60,8 @@
56enum nfc_commands { 60enum nfc_commands {
57 NFC_CMD_UNSPEC, 61 NFC_CMD_UNSPEC,
58 NFC_CMD_GET_DEVICE, 62 NFC_CMD_GET_DEVICE,
63 NFC_CMD_DEV_UP,
64 NFC_CMD_DEV_DOWN,
59 NFC_CMD_START_POLL, 65 NFC_CMD_START_POLL,
60 NFC_CMD_STOP_POLL, 66 NFC_CMD_STOP_POLL,
61 NFC_CMD_GET_TARGET, 67 NFC_CMD_GET_TARGET,
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h
index f17307590e61..c73582fb9d20 100644
--- a/include/linux/nl80211.h
+++ b/include/linux/nl80211.h
@@ -238,6 +238,8 @@
238 * 238 *
239 * @NL80211_CMD_GET_SCAN: get scan results 239 * @NL80211_CMD_GET_SCAN: get scan results
240 * @NL80211_CMD_TRIGGER_SCAN: trigger a new scan with the given parameters 240 * @NL80211_CMD_TRIGGER_SCAN: trigger a new scan with the given parameters
241 * %NL80211_ATTR_TX_NO_CCK_RATE is used to decide whether to send the
242 * probe requests at CCK rate or not.
241 * @NL80211_CMD_NEW_SCAN_RESULTS: scan notification (as a reply to 243 * @NL80211_CMD_NEW_SCAN_RESULTS: scan notification (as a reply to
242 * NL80211_CMD_GET_SCAN and on the "scan" multicast group) 244 * NL80211_CMD_GET_SCAN and on the "scan" multicast group)
243 * @NL80211_CMD_SCAN_ABORTED: scan was aborted, for unspecified reasons, 245 * @NL80211_CMD_SCAN_ABORTED: scan was aborted, for unspecified reasons,
@@ -432,6 +434,8 @@
432 * specified using %NL80211_ATTR_DURATION. When called, this operation 434 * specified using %NL80211_ATTR_DURATION. When called, this operation
433 * returns a cookie (%NL80211_ATTR_COOKIE) that will be included with the 435 * returns a cookie (%NL80211_ATTR_COOKIE) that will be included with the
434 * TX status event pertaining to the TX request. 436 * TX status event pertaining to the TX request.
437 * %NL80211_ATTR_TX_NO_CCK_RATE is used to decide whether to send the
438 * management frames at CCK rate or not in 2GHz band.
435 * @NL80211_CMD_FRAME_WAIT_CANCEL: When an off-channel TX was requested, this 439 * @NL80211_CMD_FRAME_WAIT_CANCEL: When an off-channel TX was requested, this
436 * command may be used with the corresponding cookie to cancel the wait 440 * command may be used with the corresponding cookie to cancel the wait
437 * time if it is known that it is no longer necessary. 441 * time if it is known that it is no longer necessary.
@@ -499,6 +503,9 @@
499 * this command may also be sent by the driver as an MLME event to 503 * this command may also be sent by the driver as an MLME event to
500 * inform userspace of the new replay counter. 504 * inform userspace of the new replay counter.
501 * 505 *
506 * @NL80211_CMD_PMKSA_CANDIDATE: This is used as an event to inform userspace
507 * of PMKSA caching dandidates.
508 *
502 * @NL80211_CMD_MAX: highest used command number 509 * @NL80211_CMD_MAX: highest used command number
503 * @__NL80211_CMD_AFTER_LAST: internal use 510 * @__NL80211_CMD_AFTER_LAST: internal use
504 */ 511 */
@@ -623,6 +630,8 @@ enum nl80211_commands {
623 630
624 NL80211_CMD_SET_REKEY_OFFLOAD, 631 NL80211_CMD_SET_REKEY_OFFLOAD,
625 632
633 NL80211_CMD_PMKSA_CANDIDATE,
634
626 /* add new commands above here */ 635 /* add new commands above here */
627 636
628 /* used to define NL80211_CMD_MAX below */ 637 /* used to define NL80211_CMD_MAX below */
@@ -1070,6 +1079,16 @@ enum nl80211_commands {
1070 * @NL80211_ATTR_ROAM_SUPPORT: Indicates whether the firmware is capable of 1079 * @NL80211_ATTR_ROAM_SUPPORT: Indicates whether the firmware is capable of
1071 * roaming to another AP in the same ESS if the signal lever is low. 1080 * roaming to another AP in the same ESS if the signal lever is low.
1072 * 1081 *
1082 * @NL80211_ATTR_PMKSA_CANDIDATE: Nested attribute containing the PMKSA caching
1083 * candidate information, see &enum nl80211_pmksa_candidate_attr.
1084 *
1085 * @NL80211_ATTR_TX_NO_CCK_RATE: Indicates whether to use CCK rate or not
1086 * for management frames transmission. In order to avoid p2p probe/action
1087 * frames are being transmitted at CCK rate in 2GHz band, the user space
1088 * applications use this attribute.
1089 * This attribute is used with %NL80211_CMD_TRIGGER_SCAN and
1090 * %NL80211_CMD_FRAME commands.
1091 *
1073 * @NL80211_ATTR_MAX: highest attribute number currently defined 1092 * @NL80211_ATTR_MAX: highest attribute number currently defined
1074 * @__NL80211_ATTR_AFTER_LAST: internal use 1093 * @__NL80211_ATTR_AFTER_LAST: internal use
1075 */ 1094 */
@@ -1288,6 +1307,10 @@ enum nl80211_attrs {
1288 NL80211_ATTR_SCHED_SCAN_MATCH, 1307 NL80211_ATTR_SCHED_SCAN_MATCH,
1289 NL80211_ATTR_MAX_MATCH_SETS, 1308 NL80211_ATTR_MAX_MATCH_SETS,
1290 1309
1310 NL80211_ATTR_PMKSA_CANDIDATE,
1311
1312 NL80211_ATTR_TX_NO_CCK_RATE,
1313
1291 /* add attributes here, update the policy in nl80211.c */ 1314 /* add attributes here, update the policy in nl80211.c */
1292 1315
1293 __NL80211_ATTR_AFTER_LAST, 1316 __NL80211_ATTR_AFTER_LAST,
@@ -2558,4 +2581,27 @@ enum nl80211_sta_wme_attr {
2558 NL80211_STA_WME_MAX = __NL80211_STA_WME_AFTER_LAST - 1 2581 NL80211_STA_WME_MAX = __NL80211_STA_WME_AFTER_LAST - 1
2559}; 2582};
2560 2583
2584/**
2585 * enum nl80211_pmksa_candidate_attr - attributes for PMKSA caching candidates
2586 * @__NL80211_PMKSA_CANDIDATE_INVALID: invalid number for nested attributes
2587 * @NL80211_PMKSA_CANDIDATE_INDEX: candidate index (u32; the smaller, the higher
2588 * priority)
2589 * @NL80211_PMKSA_CANDIDATE_BSSID: candidate BSSID (6 octets)
2590 * @NL80211_PMKSA_CANDIDATE_PREAUTH: RSN pre-authentication supported (flag)
2591 * @NUM_NL80211_PMKSA_CANDIDATE: number of PMKSA caching candidate attributes
2592 * (internal)
2593 * @MAX_NL80211_PMKSA_CANDIDATE: highest PMKSA caching candidate attribute
2594 * (internal)
2595 */
2596enum nl80211_pmksa_candidate_attr {
2597 __NL80211_PMKSA_CANDIDATE_INVALID,
2598 NL80211_PMKSA_CANDIDATE_INDEX,
2599 NL80211_PMKSA_CANDIDATE_BSSID,
2600 NL80211_PMKSA_CANDIDATE_PREAUTH,
2601
2602 /* keep last */
2603 NUM_NL80211_PMKSA_CANDIDATE,
2604 MAX_NL80211_PMKSA_CANDIDATE = NUM_NL80211_PMKSA_CANDIDATE - 1
2605};
2606
2561#endif /* __LINUX_NL80211_H */ 2607#endif /* __LINUX_NL80211_H */