developer | 3d5faf2 | 2022-11-29 18:07:22 +0800 | [diff] [blame^] | 1 | From: Hauke Mehrtens <hauke@hauke-m.de> |
| 2 | Date: Mon, 24 Feb 2020 00:00:00 +0100 |
| 3 | Subject: [PATCH] mac80211: Allow IBSS mode and different beacon intervals |
| 4 | |
| 5 | ath10k-ct supports the combination to select IBSS (ADHOC) mode and |
| 6 | different beacon intervals together. mac80211 does not like this |
| 7 | combination, but Ben says this is ok, so remove this check. |
| 8 | |
| 9 | ath10k-ct starting with version 5.2 allows the combination of |
| 10 | NL80211_IFTYPE_ADHOC and beacon_int_min_gcd in ath10k_10x_ct_if_comb |
| 11 | which triggers this warning. Ben told me that this is not a big problem |
developer | ec4ebe4 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 12 | and we should ignore this. |
developer | 3d5faf2 | 2022-11-29 18:07:22 +0800 | [diff] [blame^] | 13 | --- |
| 14 | net/wireless/core.c | 15 --------------- |
| 15 | 1 file changed, 15 deletions(-) |
developer | ec4ebe4 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 16 | |
| 17 | --- a/net/wireless/core.c |
| 18 | +++ b/net/wireless/core.c |
developer | 0b3fe20 | 2022-04-19 10:19:57 +0800 | [diff] [blame] | 19 | @@ -625,21 +625,6 @@ static int wiphy_verify_combinations(str |
developer | ec4ebe4 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 20 | c->limits[j].max > 1)) |
| 21 | return -EINVAL; |
| 22 | |
| 23 | - /* |
| 24 | - * This isn't well-defined right now. If you have an |
| 25 | - * IBSS interface, then its beacon interval may change |
| 26 | - * by joining other networks, and nothing prevents it |
| 27 | - * from doing that. |
| 28 | - * So technically we probably shouldn't even allow AP |
| 29 | - * and IBSS in the same interface, but it seems that |
| 30 | - * some drivers support that, possibly only with fixed |
| 31 | - * beacon intervals for IBSS. |
| 32 | - */ |
| 33 | - if (WARN_ON(types & BIT(NL80211_IFTYPE_ADHOC) && |
| 34 | - c->beacon_int_min_gcd)) { |
| 35 | - return -EINVAL; |
| 36 | - } |
| 37 | - |
| 38 | cnt += c->limits[j].max; |
| 39 | /* |
| 40 | * Don't advertise an unsupported type |