aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorDaniel Drake <dsd@gentoo.org>2006-06-11 18:18:54 -0400
committerJeff Garzik <jeff@garzik.org>2006-07-05 13:42:58 -0400
commitc9a4b35df9a5e24065e2dd80aa18a381da62339d (patch)
tree0b364e9b656821ff21eca05af88c7f2be15711cf /drivers/net
parente85d0918b54fbd9b38003752f7d665416b06edd8 (diff)
[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/net')
-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)
197 struct zd_mac *mac = zd_netdev_mac(netdev); 197 struct zd_mac *mac = zd_netdev_mac(netdev);
198 struct zd_chip *chip = &mac->chip; 198 struct zd_chip *chip = &mac->chip;
199 199
200 netif_stop_queue(netdev);
201
200 /* 202 /*
201 * The order here deliberately is a little different from the open() 203 * The order here deliberately is a little different from the open()
202 * method, since we need to make sure there is no opportunity for RX 204 * method, since we need to make sure there is no opportunity for RX