nl80211/cfg80211: add forgetten nla_policy for BSS color attribute
Subsystems (3)
PATCH v2 1/1 nl80211/cfg80211: add forgetten nla_policy for BSS color attribute
The previous commit dd3e4fc75b4a ("nl80211/cfg80211: add BSS color to NDP ranging parameters") adds a parameter for NDP ranging by introducing a new attribute type named NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR.
However, the author forgot to also describe the nla_policy at nl80211_pmsr_ftm_req_attr_policy (net/wireless/nl80211.c). Just complement it to avoid malformed attribute that causes out-of-attribute access.
---
v1 -> v2: resent due to the last version failed to reach public mail
list.
net/wireless/nl80211.c | 1 + 1 file changed, 1 insertion(+)
net/wireless/nl80211.c +1 -0
@@ -323,6 +323,7 @@ nl80211_pmsr_ftm_req_attr_policy[NL80211_PMSR_FTM_REQ_ATTR_MAX + 1] = { [NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED] = { .type = NLA_FLAG }, [NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED] = { .type = NLA_FLAG }, [NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK] = { .type = NLA_FLAG }, + [NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR] = { .type = NLA_U8 }, }; static const struct nla_policy
Signature · 1 line
2.17.1
Quoted 11 lines · Lin Ma
The previous commit
dd3e4fc75b4a("nl80211/cfg80211: add BSS color to NDP ranging parameters") adds a parameter for NDP ranging by introducing a new attribute type namedNL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR.However, the author forgot to also describe the
nla_policyatnl80211_pmsr_ftm_req_attr_policy(net/wireless/nl80211.c). Just complement it to avoid malformed attribute that causes out-of-attribute access.Fixes dd3e4fc75b4a ("nl80211/cfg80211: add BSS color to NDP ranging parameters")Signed-off-by Lin Ma <[email protected]>