Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249634
b: refs/heads/master
c: 75e436d
h: refs/heads/master
v: v3
  • Loading branch information
Roland Vossen authored and Greg Kroah-Hartman committed May 17, 2011
1 parent 5d076d8 commit ba4c5b9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 34 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0c250c0eeab1840a2da4b9b6df7611b4efebd38a
refs/heads/master: 75e436d3ed4d25ffc256a692a17e938d91deb958
29 changes: 0 additions & 29 deletions trunk/drivers/staging/brcm80211/brcmsmac/wl_mac80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -1731,35 +1731,6 @@ void wl_free_timer(struct wl_info *wl, struct wl_timer *t)
*/
static int wl_linux_watchdog(void *ctx)
{
struct wl_info *wl = (struct wl_info *) ctx;
struct wl_cnt *cnt;
struct net_device_stats *stats = NULL;
uint id;
/* refresh stats */
if (wl->pub->up) {
cnt = wl->pub->_cnt;
id = 1 - wl->stats_id;
stats = &wl->stats_watchdog[id];
stats->rx_packets = cnt->rxframe;
stats->tx_packets = cnt->txframe;
stats->rx_bytes = cnt->rxbyte;
stats->tx_bytes = cnt->txbyte;
stats->rx_errors = cnt->rxerror;
stats->tx_errors = cnt->txerror;
stats->collisions = 0;

stats->rx_length_errors = 0;
stats->rx_over_errors = cnt->rxoflo;
stats->rx_crc_errors = cnt->rxcrc;
stats->rx_frame_errors = 0;
stats->rx_fifo_errors = cnt->rxoflo;
stats->rx_missed_errors = 0;

stats->tx_fifo_errors = cnt->txuflo;

wl->stats_id = id;
}

return 0;
}

Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/staging/brcm80211/brcmsmac/wl_mac80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ struct wl_info {
#ifdef LINUXSTA_PS
u32 pci_psstate[16]; /* pci ps-state save/restore */
#endif
/* RPC, handle, lock, txq, workitem */
uint stats_id; /* the current set of stats */
/* ping-pong stats counters updated by Linux watchdog */
struct net_device_stats stats_watchdog[2];
struct wl_firmware fw;
struct wiphy *wiphy;
};
Expand Down

0 comments on commit ba4c5b9

Please sign in to comment.