mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-12 12:10:14 +02:00
clean interface before shutting it down
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16668 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
8ae4dfd85c
commit
868b2c94fa
@ -213,6 +213,7 @@ static void ar6000_cleanup_module(void);
|
|||||||
int ar6000_init(struct net_device *dev);
|
int ar6000_init(struct net_device *dev);
|
||||||
static int ar6000_open(struct net_device *dev);
|
static int ar6000_open(struct net_device *dev);
|
||||||
static int ar6000_close(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 void ar6000_init_control_info(AR_SOFTC_T *ar);
|
||||||
static int ar6000_data_tx(struct sk_buff *skb, struct net_device *dev);
|
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);
|
unregister_netdev(dev);
|
||||||
} else {
|
} else {
|
||||||
ar6000_close(dev);
|
ar6000_close(dev);
|
||||||
|
ar6000_cleanup(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
free_raw_buffers(ar);
|
free_raw_buffers(ar);
|
||||||
@ -1089,6 +1091,14 @@ ar6000_open(struct net_device *dev)
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
ar6000_close(struct net_device *dev)
|
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);
|
AR_SOFTC_T *ar = netdev_priv(dev);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user