This fix TX problem when IBSS connected and
enabled HT rates. Before we used 6Mbps all the
time.
Reported-by: Yeoh Chun-Yeow <[email protected]>
Signed-off-by: Janusz Dziedzic <[email protected]>
---
drivers/net/wireless/ath/ath10k/mac.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index 5475f0f..d358dab 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -1408,6 +1408,7 @@ static void ath10k_peer_assoc_h_qos(struct ath10k *ar,
}
break;
case WMI_VDEV_TYPE_STA:
+ case WMI_VDEV_TYPE_IBSS:
if (vif->bss_conf.qos)
arg->peer_flags |= WMI_PEER_QOS;
break;
@@ -1635,6 +1636,17 @@ static int ath10k_station_assoc(struct ath10k *ar,
return ret;
}
+ if (arvif->vdev_type == WMI_VDEV_TYPE_IBSS) {
+ ret = ath10k_wmi_peer_set_param(ar, arvif->vdev_id, sta->addr,
+ WMI_PEER_NSS, sta->rx_nss);
+ if (ret) {
+ ath10k_warn(ar, "failed to set nss param %d for STA %pM vdet %i: %d\n",
+ sta->rx_nss, sta->addr,
+ arvif->vdev_id, ret);
+ return ret;
+ }
+ }
+
/* Re-assoc is run only to update supported rates for given station. It
* doesn't make much sense to reconfigure the peer completely.
*/
--
1.9.1