aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/ath/ath6kl/main.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/main.c b/drivers/net/wireless/ath/ath6kl/main.c
index acbd35d8df2b..f21e4b12544c 100644
--- a/drivers/net/wireless/ath/ath6kl/main.c
+++ b/drivers/net/wireless/ath/ath6kl/main.c
@@ -1091,26 +1091,11 @@ static void ath6kl_update_target_stats(struct ath6kl *ar, u8 *ptr, u32 len)
1091 (struct wmi_target_stats *) ptr; 1091 (struct wmi_target_stats *) ptr;
1092 struct target_stats *stats = &ar->target_stats; 1092 struct target_stats *stats = &ar->target_stats;
1093 struct tkip_ccmp_stats *ccmp_stats; 1093 struct tkip_ccmp_stats *ccmp_stats;
1094 struct bss *conn_bss = NULL;
1095 struct cserv_stats *c_stats;
1096 u8 ac; 1094 u8 ac;
1097 1095
1098 if (len < sizeof(*tgt_stats)) 1096 if (len < sizeof(*tgt_stats))
1099 return; 1097 return;
1100 1098
1101 /* update the RSSI of the connected bss */
1102 if (test_bit(CONNECTED, &ar->flag)) {
1103 conn_bss = ath6kl_wmi_find_node(ar->wmi, ar->bssid);
1104 if (conn_bss) {
1105 c_stats = &tgt_stats->cserv_stats;
1106 conn_bss->ni_rssi =
1107 a_sle16_to_cpu(c_stats->cs_ave_beacon_rssi);
1108 conn_bss->ni_snr =
1109 tgt_stats->cserv_stats.cs_ave_beacon_snr;
1110 ath6kl_wmi_node_return(ar->wmi, conn_bss);
1111 }
1112 }
1113
1114 ath6kl_dbg(ATH6KL_DBG_TRC, "updating target stats\n"); 1099 ath6kl_dbg(ATH6KL_DBG_TRC, "updating target stats\n");
1115 1100
1116 stats->tx_pkt += le32_to_cpu(tgt_stats->stats.tx.pkt); 1101 stats->tx_pkt += le32_to_cpu(tgt_stats->stats.tx.pkt);