|
@@ -221,7 +221,7 @@ Signed-off-by: Johannes Berg <[email protected]>
|
|
|
#endif /* __LINUX_NL80211_H */
|
|
|
--- a/net/wireless/nl80211.c
|
|
|
+++ b/net/wireless/nl80211.c
|
|
|
-@@ -439,6 +439,16 @@ sar_policy[NL80211_SAR_ATTR_MAX + 1] = {
|
|
|
+@@ -442,6 +442,16 @@ sar_policy[NL80211_SAR_ATTR_MAX + 1] = {
|
|
|
[NL80211_SAR_ATTR_SPECS] = NLA_POLICY_NESTED_ARRAY(sar_specs_policy),
|
|
|
};
|
|
|
|
|
@@ -238,7 +238,7 @@ Signed-off-by: Johannes Berg <[email protected]>
|
|
|
static const struct nla_policy nl80211_policy[NUM_NL80211_ATTR] = {
|
|
|
[0] = { .strict_start_type = NL80211_ATTR_HE_OBSS_PD },
|
|
|
[NL80211_ATTR_WIPHY] = { .type = NLA_U32 },
|
|
|
-@@ -780,6 +790,9 @@ static const struct nla_policy nl80211_p
|
|
|
+@@ -783,6 +793,9 @@ static const struct nla_policy nl80211_p
|
|
|
[NL80211_ATTR_COLOR_CHANGE_COUNT] = { .type = NLA_U8 },
|
|
|
[NL80211_ATTR_COLOR_CHANGE_COLOR] = { .type = NLA_U8 },
|
|
|
[NL80211_ATTR_COLOR_CHANGE_ELEMS] = NLA_POLICY_NESTED(nl80211_policy),
|
|
@@ -248,7 +248,7 @@ Signed-off-by: Johannes Berg <[email protected]>
|
|
|
};
|
|
|
|
|
|
/* policy for the key attributes */
|
|
|
-@@ -2228,6 +2241,35 @@ fail:
|
|
|
+@@ -2231,6 +2244,35 @@ fail:
|
|
|
return -ENOBUFS;
|
|
|
}
|
|
|
|
|
@@ -284,7 +284,7 @@ Signed-off-by: Johannes Berg <[email protected]>
|
|
|
struct nl80211_dump_wiphy_state {
|
|
|
s64 filter_wiphy;
|
|
|
long start;
|
|
|
-@@ -2813,6 +2855,9 @@ static int nl80211_send_wiphy(struct cfg
|
|
|
+@@ -2816,6 +2858,9 @@ static int nl80211_send_wiphy(struct cfg
|
|
|
if (nl80211_put_sar_specs(rdev, msg))
|
|
|
goto nla_put_failure;
|
|
|
|
|
@@ -294,7 +294,7 @@ Signed-off-by: Johannes Berg <[email protected]>
|
|
|
/* done */
|
|
|
state->split_start = 0;
|
|
|
break;
|
|
|
-@@ -5002,6 +5047,96 @@ static int validate_beacon_tx_rate(struc
|
|
|
+@@ -5005,6 +5050,96 @@ static int validate_beacon_tx_rate(struc
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
@@ -391,7 +391,7 @@ Signed-off-by: Johannes Berg <[email protected]>
|
|
|
static int nl80211_parse_beacon(struct cfg80211_registered_device *rdev,
|
|
|
struct nlattr *attrs[],
|
|
|
struct cfg80211_beacon_data *bcn)
|
|
|
-@@ -5082,6 +5217,17 @@ static int nl80211_parse_beacon(struct c
|
|
|
+@@ -5085,6 +5220,17 @@ static int nl80211_parse_beacon(struct c
|
|
|
bcn->ftm_responder = -1;
|
|
|
}
|
|
|
|
|
@@ -409,7 +409,7 @@ Signed-off-by: Johannes Berg <[email protected]>
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-@@ -5538,6 +5684,17 @@ static int nl80211_start_ap(struct sk_bu
|
|
|
+@@ -5541,6 +5687,17 @@ static int nl80211_start_ap(struct sk_bu
|
|
|
goto out;
|
|
|
}
|
|
|
|
|
@@ -427,7 +427,7 @@ Signed-off-by: Johannes Berg <[email protected]>
|
|
|
nl80211_calculate_ap_params(¶ms);
|
|
|
|
|
|
if (info->attrs[NL80211_ATTR_EXTERNAL_AUTH_SUPPORT])
|
|
|
-@@ -5559,6 +5716,11 @@ static int nl80211_start_ap(struct sk_bu
|
|
|
+@@ -5562,6 +5719,11 @@ static int nl80211_start_ap(struct sk_bu
|
|
|
|
|
|
out:
|
|
|
kfree(params.acl);
|
|
@@ -439,7 +439,7 @@ Signed-off-by: Johannes Berg <[email protected]>
|
|
|
|
|
|
return err;
|
|
|
}
|
|
|
-@@ -5583,12 +5745,14 @@ static int nl80211_set_beacon(struct sk_
|
|
|
+@@ -5586,12 +5748,14 @@ static int nl80211_set_beacon(struct sk_
|
|
|
|
|
|
err = nl80211_parse_beacon(rdev, info->attrs, ¶ms);
|
|
|
if (err)
|
|
@@ -455,7 +455,7 @@ Signed-off-by: Johannes Berg <[email protected]>
|
|
|
return err;
|
|
|
}
|
|
|
|
|
|
-@@ -9265,12 +9429,14 @@ static int nl80211_channel_switch(struct
|
|
|
+@@ -9268,12 +9432,14 @@ static int nl80211_channel_switch(struct
|
|
|
|
|
|
err = nl80211_parse_beacon(rdev, info->attrs, ¶ms.beacon_after);
|
|
|
if (err)
|
|
@@ -473,7 +473,7 @@ Signed-off-by: Johannes Berg <[email protected]>
|
|
|
|
|
|
err = nla_parse_nested_deprecated(csa_attrs, NL80211_ATTR_MAX,
|
|
|
info->attrs[NL80211_ATTR_CSA_IES],
|
|
|
-@@ -9389,6 +9555,8 @@ skip_beacons:
|
|
|
+@@ -9392,6 +9558,8 @@ skip_beacons:
|
|
|
wdev_unlock(wdev);
|
|
|
|
|
|
free:
|
|
@@ -482,7 +482,7 @@ Signed-off-by: Johannes Berg <[email protected]>
|
|
|
kfree(csa_attrs);
|
|
|
return err;
|
|
|
}
|
|
|
-@@ -14924,6 +15092,8 @@ static int nl80211_color_change(struct s
|
|
|
+@@ -14939,6 +15107,8 @@ static int nl80211_color_change(struct s
|
|
|
wdev_unlock(wdev);
|
|
|
|
|
|
out:
|