3df4062ec5bd2aef50eb29fc32419846e96bac17
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / subsys / 400-allow-ibss-mixed.patch
1 ath10k-ct starting with version 5.2 allows the combination of
2 NL80211_IFTYPE_ADHOC and beacon_int_min_gcd in ath10k_10x_ct_if_comb
3 which triggers this warning. Ben told me that this is not a big problem
4 and we should ignore this.
5
6 --- a/net/wireless/core.c
7 +++ b/net/wireless/core.c
8 @@ -630,21 +630,6 @@ static int wiphy_verify_combinations(str
9 c->limits[j].max > 1))
10 return -EINVAL;
11
12 - /*
13 - * This isn't well-defined right now. If you have an
14 - * IBSS interface, then its beacon interval may change
15 - * by joining other networks, and nothing prevents it
16 - * from doing that.
17 - * So technically we probably shouldn't even allow AP
18 - * and IBSS in the same interface, but it seems that
19 - * some drivers support that, possibly only with fixed
20 - * beacon intervals for IBSS.
21 - */
22 - if (WARN_ON(types & BIT(NL80211_IFTYPE_ADHOC) &&
23 - c->beacon_int_min_gcd)) {
24 - return -EINVAL;
25 - }
26 -
27 cnt += c->limits[j].max;
28 /*
29 * Don't advertise an unsupported type