0007-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..956c3fd
  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. +@@ -7521,6 +7521,10 @@ static const struct ieee80211_iface_limi
  13. + | BIT(NL80211_IFTYPE_MESH_POINT)
  14. + #endif
  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. +@@ -7535,6 +7539,10 @@ static const struct ieee80211_iface_limi
  24. + .max = 1,
  25. + .types = BIT(NL80211_IFTYPE_STATION)
  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. +@@ -7920,6 +7928,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_10_4:
  41. + ar->hw->wiphy->iface_combinations = ath10k_10_4_if_comb;