|
@@ -6978,7 +6978,7 @@ static int nl80211_channel_switch(struct sk_buff *skb, struct genl_info *info)
|
|
|
|
|
|
params.n_counter_offsets_presp = len / sizeof(u16);
|
|
params.n_counter_offsets_presp = len / sizeof(u16);
|
|
if (rdev->wiphy.max_num_csa_counters &&
|
|
if (rdev->wiphy.max_num_csa_counters &&
|
|
- (params.n_counter_offsets_beacon >
|
|
|
|
|
|
+ (params.n_counter_offsets_presp >
|
|
rdev->wiphy.max_num_csa_counters))
|
|
rdev->wiphy.max_num_csa_counters))
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|