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
2358 *2358 *
2359 * @NL80211_ATTR_TWT_RESPONDER: Enable target wait time responder support.2359 * @NL80211_ATTR_TWT_RESPONDER: Enable target wait time responder support.
2360 *2360 *
2361 * @NL80211_ATTR_HE_OBSS_PD: nested attribute for OBSS Packet Detection
2362 * functionality.
2363 *
2361 * @NUM_NL80211_ATTR: total number of nl80211_attrs available2364 * @NUM_NL80211_ATTR: total number of nl80211_attrs available
2362 * @NL80211_ATTR_MAX: highest attribute number currently defined2365 * @NL80211_ATTR_MAX: highest attribute number currently defined
2363 * @__NL80211_ATTR_AFTER_LAST: internal use2366 * @__NL80211_ATTR_AFTER_LAST: internal use
@@ -2815,6 +2818,8 @@ enum nl80211_attrs { · 451 unmodified lines
2815 2818
2816 NL80211_ATTR_TWT_RESPONDER,2819 NL80211_ATTR_TWT_RESPONDER,
2817 2820
2821 NL80211_ATTR_HE_OBSS_PD,
2822
2818 /* add attributes here, update the policy in nl80211.c */2823 /* add attributes here, update the policy in nl80211.c */
2819 2824
2820 __NL80211_ATTR_AFTER_LAST,2825 __NL80211_ATTR_AFTER_LAST,
@@ -6490,4 +6495,26 @@ enum nl80211_peer_measurement_ftm_resp { · 3669 unmodified lines
6490 NL80211_PMSR_FTM_RESP_ATTR_MAX = NUM_NL80211_PMSR_FTM_RESP_ATTR - 16495 NL80211_PMSR_FTM_RESP_ATTR_MAX = NUM_NL80211_PMSR_FTM_RESP_ATTR - 1
6491};6496};
6492 6497
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 */
6508enum 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
6493#endif /* __LINUX_NL80211_H */6520#endif /* __LINUX_NL80211_H */