On Tue, 2020-03-31 at 23:21 -0700, Thomas Pedersen wrote: > > + [NL80211_ATTR_CENTER_FREQ1_OFFSET] = { .type = NLA_U32 }, These should probably all be something like NLA_POLICY_RANGE(NLA_U32, 0, 999)? johannes
On Tue, 2020-03-31 at 23:21 -0700, Thomas Pedersen wrote: > > + [NL80211_ATTR_CENTER_FREQ1_OFFSET] = { .type = NLA_U32 }, These should probably all be something like NLA_POLICY_RANGE(NLA_U32, 0, 999)? johannes