diff options
Diffstat (limited to 'drivers/net/wireless/wl3501_cs.c')
-rw-r--r-- | drivers/net/wireless/wl3501_cs.c | 57 |
1 files changed, 27 insertions, 30 deletions
diff --git a/drivers/net/wireless/wl3501_cs.c b/drivers/net/wireless/wl3501_cs.c index 5e5d24c1ce2b..376c6b964a9c 100644 --- a/drivers/net/wireless/wl3501_cs.c +++ b/drivers/net/wireless/wl3501_cs.c | |||
@@ -1307,7 +1307,7 @@ static void wl3501_tx_timeout(struct net_device *dev) | |||
1307 | printk(KERN_ERR "%s: Error %d resetting card on Tx timeout!\n", | 1307 | printk(KERN_ERR "%s: Error %d resetting card on Tx timeout!\n", |
1308 | dev->name, rc); | 1308 | dev->name, rc); |
1309 | else { | 1309 | else { |
1310 | dev->trans_start = jiffies; | 1310 | dev->trans_start = jiffies; /* prevent tx timeout */ |
1311 | netif_wake_queue(dev); | 1311 | netif_wake_queue(dev); |
1312 | } | 1312 | } |
1313 | } | 1313 | } |
@@ -1326,7 +1326,6 @@ static netdev_tx_t wl3501_hard_start_xmit(struct sk_buff *skb, | |||
1326 | 1326 | ||
1327 | spin_lock_irqsave(&this->lock, flags); | 1327 | spin_lock_irqsave(&this->lock, flags); |
1328 | enabled = wl3501_block_interrupt(this); | 1328 | enabled = wl3501_block_interrupt(this); |
1329 | dev->trans_start = jiffies; | ||
1330 | rc = wl3501_send_pkt(this, skb->data, skb->len); | 1329 | rc = wl3501_send_pkt(this, skb->data, skb->len); |
1331 | if (enabled) | 1330 | if (enabled) |
1332 | wl3501_unblock_interrupt(this); | 1331 | wl3501_unblock_interrupt(this); |
@@ -1455,8 +1454,6 @@ static void wl3501_detach(struct pcmcia_device *link) | |||
1455 | 1454 | ||
1456 | if (link->priv) | 1455 | if (link->priv) |
1457 | free_netdev(link->priv); | 1456 | free_netdev(link->priv); |
1458 | |||
1459 | return; | ||
1460 | } | 1457 | } |
1461 | 1458 | ||
1462 | static int wl3501_get_name(struct net_device *dev, struct iw_request_info *info, | 1459 | static int wl3501_get_name(struct net_device *dev, struct iw_request_info *info, |
@@ -1836,32 +1833,32 @@ out: | |||
1836 | } | 1833 | } |
1837 | 1834 | ||
1838 | static const iw_handler wl3501_handler[] = { | 1835 | static const iw_handler wl3501_handler[] = { |
1839 | [SIOCGIWNAME - SIOCIWFIRST] = wl3501_get_name, | 1836 | IW_HANDLER(SIOCGIWNAME, wl3501_get_name), |
1840 | [SIOCSIWFREQ - SIOCIWFIRST] = wl3501_set_freq, | 1837 | IW_HANDLER(SIOCSIWFREQ, wl3501_set_freq), |
1841 | [SIOCGIWFREQ - SIOCIWFIRST] = wl3501_get_freq, | 1838 | IW_HANDLER(SIOCGIWFREQ, wl3501_get_freq), |
1842 | [SIOCSIWMODE - SIOCIWFIRST] = wl3501_set_mode, | 1839 | IW_HANDLER(SIOCSIWMODE, wl3501_set_mode), |
1843 | [SIOCGIWMODE - SIOCIWFIRST] = wl3501_get_mode, | 1840 | IW_HANDLER(SIOCGIWMODE, wl3501_get_mode), |
1844 | [SIOCGIWSENS - SIOCIWFIRST] = wl3501_get_sens, | 1841 | IW_HANDLER(SIOCGIWSENS, wl3501_get_sens), |
1845 | [SIOCGIWRANGE - SIOCIWFIRST] = wl3501_get_range, | 1842 | IW_HANDLER(SIOCGIWRANGE, wl3501_get_range), |
1846 | [SIOCSIWSPY - SIOCIWFIRST] = iw_handler_set_spy, | 1843 | IW_HANDLER(SIOCSIWSPY, iw_handler_set_spy), |
1847 | [SIOCGIWSPY - SIOCIWFIRST] = iw_handler_get_spy, | 1844 | IW_HANDLER(SIOCGIWSPY, iw_handler_get_spy), |
1848 | [SIOCSIWTHRSPY - SIOCIWFIRST] = iw_handler_set_thrspy, | 1845 | IW_HANDLER(SIOCSIWTHRSPY, iw_handler_set_thrspy), |
1849 | [SIOCGIWTHRSPY - SIOCIWFIRST] = iw_handler_get_thrspy, | 1846 | IW_HANDLER(SIOCGIWTHRSPY, iw_handler_get_thrspy), |
1850 | [SIOCSIWAP - SIOCIWFIRST] = wl3501_set_wap, | 1847 | IW_HANDLER(SIOCSIWAP, wl3501_set_wap), |
1851 | [SIOCGIWAP - SIOCIWFIRST] = wl3501_get_wap, | 1848 | IW_HANDLER(SIOCGIWAP, wl3501_get_wap), |
1852 | [SIOCSIWSCAN - SIOCIWFIRST] = wl3501_set_scan, | 1849 | IW_HANDLER(SIOCSIWSCAN, wl3501_set_scan), |
1853 | [SIOCGIWSCAN - SIOCIWFIRST] = wl3501_get_scan, | 1850 | IW_HANDLER(SIOCGIWSCAN, wl3501_get_scan), |
1854 | [SIOCSIWESSID - SIOCIWFIRST] = wl3501_set_essid, | 1851 | IW_HANDLER(SIOCSIWESSID, wl3501_set_essid), |
1855 | [SIOCGIWESSID - SIOCIWFIRST] = wl3501_get_essid, | 1852 | IW_HANDLER(SIOCGIWESSID, wl3501_get_essid), |
1856 | [SIOCSIWNICKN - SIOCIWFIRST] = wl3501_set_nick, | 1853 | IW_HANDLER(SIOCSIWNICKN, wl3501_set_nick), |
1857 | [SIOCGIWNICKN - SIOCIWFIRST] = wl3501_get_nick, | 1854 | IW_HANDLER(SIOCGIWNICKN, wl3501_get_nick), |
1858 | [SIOCGIWRATE - SIOCIWFIRST] = wl3501_get_rate, | 1855 | IW_HANDLER(SIOCGIWRATE, wl3501_get_rate), |
1859 | [SIOCGIWRTS - SIOCIWFIRST] = wl3501_get_rts_threshold, | 1856 | IW_HANDLER(SIOCGIWRTS, wl3501_get_rts_threshold), |
1860 | [SIOCGIWFRAG - SIOCIWFIRST] = wl3501_get_frag_threshold, | 1857 | IW_HANDLER(SIOCGIWFRAG, wl3501_get_frag_threshold), |
1861 | [SIOCGIWTXPOW - SIOCIWFIRST] = wl3501_get_txpow, | 1858 | IW_HANDLER(SIOCGIWTXPOW, wl3501_get_txpow), |
1862 | [SIOCGIWRETRY - SIOCIWFIRST] = wl3501_get_retry, | 1859 | IW_HANDLER(SIOCGIWRETRY, wl3501_get_retry), |
1863 | [SIOCGIWENCODE - SIOCIWFIRST] = wl3501_get_encode, | 1860 | IW_HANDLER(SIOCGIWENCODE, wl3501_get_encode), |
1864 | [SIOCGIWPOWER - SIOCIWFIRST] = wl3501_get_power, | 1861 | IW_HANDLER(SIOCGIWPOWER, wl3501_get_power), |
1865 | }; | 1862 | }; |
1866 | 1863 | ||
1867 | static const struct iw_handler_def wl3501_handler_def = { | 1864 | static const struct iw_handler_def wl3501_handler_def = { |