History

cfg80211: add flags to cfg80211_rx_mgmt()

Add flags intended to report various auxiliary information and introduce the NL80211_RXMGMT_FLAG_ANSWERED flag to report that the frame was already answered by the device.

Vladimir Kondratiev committed 13 years ago

Commit 19504cf1 parent c4c205f10 files · +34 −17Browse files

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

Unified · Split

include/uapi/linux/nl80211.h+16−0
@@ -1493,6 +1493,9 @@ enum nl80211_commands { · 1492 unmodified lines
14931493 * @NL80211_ATTR_CSA_C_OFF_PRESP: Offset of the channel switch counter
14941494 * field in the probe response (%NL80211_ATTR_PROBE_RESP).
14951495 *
1496+ * @NL80211_ATTR_RXMGMT_FLAGS: flags for nl80211_send_mgmt(), u32.
1497+ * As specified in the &enum nl80211_rxmgmt_flags.
1498+ *
14961499 * @NL80211_ATTR_MAX: highest attribute number currently defined
14971500 * @__NL80211_ATTR_AFTER_LAST: internal use
14981501 */
@@ -1801,6 +1804,8 @@ enum nl80211_attrs { · 302 unmodified lines
18011804 NL80211_ATTR_CSA_C_OFF_BEACON,
18021805 NL80211_ATTR_CSA_C_OFF_PRESP,
18031806
1807+ NL80211_ATTR_RXMGMT_FLAGS,
1808+
18041809 /* add attributes here, update the policy in nl80211.c */
18051810
18061811 __NL80211_ATTR_AFTER_LAST,
@@ -3901,4 +3906,15 @@ enum nl80211_crit_proto_id { · 2094 unmodified lines
39013906 /* maximum duration for critical protocol measures */
39023907 #define NL80211_CRIT_PROTO_MAX_DURATION 5000 /* msec */
39033908
3909+/**
3910+ * enum nl80211_rxmgmt_flags - flags for received management frame.
3911+ *
3912+ * Used by cfg80211_rx_mgmt()
3913+ *
3914+ * @NL80211_RXMGMT_FLAG_ANSWERED: frame was answered by device/driver.
3915+ */
3916+enum nl80211_rxmgmt_flags {
3917+ NL80211_RXMGMT_FLAG_ANSWERED = 1 << 0,
3918+};
3919+
39043920 #endif /* __LINUX_NL80211_H */