History

nl80211: Implement TX of control port frames

This commit implements the TX side of NL80211_CMD_CONTROL_PORT_FRAME. Userspace provides the raw EAPoL frame using NL80211_ATTR_FRAME. Userspace should also provide the destination address and the protocol type to use when sending the frame. This is used to implement TX of Pre-authentication frames. If CONTROL_PORT_ETHERTYPE_NO_ENCRYPT is specified, then the driver will be asked not to encrypt the outgoing frame. A new EXT_FEATURE flag is introduced so that nl80211 code can check whether a given wiphy has capability to pass EAPoL frames over nl80211.

Denis Kenzior committed 8 years ago

Commit 2576a9a1 parent 6a671a55 files · +123 −1Browse files

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

Unified · Split

include/uapi/linux/nl80211.h+3−0
@@ -5024,6 +5024,8 @@ enum nl80211_feature_flags { · 5023 unmodified lines
50245024 * channel change triggered by radar detection event.
50255025 * No need to start CAC from user-space, no need to react to
50265026 * "radar detected" event.
5027+ * @NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211: Driver supports sending and
5028+ * receiving control port frames over nl80211 instead of the netdevice.
50275029 *
50285030 * @NUM_NL80211_EXT_FEATURES: number of extended features.
50295031 * @MAX_NL80211_EXT_FEATURES: highest extended feature index.
@@ -5055,6 +5057,7 @@ enum nl80211_ext_feature_index { · 25 unmodified lines
50555057 NL80211_EXT_FEATURE_LOW_POWER_SCAN,
50565058 NL80211_EXT_FEATURE_HIGH_ACCURACY_SCAN,
50575059 NL80211_EXT_FEATURE_DFS_OFFLOAD,
5060+ NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211,
50585061
50595062 /* add new features before the definition below */
50605063 NUM_NL80211_EXT_FEATURES,