Skip to content

Commit ea75080

Browse files
Sergey Matyukevichjmberg-intel
authored andcommitted
cfg80211: add missing policy for NL80211_ATTR_STATUS_CODE
The nl80211_policy is missing for NL80211_ATTR_STATUS_CODE attribute. As a result, for strictly validated commands, it's assumed to not be supported. Signed-off-by: Sergey Matyukevich <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Johannes Berg <[email protected]>
1 parent bfb7bac commit ea75080

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/wireless/nl80211.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ const struct nla_policy nl80211_policy[NUM_NL80211_ATTR] = {
437437
[NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT] = { .type = NLA_FLAG },
438438
[NL80211_ATTR_CONTROL_PORT_OVER_NL80211] = { .type = NLA_FLAG },
439439
[NL80211_ATTR_PRIVACY] = { .type = NLA_FLAG },
440+
[NL80211_ATTR_STATUS_CODE] = { .type = NLA_U16 },
440441
[NL80211_ATTR_CIPHER_SUITE_GROUP] = { .type = NLA_U32 },
441442
[NL80211_ATTR_WPA_VERSIONS] = { .type = NLA_U32 },
442443
[NL80211_ATTR_PID] = { .type = NLA_U32 },

0 commit comments

Comments
 (0)