net_stats.multicast is updated with the count of received multicast packets.
Signed-off-by: Vasanthakumar Thiagarajan <[email protected]>
---
drivers/net/wireless/ath/ath6kl/txrx.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/drivers/net/wireless/ath/ath6kl/txrx.c b/drivers/net/wireless/ath/ath6kl/txrx.c
index fdcc6ee..21999dc 100644
--- a/drivers/net/wireless/ath/ath6kl/txrx.c
+++ b/drivers/net/wireless/ath/ath6kl/txrx.c
@@ -1593,7 +1593,9 @@ void ath6kl_rx(struct htc_target *target, struct htc_packet *packet)
/* aggregation code will handle the skb */
return;
}
- }
+ } else
+ if (!is_broadcast_ether_addr(datap->h_dest))
+ vif->net_stats.multicast++;
ath6kl_deliver_frames_to_nw_stack(vif->ndev, skb);
}
--
1.7.0.4
On 04/03/2012 11:43 AM, Vasanthakumar Thiagarajan wrote:
> net_stats.multicast is updated with the count of received multicast packets.
>
> Signed-off-by: Vasanthakumar Thiagarajan <[email protected]>
Applied, thanks.
> - }
> + } else
> + if (!is_broadcast_ether_addr(datap->h_dest))
> + vif->net_stats.multicast++;
But I put else and if on the same line.
Kalle