summaryrefslogtreecommitdiffstats
path: root/target/linux/s3c24xx
diff options
context:
space:
mode:
authormirko <mirko@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-07-04 00:37:22 +0000
committermirko <mirko@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-07-04 00:37:22 +0000
commit868b2c94fae2a838cceee8122e31e3c7b0b2170c (patch)
treef8afd3796f7942b290ce4f21a8180065e355f6be /target/linux/s3c24xx
parent8ae4dfd85cad1616177d1732604cc98e6decf8a0 (diff)
clean interface before shutting it down
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16668 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx')
-rw-r--r--target/linux/s3c24xx/files-2.6.30/drivers/ar6000/ar6000/ar6000_drv.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/files-2.6.30/drivers/ar6000/ar6000/ar6000_drv.c b/target/linux/s3c24xx/files-2.6.30/drivers/ar6000/ar6000/ar6000_drv.c
index b790670ec..a37ef7238 100644
--- a/target/linux/s3c24xx/files-2.6.30/drivers/ar6000/ar6000/ar6000_drv.c
+++ b/target/linux/s3c24xx/files-2.6.30/drivers/ar6000/ar6000/ar6000_drv.c
@@ -213,6 +213,7 @@ static void ar6000_cleanup_module(void);
int ar6000_init(struct net_device *dev);
static int ar6000_open(struct net_device *dev);
static int ar6000_close(struct net_device *dev);
+static int ar6000_cleanup(struct net_device *dev);
static void ar6000_init_control_info(AR_SOFTC_T *ar);
static int ar6000_data_tx(struct sk_buff *skb, struct net_device *dev);
@@ -984,6 +985,7 @@ ar6000_destroy(struct net_device *dev, unsigned int unregister)
unregister_netdev(dev);
} else {
ar6000_close(dev);
+ ar6000_cleanup(dev);
}
free_raw_buffers(ar);
@@ -1090,6 +1092,14 @@ ar6000_open(struct net_device *dev)
static int
ar6000_close(struct net_device *dev)
{
+ /* Stop the transmit queues */
+ netif_stop_queue(dev);
+ return 0;
+}
+
+static int
+ar6000_cleanup(struct net_device *dev)
+{
AR_SOFTC_T *ar = netdev_priv(dev);
/* Stop the transmit queues */