327-ath10k-fix-low-TX-rates-when-IBSS-and-HT.patch 885 B

123456789101112131415161718192021222324252627282930
  1. From: Janusz Dziedzic <[email protected]>
  2. Date: Tue, 16 Dec 2014 09:52:59 +0100
  3. Subject: [PATCH] ath10k: fix low TX rates when IBSS and HT
  4. This fix TX problem when IBSS used in HT mode.
  5. Before we used 6Mbps all the time for TX direction.
  6. Reported-by: Yeoh Chun-Yeow <[email protected]>
  7. Signed-off-by: Janusz Dziedzic <[email protected]>
  8. ---
  9. --- a/drivers/net/wireless/ath/ath10k/mac.c
  10. +++ b/drivers/net/wireless/ath/ath10k/mac.c
  11. @@ -1375,9 +1375,16 @@ static void ath10k_peer_assoc_h_qos(stru
  12. if (vif->bss_conf.qos)
  13. arg->peer_flags |= WMI_PEER_QOS;
  14. break;
  15. + case WMI_VDEV_TYPE_IBSS:
  16. + if (sta->wme)
  17. + arg->peer_flags |= WMI_PEER_QOS;
  18. + break;
  19. default:
  20. break;
  21. }
  22. +
  23. + ath10k_dbg(ar, ATH10K_DBG_MAC, "mac peer %pM qos %d\n",
  24. + sta->addr, !!(arg->peer_flags & WMI_PEER_QOS));
  25. }
  26. static void ath10k_peer_assoc_h_phymode(struct ath10k *ar,