summaryrefslogtreecommitdiffstats
path: root/drivers/staging/wlan-ng/prism2sta.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-07-08 08:37:00 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-09 11:59:51 -0700
commit9630f6b97a5918c7a14803954ae2ff5ff3f9fb3c (patch)
tree83f36275bf423ebd9f7e4e2747dbd6961087c5aa /drivers/staging/wlan-ng/prism2sta.c
parentcd687a4073d58b5763ed085b942302714f0fa73d (diff)
downloadop-kernel-dev-9630f6b97a5918c7a14803954ae2ff5ff3f9fb3c.zip
op-kernel-dev-9630f6b97a5918c7a14803954ae2ff5ff3f9fb3c.tar.gz
staging: wlan-ng: Use net_device_stats from struct net_device
Instead of using an own copy of struct net_device_stats in struct wlandevice, use stats from struct net_device. Also remove the thus unnecessary .ndo_get_stats function, as it would now just return netdev->stats, which is the default in dev_get_stats(). Furthermore, convert prefix increment of stats counters to the more common postfix increment idiom. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wlan-ng/prism2sta.c')
-rw-r--r--drivers/staging/wlan-ng/prism2sta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wlan-ng/prism2sta.c b/drivers/staging/wlan-ng/prism2sta.c
index 209e4db6..799ce8a 100644
--- a/drivers/staging/wlan-ng/prism2sta.c
+++ b/drivers/staging/wlan-ng/prism2sta.c
@@ -1848,7 +1848,7 @@ void prism2sta_ev_tx(wlandevice_t *wlandev, u16 status)
{
pr_debug("Tx Complete, status=0x%04x\n", status);
/* update linux network stats */
- wlandev->linux_stats.tx_packets++;
+ wlandev->netdev->stats.tx_packets++;
}
/*----------------------------------------------------------------
OpenPOWER on IntegriCloud