diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/net/cfg80211.h | 41 | ||||
-rw-r--r-- | include/uapi/linux/nl80211.h | 19 |
2 files changed, 60 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 73a523901c73..dfef0d5b5d3d 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -1763,6 +1763,21 @@ struct cfg80211_gtk_rekey_data { | |||
1763 | }; | 1763 | }; |
1764 | 1764 | ||
1765 | /** | 1765 | /** |
1766 | * struct cfg80211_update_ft_ies_params - FT IE Information | ||
1767 | * | ||
1768 | * This structure provides information needed to update the fast transition IE | ||
1769 | * | ||
1770 | * @md: The Mobility Domain ID, 2 Octet value | ||
1771 | * @ie: Fast Transition IEs | ||
1772 | * @ie_len: Length of ft_ie in octets | ||
1773 | */ | ||
1774 | struct cfg80211_update_ft_ies_params { | ||
1775 | u16 md; | ||
1776 | const u8 *ie; | ||
1777 | size_t ie_len; | ||
1778 | }; | ||
1779 | |||
1780 | /** | ||
1766 | * struct cfg80211_ops - backend description for wireless configuration | 1781 | * struct cfg80211_ops - backend description for wireless configuration |
1767 | * | 1782 | * |
1768 | * This struct is registered by fullmac card drivers and/or wireless stacks | 1783 | * This struct is registered by fullmac card drivers and/or wireless stacks |
@@ -2208,6 +2223,8 @@ struct cfg80211_ops { | |||
2208 | int (*start_radar_detection)(struct wiphy *wiphy, | 2223 | int (*start_radar_detection)(struct wiphy *wiphy, |
2209 | struct net_device *dev, | 2224 | struct net_device *dev, |
2210 | struct cfg80211_chan_def *chandef); | 2225 | struct cfg80211_chan_def *chandef); |
2226 | int (*update_ft_ies)(struct wiphy *wiphy, struct net_device *dev, | ||
2227 | struct cfg80211_update_ft_ies_params *ftie); | ||
2211 | }; | 2228 | }; |
2212 | 2229 | ||
2213 | /* | 2230 | /* |
@@ -4045,6 +4062,30 @@ u32 cfg80211_calculate_bitrate(struct rate_info *rate); | |||
4045 | void cfg80211_unregister_wdev(struct wireless_dev *wdev); | 4062 | void cfg80211_unregister_wdev(struct wireless_dev *wdev); |
4046 | 4063 | ||
4047 | /** | 4064 | /** |
4065 | * struct cfg80211_ft_event - FT Information Elements | ||
4066 | * @ies: FT IEs | ||
4067 | * @ies_len: length of the FT IE in bytes | ||
4068 | * @target_ap: target AP's MAC address | ||
4069 | * @ric_ies: RIC IE | ||
4070 | * @ric_ies_len: length of the RIC IE in bytes | ||
4071 | */ | ||
4072 | struct cfg80211_ft_event_params { | ||
4073 | const u8 *ies; | ||
4074 | size_t ies_len; | ||
4075 | const u8 *target_ap; | ||
4076 | const u8 *ric_ies; | ||
4077 | size_t ric_ies_len; | ||
4078 | }; | ||
4079 | |||
4080 | /** | ||
4081 | * cfg80211_ft_event - notify userspace about FT IE and RIC IE | ||
4082 | * @netdev: network device | ||
4083 | * @ft_event: IE information | ||
4084 | */ | ||
4085 | void cfg80211_ft_event(struct net_device *netdev, | ||
4086 | struct cfg80211_ft_event_params *ft_event); | ||
4087 | |||
4088 | /** | ||
4048 | * cfg80211_get_p2p_attr - find and copy a P2P attribute from IE buffer | 4089 | * cfg80211_get_p2p_attr - find and copy a P2P attribute from IE buffer |
4049 | * @ies: the input IE buffer | 4090 | * @ies: the input IE buffer |
4050 | * @len: the input length | 4091 | * @len: the input length |
diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h index 2c3e88360037..2d0cff57ff89 100644 --- a/include/uapi/linux/nl80211.h +++ b/include/uapi/linux/nl80211.h | |||
@@ -629,6 +629,14 @@ | |||
629 | * i.e. features for the nl80211 protocol rather than device features. | 629 | * i.e. features for the nl80211 protocol rather than device features. |
630 | * Returns the features in the %NL80211_ATTR_PROTOCOL_FEATURES bitmap. | 630 | * Returns the features in the %NL80211_ATTR_PROTOCOL_FEATURES bitmap. |
631 | * | 631 | * |
632 | * @NL80211_CMD_UPDATE_FT_IES: Pass down the most up-to-date Fast Transition | ||
633 | * Information Element to the WLAN driver | ||
634 | * | ||
635 | * @NL80211_CMD_FT_EVENT: Send a Fast transition event from the WLAN driver | ||
636 | * to the supplicant. This will carry the target AP's MAC address along | ||
637 | * with the relevant Information Elements. This event is used to report | ||
638 | * received FT IEs (MDIE, FTIE, RSN IE, TIE, RICIE). | ||
639 | * | ||
632 | * @NL80211_CMD_MAX: highest used command number | 640 | * @NL80211_CMD_MAX: highest used command number |
633 | * @__NL80211_CMD_AFTER_LAST: internal use | 641 | * @__NL80211_CMD_AFTER_LAST: internal use |
634 | */ | 642 | */ |
@@ -785,6 +793,9 @@ enum nl80211_commands { | |||
785 | 793 | ||
786 | NL80211_CMD_GET_PROTOCOL_FEATURES, | 794 | NL80211_CMD_GET_PROTOCOL_FEATURES, |
787 | 795 | ||
796 | NL80211_CMD_UPDATE_FT_IES, | ||
797 | NL80211_CMD_FT_EVENT, | ||
798 | |||
788 | /* add new commands above here */ | 799 | /* add new commands above here */ |
789 | 800 | ||
790 | /* used to define NL80211_CMD_MAX below */ | 801 | /* used to define NL80211_CMD_MAX below */ |
@@ -1396,6 +1407,11 @@ enum nl80211_commands { | |||
1396 | * receiving the data for a single wiphy split across multiple | 1407 | * receiving the data for a single wiphy split across multiple |
1397 | * messages, given with wiphy dump message | 1408 | * messages, given with wiphy dump message |
1398 | * | 1409 | * |
1410 | * @NL80211_ATTR_MDID: Mobility Domain Identifier | ||
1411 | * | ||
1412 | * @NL80211_ATTR_IE_RIC: Resource Information Container Information | ||
1413 | * Element | ||
1414 | * | ||
1399 | * @NL80211_ATTR_MAX: highest attribute number currently defined | 1415 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
1400 | * @__NL80211_ATTR_AFTER_LAST: internal use | 1416 | * @__NL80211_ATTR_AFTER_LAST: internal use |
1401 | */ | 1417 | */ |
@@ -1688,6 +1704,9 @@ enum nl80211_attrs { | |||
1688 | NL80211_ATTR_DISABLE_VHT, | 1704 | NL80211_ATTR_DISABLE_VHT, |
1689 | NL80211_ATTR_VHT_CAPABILITY_MASK, | 1705 | NL80211_ATTR_VHT_CAPABILITY_MASK, |
1690 | 1706 | ||
1707 | NL80211_ATTR_MDID, | ||
1708 | NL80211_ATTR_IE_RIC, | ||
1709 | |||
1691 | /* add attributes here, update the policy in nl80211.c */ | 1710 | /* add attributes here, update the policy in nl80211.c */ |
1692 | 1711 | ||
1693 | __NL80211_ATTR_AFTER_LAST, | 1712 | __NL80211_ATTR_AFTER_LAST, |