History

nl80211: add ability to report TX status for control port TX

This adds the necessary capabilities in nl80211 to allow drivers to assign a cookie to control port TX frames (returned via extack in the netlink ACK message of the command) and then later report the frame's status.

Markus Theil committed 6 years ago

Commit dca9ca21 parent 3c232157 files · +91 −14Browse files

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

Unified · Split

include/uapi/linux/nl80211.h+12−0
@@ -1164,6 +1164,12 @@ · 1163 unmodified lines
11641164 * dropped because it did not include a valid MME MIC while beacon
11651165 * protection was enabled (BIGTK configured in station mode).
11661166 *
1167+ * @NL80211_CMD_CONTROL_PORT_FRAME_TX_STATUS: Report TX status of a control
1168+ * port frame transmitted with %NL80211_CMD_CONTROL_PORT_FRAME.
1169+ * %NL80211_ATTR_COOKIE identifies the TX command and %NL80211_ATTR_FRAME
1170+ * includes the contents of the frame. %NL80211_ATTR_ACK flag is included
1171+ * if the recipient acknowledged the frame.
1172+ *
11671173 * @NL80211_CMD_MAX: highest used command number
11681174 * @__NL80211_CMD_AFTER_LAST: internal use
11691175 */
@@ -1392,6 +1398,8 @@ enum nl80211_commands { · 222 unmodified lines
13921398
13931399 NL80211_CMD_UNPROT_BEACON,
13941400
1401+ NL80211_CMD_CONTROL_PORT_FRAME_TX_STATUS,
1402+
13951403 /* add new commands above here */
13961404
13971405 /* used to define NL80211_CMD_MAX below */
@@ -5729,6 +5737,9 @@ enum nl80211_feature_flags { · 4331 unmodified lines
57295737 * report %NL80211_ATTR_SCAN_FREQ_KHZ, %NL80211_SCAN_FLAG_FREQ_KHZ must be
57305738 * included in the scan request.
57315739 *
5740+ * @NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211_TX_STATUS: The driver
5741+ * can report tx status for control port over nl80211 tx operations.
5742+ *
57325743 * @NUM_NL80211_EXT_FEATURES: number of extended features.
57335744 * @MAX_NL80211_EXT_FEATURES: highest extended feature index.
57345745 */
@@ -5783,6 +5794,7 @@ enum nl80211_ext_feature_index { · 48 unmodified lines
57835794 NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS,
57845795 NL80211_EXT_FEATURE_BEACON_PROTECTION_CLIENT,
57855796 NL80211_EXT_FEATURE_SCAN_FREQ_KHZ,
5797+ NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211_TX_STATUS,
57865798
57875799 /* add new features before the definition below */
57885800 NUM_NL80211_EXT_FEATURES,