File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -468,6 +468,10 @@ static const struct netlink_range_validation nl80211_punct_bitmap_range = {
468
468
.max = 0xffff,
469
469
};
470
470
471
+ static const struct netlink_range_validation q_range = {
472
+ .max = INT_MAX,
473
+ };
474
+
471
475
static const struct nla_policy nl80211_policy[NUM_NL80211_ATTR] = {
472
476
[0] = { .strict_start_type = NL80211_ATTR_HE_OBSS_PD },
473
477
[NL80211_ATTR_WIPHY] = { .type = NLA_U32 },
@@ -754,7 +758,7 @@ static const struct nla_policy nl80211_policy[NUM_NL80211_ATTR] = {
754
758
755
759
[NL80211_ATTR_TXQ_LIMIT] = { .type = NLA_U32 },
756
760
[NL80211_ATTR_TXQ_MEMORY_LIMIT] = { .type = NLA_U32 },
757
- [NL80211_ATTR_TXQ_QUANTUM] = { .type = NLA_U32 } ,
761
+ [NL80211_ATTR_TXQ_QUANTUM] = NLA_POLICY_FULL_RANGE( NLA_U32, &q_range) ,
758
762
[NL80211_ATTR_HE_CAPABILITY] =
759
763
NLA_POLICY_VALIDATE_FN(NLA_BINARY, validate_he_capa,
760
764
NL80211_HE_MAX_CAPABILITY_LEN),
You can’t perform that action at this time.
0 commit comments