diff options
| author | Raja Mani | 2012-03-16 11:24:56 +0100 |
|---|---|---|
| committer | Kalle Valo | 2012-03-20 09:59:45 +0100 |
| commit | f0446ea9c11243bcfe8559f0033a5e4790b0d95b (patch) | |
| tree | 923ce439da60d371f179c954f42af9f14008358f /drivers/net/wireless/ath/ath6kl/main.c | |
| parent | ath6kl: add debug log for AP MLME operations (diff) | |
| download | kernel-qcow2-linux-f0446ea9c11243bcfe8559f0033a5e4790b0d95b.tar.gz kernel-qcow2-linux-f0446ea9c11243bcfe8559f0033a5e4790b0d95b.tar.xz kernel-qcow2-linux-f0446ea9c11243bcfe8559f0033a5e4790b0d95b.zip | |
ath6kl: Add ARP offload related statistic info in tgt_stats
Firmware reports the below ARP offload related information
while sending the target statistic event to the host.
* Number of ARP packets received.
* Number of packets matched with the device IP addr.
* Number of ARP response packet sent to the remote.
This patch adds the additional debug prints in debugfs
entry tgt_stats. It will be useful to know the ARP offload
execution status.
Signed-off-by: Raja Mani <rmani@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/main.c')
| -rw-r--r-- | drivers/net/wireless/ath/ath6kl/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/main.c b/drivers/net/wireless/ath/ath6kl/main.c index 229e1922ebe4..7f3addd6c944 100644 --- a/drivers/net/wireless/ath/ath6kl/main.c +++ b/drivers/net/wireless/ath/ath6kl/main.c @@ -756,6 +756,10 @@ static void ath6kl_update_target_stats(struct ath6kl_vif *vif, u8 *ptr, u32 len) stats->wow_evt_discarded += le16_to_cpu(tgt_stats->wow_stats.wow_evt_discarded); + stats->arp_received = le32_to_cpu(tgt_stats->arp_stats.arp_received); + stats->arp_replied = le32_to_cpu(tgt_stats->arp_stats.arp_replied); + stats->arp_matched = le32_to_cpu(tgt_stats->arp_stats.arp_matched); + if (test_bit(STATS_UPDATE_PEND, &vif->flags)) { clear_bit(STATS_UPDATE_PEND, &vif->flags); wake_up(&ar->event_wq); |
