Ticket #2277: wifi_ifupdown.patch

File wifi_ifupdown.patch, 1.1 KB (added by budfive, 10 years ago)

Proposed fix for https://docs.openmoko.org/trac/ticket/2277#comment:14

  • drivers/ar6000/ar6000/ar6000_drv.c

    diff --git a/drivers/ar6000/ar6000/ar6000_drv.c b/drivers/ar6000/ar6000/ar6000_drv.c
    index b790670..10c7b45 100644
    a b static void ar6000_cleanup_module(void); 
    213213int ar6000_init(struct net_device *dev); 
    214214static int ar6000_open(struct net_device *dev); 
    215215static int ar6000_close(struct net_device *dev); 
     216static int ar6000_cleanup(struct net_device *dev); 
    216217static void ar6000_init_control_info(AR_SOFTC_T *ar); 
    217218static int ar6000_data_tx(struct sk_buff *skb, struct net_device *dev); 
    218219 
    ar6000_destroy(struct net_device *dev, unsigned int unregister) 
    983984    if (unregister) { 
    984985        unregister_netdev(dev); 
    985986    } else { 
    986         ar6000_close(dev); 
     987        ar6000_cleanup(dev); 
    987988    } 
    988989 
    989990    free_raw_buffers(ar); 
    ar6000_open(struct net_device *dev) 
    10901091static int 
    10911092ar6000_close(struct net_device *dev) 
    10921093{ 
     1094    /* Stop the transmit queues */ 
     1095    netif_stop_queue(dev); 
     1096    return 0; 
     1097} 
     1098 
     1099static int 
     1100ar6000_cleanup(struct net_device *dev) 
     1101{ 
    10931102    AR_SOFTC_T *ar = netdev_priv(dev); 
    10941103 
    10951104    /* Stop the transmit queues */