400-allow-ibss-mixed.patch 1020 B

1234567891011121314151617181920212223242526272829
  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. --- a/net/wireless/core.c
  6. +++ b/net/wireless/core.c
  7. @@ -614,21 +614,6 @@ static int wiphy_verify_combinations(str
  8. c->limits[j].max > 1))
  9. return -EINVAL;
  10. - /*
  11. - * This isn't well-defined right now. If you have an
  12. - * IBSS interface, then its beacon interval may change
  13. - * by joining other networks, and nothing prevents it
  14. - * from doing that.
  15. - * So technically we probably shouldn't even allow AP
  16. - * and IBSS in the same interface, but it seems that
  17. - * some drivers support that, possibly only with fixed
  18. - * beacon intervals for IBSS.
  19. - */
  20. - if (WARN_ON(types & BIT(NL80211_IFTYPE_ADHOC) &&
  21. - c->beacon_int_min_gcd)) {
  22. - return -EINVAL;
  23. - }
  24. -
  25. cnt += c->limits[j].max;
  26. /*
  27. * Don't advertise an unsupported type