aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/wil6210/wmi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/wil6210/wmi.c')
-rw-r--r--drivers/net/wireless/ath/wil6210/wmi.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath/wil6210/wmi.c b/drivers/net/wireless/ath/wil6210/wmi.c
index b2b0fe1faa96..0f3e4334c8e3 100644
--- a/drivers/net/wireless/ath/wil6210/wmi.c
+++ b/drivers/net/wireless/ath/wil6210/wmi.c
@@ -566,7 +566,6 @@ static void wil_addba_tx_cid(struct wil6210_priv *wil, u8 cid, u16 wsize)
566 566
567static void wmi_evt_linkup(struct wil6210_priv *wil, int id, void *d, int len) 567static void wmi_evt_linkup(struct wil6210_priv *wil, int id, void *d, int len)
568{ 568{
569 struct net_device *ndev = wil_to_ndev(wil);
570 struct wmi_data_port_open_event *evt = d; 569 struct wmi_data_port_open_event *evt = d;
571 u8 cid = evt->cid; 570 u8 cid = evt->cid;
572 571
@@ -580,7 +579,6 @@ static void wmi_evt_linkup(struct wil6210_priv *wil, int id, void *d, int len)
580 wil->sta[cid].data_port_open = true; 579 wil->sta[cid].data_port_open = true;
581 if (agg_wsize >= 0) 580 if (agg_wsize >= 0)
582 wil_addba_tx_cid(wil, cid, agg_wsize); 581 wil_addba_tx_cid(wil, cid, agg_wsize);
583 netif_carrier_on(ndev);
584} 582}
585 583
586static void wmi_evt_linkdown(struct wil6210_priv *wil, int id, void *d, int len) 584static void wmi_evt_linkdown(struct wil6210_priv *wil, int id, void *d, int len)
@@ -1133,12 +1131,13 @@ int wmi_rx_chain_add(struct wil6210_priv *wil, struct vring *vring)
1133 return rc; 1131 return rc;
1134} 1132}
1135 1133
1136int wmi_get_temperature(struct wil6210_priv *wil, u32 *t_m, u32 *t_r) 1134int wmi_get_temperature(struct wil6210_priv *wil, u32 *t_bb, u32 *t_rf)
1137{ 1135{
1138 int rc; 1136 int rc;
1139 struct wmi_temp_sense_cmd cmd = { 1137 struct wmi_temp_sense_cmd cmd = {
1140 .measure_marlon_m_en = cpu_to_le32(!!t_m), 1138 .measure_baseband_en = cpu_to_le32(!!t_bb),
1141 .measure_marlon_r_en = cpu_to_le32(!!t_r), 1139 .measure_rf_en = cpu_to_le32(!!t_rf),
1140 .measure_mode = cpu_to_le32(TEMPERATURE_MEASURE_NOW),
1142 }; 1141 };
1143 struct { 1142 struct {
1144 struct wil6210_mbox_hdr_wmi wmi; 1143 struct wil6210_mbox_hdr_wmi wmi;
@@ -1150,10 +1149,10 @@ int wmi_get_temperature(struct wil6210_priv *wil, u32 *t_m, u32 *t_r)
1150 if (rc) 1149 if (rc)
1151 return rc; 1150 return rc;
1152 1151
1153 if (t_m) 1152 if (t_bb)
1154 *t_m = le32_to_cpu(reply.evt.marlon_m_t1000); 1153 *t_bb = le32_to_cpu(reply.evt.baseband_t1000);
1155 if (t_r) 1154 if (t_rf)
1156 *t_r = le32_to_cpu(reply.evt.marlon_r_t1000); 1155 *t_rf = le32_to_cpu(reply.evt.rf_t1000);
1157 1156
1158 return 0; 1157 return 0;
1159} 1158}