diff options
| author | Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> | 2013-08-15 07:51:28 -0400 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2013-08-23 10:06:03 -0400 |
| commit | 19504cf5f35fbe85db811fce9f4392a0cbdada2f (patch) | |
| tree | 29e8eaeb1a062cb3e843781c7dc4add821fd592b /include/uapi/linux | |
| parent | c4c205f3cd17b567b8e20098522416eac2e73960 (diff) | |
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.
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
[REPLIED->ANSWERED, reword commit message]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/nl80211.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h index 1f42bc3dcb9c..fde2c021b26d 100644 --- a/include/uapi/linux/nl80211.h +++ b/include/uapi/linux/nl80211.h | |||
| @@ -1493,6 +1493,9 @@ enum nl80211_commands { | |||
| 1493 | * @NL80211_ATTR_CSA_C_OFF_PRESP: Offset of the channel switch counter | 1493 | * @NL80211_ATTR_CSA_C_OFF_PRESP: Offset of the channel switch counter |
| 1494 | * field in the probe response (%NL80211_ATTR_PROBE_RESP). | 1494 | * field in the probe response (%NL80211_ATTR_PROBE_RESP). |
| 1495 | * | 1495 | * |
| 1496 | * @NL80211_ATTR_RXMGMT_FLAGS: flags for nl80211_send_mgmt(), u32. | ||
| 1497 | * As specified in the &enum nl80211_rxmgmt_flags. | ||
| 1498 | * | ||
| 1496 | * @NL80211_ATTR_MAX: highest attribute number currently defined | 1499 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
| 1497 | * @__NL80211_ATTR_AFTER_LAST: internal use | 1500 | * @__NL80211_ATTR_AFTER_LAST: internal use |
| 1498 | */ | 1501 | */ |
| @@ -1801,6 +1804,8 @@ enum nl80211_attrs { | |||
| 1801 | NL80211_ATTR_CSA_C_OFF_BEACON, | 1804 | NL80211_ATTR_CSA_C_OFF_BEACON, |
| 1802 | NL80211_ATTR_CSA_C_OFF_PRESP, | 1805 | NL80211_ATTR_CSA_C_OFF_PRESP, |
| 1803 | 1806 | ||
| 1807 | NL80211_ATTR_RXMGMT_FLAGS, | ||
| 1808 | |||
| 1804 | /* add attributes here, update the policy in nl80211.c */ | 1809 | /* add attributes here, update the policy in nl80211.c */ |
| 1805 | 1810 | ||
| 1806 | __NL80211_ATTR_AFTER_LAST, | 1811 | __NL80211_ATTR_AFTER_LAST, |
| @@ -3901,4 +3906,15 @@ enum nl80211_crit_proto_id { | |||
| 3901 | /* maximum duration for critical protocol measures */ | 3906 | /* maximum duration for critical protocol measures */ |
| 3902 | #define NL80211_CRIT_PROTO_MAX_DURATION 5000 /* msec */ | 3907 | #define NL80211_CRIT_PROTO_MAX_DURATION 5000 /* msec */ |
| 3903 | 3908 | ||
| 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 | |||
| 3904 | #endif /* __LINUX_NL80211_H */ | 3920 | #endif /* __LINUX_NL80211_H */ |
