blob: f2ed528d231cdaba08ad444a323a49420820ec18 [file] [log] [blame]
developerec4ebe42022-04-12 11:17:45 +08001ath10k-ct starting with version 5.2 allows the combination of
2NL80211_IFTYPE_ADHOC and beacon_int_min_gcd in ath10k_10x_ct_if_comb
3which triggers this warning. Ben told me that this is not a big problem
4and we should ignore this.
5
6--- a/net/wireless/core.c
7+++ b/net/wireless/core.c
developer0b3fe202022-04-19 10:19:57 +08008@@ -625,21 +625,6 @@ static int wiphy_verify_combinations(str
developerec4ebe42022-04-12 11:17:45 +08009 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