OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 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-4.19/mac.c |
||
13 | +++ b/ath10k-4.19/mac.c |
||
14 | @@ -6460,6 +6460,7 @@ static void ath10k_bss_info_changed(stru |
||
15 | "mac vdev %d mcast_rate %x\n", |
||
16 | arvif->vdev_id, rate); |
||
17 | |||
18 | + arvif->mcast_rate[band] = rate; |
||
19 | vdev_param = ar->wmi.vdev_param->mcast_data_rate; |
||
20 | ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, |
||
21 | vdev_param, rate); |
||
22 | @@ -6468,6 +6469,7 @@ static void ath10k_bss_info_changed(stru |
||
23 | "failed to set mcast rate on vdev %i: %d\n", |
||
24 | arvif->vdev_id, ret); |
||
25 | |||
26 | + arvif->bcast_rate[band] = rate; |
||
27 | vdev_param = ar->wmi.vdev_param->bcast_data_rate; |
||
28 | ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, |
||
29 | vdev_param, rate); |
||
30 | @@ -6494,6 +6496,7 @@ static void ath10k_bss_info_changed(stru |
||
31 | return; |
||
32 | } |
||
33 | |||
34 | + arvif->mgt_rate[def.chan->band] = hw_rate_code; |
||
35 | vdev_param = ar->wmi.vdev_param->mgmt_rate; |
||
36 | ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, |
||
37 | hw_rate_code); |