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.
Showing the changes to include/uapi/linux (1 of 5 files). Show all
Unified · Split
| @@ -5024,6 +5024,8 @@ enum nl80211_feature_flags { · 5023 unmodified lines | |||
| 5024 | * channel change triggered by radar detection event. | 5024 | * channel change triggered by radar detection event. |
| 5025 | * No need to start CAC from user-space, no need to react to | 5025 | * No need to start CAC from user-space, no need to react to |
| 5026 | * "radar detected" event. | 5026 | * "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. | ||
| 5027 | * | 5029 | * |
| 5028 | * @NUM_NL80211_EXT_FEATURES: number of extended features. | 5030 | * @NUM_NL80211_EXT_FEATURES: number of extended features. |
| 5029 | * @MAX_NL80211_EXT_FEATURES: highest extended feature index. | 5031 | * @MAX_NL80211_EXT_FEATURES: highest extended feature index. |
| @@ -5055,6 +5057,7 @@ enum nl80211_ext_feature_index { · 25 unmodified lines | |||
| 5055 | NL80211_EXT_FEATURE_LOW_POWER_SCAN, | 5057 | NL80211_EXT_FEATURE_LOW_POWER_SCAN, |
| 5056 | NL80211_EXT_FEATURE_HIGH_ACCURACY_SCAN, | 5058 | NL80211_EXT_FEATURE_HIGH_ACCURACY_SCAN, |
| 5057 | NL80211_EXT_FEATURE_DFS_OFFLOAD, | 5059 | NL80211_EXT_FEATURE_DFS_OFFLOAD, |
| 5060 | NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211, | ||
| 5058 | 5061 | ||
| 5059 | /* add new features before the definition below */ | 5062 | /* add new features before the definition below */ |
| 5060 | NUM_NL80211_EXT_FEATURES, | 5063 | NUM_NL80211_EXT_FEATURES, |