mac80211: ath10k: Allow to enable the thermal code of ath10k
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / 653-0026-rtl8xxxu-8188eu-uses-the-gen2-thermal-meter.patch
1 From e33fed77d7493ef16c3afd32eb0d7c99fc95bfad Mon Sep 17 00:00:00 2001
2 From: Jes Sorensen <Jes.Sorensen@redhat.com>
3 Date: Fri, 22 Jul 2016 11:20:00 -0400
4 Subject: [PATCH] rtl8xxxu: 8188eu uses the gen2 thermal meter
5
6 Vendor driver writes thermal meter setup to RF register 0x42, hence
7 the gen2 setup. However the driver doesn't do much with it.
8
9 Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
10 ---
11 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c | 1 +
12 1 file changed, 1 insertion(+)
13
14 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c
15 +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c
16 @@ -1015,6 +1015,7 @@ struct rtl8xxxu_fileops rtl8188eu_fops =
17 .rx_desc_size = sizeof(struct rtl8xxxu_rxdesc16),
18 .tx_desc_size = sizeof(struct rtl8xxxu_txdesc32),
19 .has_tx_report = 1,
20 + .gen2_thermal_meter = 1,
21 .adda_1t_init = 0x0b1b25a0,
22 .adda_1t_path_on = 0x0bdb25a0,
23 .adda_2t_path_on_a = 0x04db25a4,