kernel: bump 5.4 to 5.4.124
[openwrt/openwrt.git] / package / kernel / ath10k-ct / patches / 164-ath10k-commit-rates-from-mac80211.patch
1 From: Sven Eckelmann <sven@narfation.org>
2 Date: Tue, 26 Feb 2019 08:06:35 +0100
3 Subject: ath10k-ct: apply mac80211 rates to ath10k-ct rate state
4
5 The rates from mac80211 have to be copied to the state of ath10k-ct or
6 otherwise the ath10k_check_apply_special_rates function overwrites
7 them again with some default values. This breaks for example the
8 mcast_rate set for a wifi-iface.
9
10 Signed-off-by: Sven Eckelmann <sven@narfation.org>
11
12 --- a/ath10k-5.10/mac.c
13 +++ b/ath10k-5.10/mac.c
14 @@ -6774,6 +6774,7 @@ static void ath10k_recalculate_mgmt_rate
15 return;
16 }
17
18 + arvif->mgt_rate[def->chan->band] = hw_rate_code;
19 vdev_param = ar->wmi.vdev_param->mgmt_rate;
20 ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param,
21 hw_rate_code);
22 @@ -7000,6 +7001,7 @@ static void ath10k_bss_info_changed(stru
23 "mac vdev %d mcast_rate %x\n",
24 arvif->vdev_id, rate);
25
26 + arvif->mcast_rate[band] = rate;
27 vdev_param = ar->wmi.vdev_param->mcast_data_rate;
28 ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id,
29 vdev_param, rate);
30 @@ -7008,6 +7010,7 @@ static void ath10k_bss_info_changed(stru
31 "failed to set mcast rate on vdev %i: %d\n",
32 arvif->vdev_id, ret);
33
34 + arvif->bcast_rate[band] = rate;
35 vdev_param = ar->wmi.vdev_param->bcast_data_rate;
36 ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id,
37 vdev_param, rate);