diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/nl80211.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index f17307590e61..460b12a8ef66 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
@@ -499,6 +499,9 @@ | |||
499 | * this command may also be sent by the driver as an MLME event to | 499 | * this command may also be sent by the driver as an MLME event to |
500 | * inform userspace of the new replay counter. | 500 | * inform userspace of the new replay counter. |
501 | * | 501 | * |
502 | * @NL80211_CMD_PMKSA_CANDIDATE: This is used as an event to inform userspace | ||
503 | * of PMKSA caching dandidates. | ||
504 | * | ||
502 | * @NL80211_CMD_MAX: highest used command number | 505 | * @NL80211_CMD_MAX: highest used command number |
503 | * @__NL80211_CMD_AFTER_LAST: internal use | 506 | * @__NL80211_CMD_AFTER_LAST: internal use |
504 | */ | 507 | */ |
@@ -623,6 +626,8 @@ enum nl80211_commands { | |||
623 | 626 | ||
624 | NL80211_CMD_SET_REKEY_OFFLOAD, | 627 | NL80211_CMD_SET_REKEY_OFFLOAD, |
625 | 628 | ||
629 | NL80211_CMD_PMKSA_CANDIDATE, | ||
630 | |||
626 | /* add new commands above here */ | 631 | /* add new commands above here */ |
627 | 632 | ||
628 | /* used to define NL80211_CMD_MAX below */ | 633 | /* used to define NL80211_CMD_MAX below */ |
@@ -1070,6 +1075,9 @@ enum nl80211_commands { | |||
1070 | * @NL80211_ATTR_ROAM_SUPPORT: Indicates whether the firmware is capable of | 1075 | * @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. | 1076 | * roaming to another AP in the same ESS if the signal lever is low. |
1072 | * | 1077 | * |
1078 | * @NL80211_ATTR_PMKSA_CANDIDATE: Nested attribute containing the PMKSA caching | ||
1079 | * candidate information, see &enum nl80211_pmksa_candidate_attr. | ||
1080 | * | ||
1073 | * @NL80211_ATTR_MAX: highest attribute number currently defined | 1081 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
1074 | * @__NL80211_ATTR_AFTER_LAST: internal use | 1082 | * @__NL80211_ATTR_AFTER_LAST: internal use |
1075 | */ | 1083 | */ |
@@ -1288,6 +1296,8 @@ enum nl80211_attrs { | |||
1288 | NL80211_ATTR_SCHED_SCAN_MATCH, | 1296 | NL80211_ATTR_SCHED_SCAN_MATCH, |
1289 | NL80211_ATTR_MAX_MATCH_SETS, | 1297 | NL80211_ATTR_MAX_MATCH_SETS, |
1290 | 1298 | ||
1299 | NL80211_ATTR_PMKSA_CANDIDATE, | ||
1300 | |||
1291 | /* add attributes here, update the policy in nl80211.c */ | 1301 | /* add attributes here, update the policy in nl80211.c */ |
1292 | 1302 | ||
1293 | __NL80211_ATTR_AFTER_LAST, | 1303 | __NL80211_ATTR_AFTER_LAST, |
@@ -2558,4 +2568,27 @@ enum nl80211_sta_wme_attr { | |||
2558 | NL80211_STA_WME_MAX = __NL80211_STA_WME_AFTER_LAST - 1 | 2568 | NL80211_STA_WME_MAX = __NL80211_STA_WME_AFTER_LAST - 1 |
2559 | }; | 2569 | }; |
2560 | 2570 | ||
2571 | /** | ||
2572 | * enum nl80211_pmksa_candidate_attr - attributes for PMKSA caching candidates | ||
2573 | * @__NL80211_PMKSA_CANDIDATE_INVALID: invalid number for nested attributes | ||
2574 | * @NL80211_PMKSA_CANDIDATE_INDEX: candidate index (u32; the smaller, the higher | ||
2575 | * priority) | ||
2576 | * @NL80211_PMKSA_CANDIDATE_BSSID: candidate BSSID (6 octets) | ||
2577 | * @NL80211_PMKSA_CANDIDATE_PREAUTH: RSN pre-authentication supported (flag) | ||
2578 | * @NUM_NL80211_PMKSA_CANDIDATE: number of PMKSA caching candidate attributes | ||
2579 | * (internal) | ||
2580 | * @MAX_NL80211_PMKSA_CANDIDATE: highest PMKSA caching candidate attribute | ||
2581 | * (internal) | ||
2582 | */ | ||
2583 | enum nl80211_pmksa_candidate_attr { | ||
2584 | __NL80211_PMKSA_CANDIDATE_INVALID, | ||
2585 | NL80211_PMKSA_CANDIDATE_INDEX, | ||
2586 | NL80211_PMKSA_CANDIDATE_BSSID, | ||
2587 | NL80211_PMKSA_CANDIDATE_PREAUTH, | ||
2588 | |||
2589 | /* keep last */ | ||
2590 | NUM_NL80211_PMKSA_CANDIDATE, | ||
2591 | MAX_NL80211_PMKSA_CANDIDATE = NUM_NL80211_PMKSA_CANDIDATE - 1 | ||
2592 | }; | ||
2593 | |||
2561 | #endif /* __LINUX_NL80211_H */ | 2594 | #endif /* __LINUX_NL80211_H */ |