diff options
author | Javier Cardona <javier@cozybit.com> | 2011-04-07 18:08:28 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-12 16:57:37 -0400 |
commit | 15d5dda623139bbf6165030fc251bbd5798f4130 (patch) | |
tree | 3adb84ef7d65fd274008d950ad99434e1a3a28a7 /include/net/cfg80211.h | |
parent | 581a8b0feeed8877aab3a8ca4c972419790cd07f (diff) |
cfg80211/nl80211: Add userspace authentication flag to mesh setup
During mesh setup, use NL80211_MESH_SETUP_USERSPACE_AUTH flag to create
a secure mesh and route management frames to userspace.
Also, NL80211_CMD_GET_WIPHY now returns a flag NL80211_SUPPORT_MESH_AUTH
if the wiphy's mesh implementation supports routing of mesh auth frames
to userspace. This is useful for forward compatibility between old
kernels and new userspace tools.
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r-- | include/net/cfg80211.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 1d02ddf5a8a3..e77603bd1630 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -691,6 +691,7 @@ struct mesh_config { | |||
691 | * @path_metric: which metric to use | 691 | * @path_metric: which metric to use |
692 | * @ie: vendor information elements (optional) | 692 | * @ie: vendor information elements (optional) |
693 | * @ie_len: length of vendor information elements | 693 | * @ie_len: length of vendor information elements |
694 | * @is_secure: or not | ||
694 | * | 695 | * |
695 | * These parameters are fixed when the mesh is created. | 696 | * These parameters are fixed when the mesh is created. |
696 | */ | 697 | */ |
@@ -701,6 +702,7 @@ struct mesh_setup { | |||
701 | u8 path_metric; | 702 | u8 path_metric; |
702 | const u8 *ie; | 703 | const u8 *ie; |
703 | u8 ie_len; | 704 | u8 ie_len; |
705 | bool is_secure; | ||
704 | }; | 706 | }; |
705 | 707 | ||
706 | /** | 708 | /** |
@@ -1451,6 +1453,8 @@ struct cfg80211_ops { | |||
1451 | * @WIPHY_FLAG_IBSS_RSN: The device supports IBSS RSN. | 1453 | * @WIPHY_FLAG_IBSS_RSN: The device supports IBSS RSN. |
1452 | * @WIPHY_FLAG_SUPPORTS_SEPARATE_DEFAULT_KEYS: The device supports separate | 1454 | * @WIPHY_FLAG_SUPPORTS_SEPARATE_DEFAULT_KEYS: The device supports separate |
1453 | * unicast and multicast TX keys. | 1455 | * unicast and multicast TX keys. |
1456 | * @WIPHY_FLAG_MESH_AUTH: The device supports mesh authentication by routing | ||
1457 | * auth frames to userspace. See @NL80211_MESH_SETUP_USERSPACE_AUTH. | ||
1454 | */ | 1458 | */ |
1455 | enum wiphy_flags { | 1459 | enum wiphy_flags { |
1456 | WIPHY_FLAG_CUSTOM_REGULATORY = BIT(0), | 1460 | WIPHY_FLAG_CUSTOM_REGULATORY = BIT(0), |
@@ -1463,6 +1467,7 @@ enum wiphy_flags { | |||
1463 | WIPHY_FLAG_CONTROL_PORT_PROTOCOL = BIT(7), | 1467 | WIPHY_FLAG_CONTROL_PORT_PROTOCOL = BIT(7), |
1464 | WIPHY_FLAG_IBSS_RSN = BIT(8), | 1468 | WIPHY_FLAG_IBSS_RSN = BIT(8), |
1465 | WIPHY_FLAG_SUPPORTS_SEPARATE_DEFAULT_KEYS= BIT(9), | 1469 | WIPHY_FLAG_SUPPORTS_SEPARATE_DEFAULT_KEYS= BIT(9), |
1470 | WIPHY_FLAG_MESH_AUTH = BIT(10), | ||
1466 | }; | 1471 | }; |
1467 | 1472 | ||
1468 | struct mac_address { | 1473 | struct mac_address { |