0009-mac80211-ath10k-allow-simultaneous-AP-IBSS.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Wed, 20 May 2015 23:10:36 +0200
  3. Subject: mac80211: ath10k: allow simultaneous AP+IBSS
  4. diff --git a/package/kernel/mac80211/patches/950-ath10k_AP_IBSS.patch b/package/kernel/mac80211/patches/950-ath10k_AP_IBSS.patch
  5. new file mode 100644
  6. index 0000000..33b3110
  7. --- /dev/null
  8. +++ b/package/kernel/mac80211/patches/950-ath10k_AP_IBSS.patch
  9. @@ -0,0 +1,32 @@
  10. +--- a/drivers/net/wireless/ath/ath10k/mac.c
  11. ++++ b/drivers/net/wireless/ath/ath10k/mac.c
  12. +@@ -5264,6 +5264,10 @@ static const struct ieee80211_iface_limi
  13. + .max = 7,
  14. + .types = BIT(NL80211_IFTYPE_AP)
  15. + },
  16. ++ {
  17. ++ .max = 1,
  18. ++ .types = BIT(NL80211_IFTYPE_ADHOC)
  19. ++ },
  20. + };
  21. +
  22. + static const struct ieee80211_iface_limit ath10k_10x_if_limits[] = {
  23. +@@ -5271,6 +5275,10 @@ static const struct ieee80211_iface_limi
  24. + .max = 8,
  25. + .types = BIT(NL80211_IFTYPE_AP)
  26. + },
  27. ++ {
  28. ++ .max = 1,
  29. ++ .types = BIT(NL80211_IFTYPE_ADHOC)
  30. ++ },
  31. + };
  32. +
  33. + static const struct ieee80211_iface_combination ath10k_if_comb[] = {
  34. +@@ -5575,6 +5583,7 @@ int ath10k_mac_register(struct ath10k *a
  35. + ar->hw->wiphy->iface_combinations = ath10k_10x_if_comb;
  36. + ar->hw->wiphy->n_iface_combinations =
  37. + ARRAY_SIZE(ath10k_10x_if_comb);
  38. ++ ar->hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_ADHOC);
  39. + break;
  40. + case ATH10K_FW_WMI_OP_VERSION_UNSET:
  41. + case ATH10K_FW_WMI_OP_VERSION_MAX: