nl80211: Verify that nla_put_flag() succeeds for background radar
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
993eb12407
commit
a8c3199527
1 changed files with 3 additions and 2 deletions
|
@ -4993,8 +4993,9 @@ static int nl80211_put_freq_params(struct nl_msg *msg,
|
|||
NL80211_CHAN_NO_HT))
|
||||
return -ENOBUFS;
|
||||
}
|
||||
if (freq->radar_background)
|
||||
nla_put_flag(msg, NL80211_ATTR_RADAR_BACKGROUND);
|
||||
if (freq->radar_background &&
|
||||
nla_put_flag(msg, NL80211_ATTR_RADAR_BACKGROUND))
|
||||
return -ENOBUFS;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue