|
@@ -9987,6 +9987,9 @@ static int nl80211_join_mesh(struct sk_buff *skb, struct genl_info *info)
|
|
|
if (err)
|
|
|
return err;
|
|
|
|
|
|
+ if (!setup.chandef.chan)
|
|
|
+ return -EINVAL;
|
|
|
+
|
|
|
err = validate_beacon_tx_rate(rdev, setup.chandef.chan->band,
|
|
|
&setup.beacon_rate);
|
|
|
if (err)
|
|
@@ -10903,6 +10906,9 @@ static int nl80211_set_rekey_data(struct sk_buff *skb, struct genl_info *info)
|
|
|
if (err)
|
|
|
return err;
|
|
|
|
|
|
+ if (!tb[NL80211_REKEY_DATA_REPLAY_CTR] || !tb[NL80211_REKEY_DATA_KEK] ||
|
|
|
+ !tb[NL80211_REKEY_DATA_KCK])
|
|
|
+ return -EINVAL;
|
|
|
if (nla_len(tb[NL80211_REKEY_DATA_REPLAY_CTR]) != NL80211_REPLAY_CTR_LEN)
|
|
|
return -ERANGE;
|
|
|
if (nla_len(tb[NL80211_REKEY_DATA_KEK]) != NL80211_KEK_LEN)
|