History

nl80211: Add CONTROL_PORT_OVER_NL80211 attribute

Denis Kenzior committed 8 years ago

Commit 64bf3d41 parent 2576a9a3 files · +42 −1Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/nl80211.h+13−1
@@ -542,7 +542,8 @@ · 541 unmodified lines
542542 * IEs in %NL80211_ATTR_IE, %NL80211_ATTR_AUTH_TYPE, %NL80211_ATTR_USE_MFP,
543543 * %NL80211_ATTR_MAC, %NL80211_ATTR_WIPHY_FREQ, %NL80211_ATTR_CONTROL_PORT,
544544 * %NL80211_ATTR_CONTROL_PORT_ETHERTYPE,
545− * %NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT, %NL80211_ATTR_MAC_HINT, and
545+ * %NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT,
546+ * %NL80211_ATTR_CONTROL_PORT_OVER_NL80211, %NL80211_ATTR_MAC_HINT, and
546547 * %NL80211_ATTR_WIPHY_FREQ_HINT.
547548 * If included, %NL80211_ATTR_MAC and %NL80211_ATTR_WIPHY_FREQ are
548549 * restrictions on BSS selection, i.e., they effectively prevent roaming
@@ -1488,6 +1489,15 @@ enum nl80211_commands { · 939 unmodified lines
14881489 * @NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT: When included along with
14891490 * %NL80211_ATTR_CONTROL_PORT_ETHERTYPE, indicates that the custom
14901491 * ethertype frames used for key negotiation must not be encrypted.
1492+ * @NL80211_ATTR_CONTROL_PORT_OVER_NL80211: A flag indicating whether control
1493+ * port frames (e.g. of type given in %NL80211_ATTR_CONTROL_PORT_ETHERTYPE)
1494+ * will be sent directly to the network interface or sent via the NL80211
1495+ * socket. If this attribute is missing, then legacy behavior of sending
1496+ * control port frames directly to the network interface is used. If the
1497+ * flag is included, then control port frames are sent over NL80211 instead
1498+ * using %CMD_CONTROL_PORT_FRAME. If control port routing over NL80211 is
1499+ * to be used then userspace must also use the %NL80211_ATTR_SOCKET_OWNER
1500+ * flag.
14911501 *
14921502 * @NL80211_ATTR_TESTDATA: Testmode data blob, passed through to the driver.
14931503 * We recommend using nested, driver-specific attributes within this.
@@ -2647,6 +2657,8 @@ enum nl80211_attrs { · 1153 unmodified lines
26472657 NL80211_ATTR_NSS,
26482658 NL80211_ATTR_ACK_SIGNAL,
26492659
2660+ NL80211_ATTR_CONTROL_PORT_OVER_NL80211,
2661+
26502662 /* add attributes here, update the policy in nl80211.c */
26512663
26522664 __NL80211_ATTR_AFTER_LAST,