summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDaniel Drake <dsd@gentoo.org>2006-06-12 02:18:54 +0400
committerJeff Garzik <jeff@garzik.org>2006-07-05 21:42:58 +0400
commitc9a4b35df9a5e24065e2dd80aa18a381da62339d (patch)
tree0b364e9b656821ff21eca05af88c7f2be15711cf /drivers
parente85d0918b54fbd9b38003752f7d665416b06edd8 (diff)
downloadlinux-c9a4b35df9a5e24065e2dd80aa18a381da62339d.tar.xz
[PATCH] zd1211rw: disable TX queue during stop
This avoids some potential races. Signed-off-by: Daniel Drake <dsd@gentoo.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/zd1211rw/zd_mac.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_mac.c b/drivers/net/wireless/zd1211rw/zd_mac.c
index bbe067ec7de1..3bdc54d128d0 100644
--- a/drivers/net/wireless/zd1211rw/zd_mac.c
+++ b/drivers/net/wireless/zd1211rw/zd_mac.c
@@ -197,6 +197,8 @@ int zd_mac_stop(struct net_device *netdev)
struct zd_mac *mac = zd_netdev_mac(netdev);
struct zd_chip *chip = &mac->chip;
+ netif_stop_queue(netdev);
+
/*
* The order here deliberately is a little different from the open()
* method, since we need to make sure there is no opportunity for RX