History

cfg80211: add support for parsing OBBS_PD attributes

Add the data structure, policy and parsing code allowing userland to send the OBSS PD information into the kernel.

John Crispin committed 7 years ago

Commit 796e90f1 parent 52dba8d3 files · +87 −0Browse files

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

Unified · Split

include/uapi/linux/nl80211.h+27−0
@@ -2358,6 +2358,9 @@ enum nl80211_commands { · 2357 unmodified lines
23582358 *
23592359 * @NL80211_ATTR_TWT_RESPONDER: Enable target wait time responder support.
23602360 *
2361+ * @NL80211_ATTR_HE_OBSS_PD: nested attribute for OBSS Packet Detection
2362+ * functionality.
2363+ *
23612364 * @NUM_NL80211_ATTR: total number of nl80211_attrs available
23622365 * @NL80211_ATTR_MAX: highest attribute number currently defined
23632366 * @__NL80211_ATTR_AFTER_LAST: internal use
@@ -2815,6 +2818,8 @@ enum nl80211_attrs { · 451 unmodified lines
28152818
28162819 NL80211_ATTR_TWT_RESPONDER,
28172820
2821+ NL80211_ATTR_HE_OBSS_PD,
2822+
28182823 /* add attributes here, update the policy in nl80211.c */
28192824
28202825 __NL80211_ATTR_AFTER_LAST,
@@ -6490,4 +6495,26 @@ enum nl80211_peer_measurement_ftm_resp { · 3669 unmodified lines
64906495 NL80211_PMSR_FTM_RESP_ATTR_MAX = NUM_NL80211_PMSR_FTM_RESP_ATTR - 1
64916496 };
64926497
6498+/**
6499+ * enum nl80211_obss_pd_attributes - OBSS packet detection attributes
6500+ * @__NL80211_HE_OBSS_PD_ATTR_INVALID: Invalid
6501+ *
6502+ * @NL80211_HE_OBSS_PD_ATTR_MIN_OFFSET: the OBSS PD minimum tx power offset.
6503+ * @NL80211_HE_OBSS_PD_ATTR_MAX_OFFSET: the OBSS PD maximum tx power offset.
6504+ *
6505+ * @__NL80211_HE_OBSS_PD_ATTR_LAST: Internal
6506+ * @NL80211_HE_OBSS_PD_ATTR_MAX: highest OBSS PD attribute.
6507+ */
6508+enum nl80211_obss_pd_attributes {
6509+ __NL80211_HE_OBSS_PD_ATTR_INVALID,
6510+
6511+ NL80211_HE_OBSS_PD_ATTR_MIN_OFFSET,
6512+ NL80211_HE_OBSS_PD_ATTR_MAX_OFFSET,
6513+
6514+ /* keep last */
6515+ __NL80211_HE_OBSS_PD_ATTR_LAST,
6516+ NL80211_HE_OBSS_PD_ATTR_MAX = __NL80211_HE_OBSS_PD_ATTR_LAST - 1,
6517+};
6518+
6519+
64936520 #endif /* __LINUX_NL80211_H */