diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/3c509.c | 2 | ||||
-rw-r--r-- | drivers/net/cs89x0.c | 13 | ||||
-rw-r--r-- | drivers/net/irda/sir_dongle.c | 2 | ||||
-rw-r--r-- | drivers/net/ppp_generic.c | 10 | ||||
-rw-r--r-- | drivers/net/pppox.c | 9 | ||||
-rw-r--r-- | drivers/net/wireless/ath9k/main.c | 8 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rs.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/cmd.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/orinoco_cs.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/p54/p54common.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/p54/p54usb.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00queue.c | 9 | ||||
-rw-r--r-- | drivers/net/wireless/rtl8187_dev.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/spectrum_cs.c | 5 | ||||
-rw-r--r-- | drivers/net/xen-netfront.c | 2 |
16 files changed, 42 insertions, 40 deletions
diff --git a/drivers/net/3c509.c b/drivers/net/3c509.c index b9d097c9f6bb..3a7bc524af33 100644 --- a/drivers/net/3c509.c +++ b/drivers/net/3c509.c | |||
@@ -40,7 +40,7 @@ | |||
40 | v1.14 10/15/97 Avoided waiting..discard message for fast machines -djb | 40 | v1.14 10/15/97 Avoided waiting..discard message for fast machines -djb |
41 | v1.15 1/31/98 Faster recovery for Tx errors. -djb | 41 | v1.15 1/31/98 Faster recovery for Tx errors. -djb |
42 | v1.16 2/3/98 Different ID port handling to avoid sound cards. -djb | 42 | v1.16 2/3/98 Different ID port handling to avoid sound cards. -djb |
43 | v1.18 12Mar2001 Andrew Morton <andrewm@uow.edu.au> | 43 | v1.18 12Mar2001 Andrew Morton |
44 | - Avoid bogus detect of 3c590's (Andrzej Krzysztofowicz) | 44 | - Avoid bogus detect of 3c590's (Andrzej Krzysztofowicz) |
45 | - Reviewed against 1.18 from scyld.com | 45 | - Reviewed against 1.18 from scyld.com |
46 | v1.18a 17Nov2001 Jeff Garzik <jgarzik@pobox.com> | 46 | v1.18a 17Nov2001 Jeff Garzik <jgarzik@pobox.com> |
diff --git a/drivers/net/cs89x0.c b/drivers/net/cs89x0.c index a28de8182802..7107620f615d 100644 --- a/drivers/net/cs89x0.c +++ b/drivers/net/cs89x0.c | |||
@@ -36,8 +36,7 @@ | |||
36 | 36 | ||
37 | Alan Cox : Removed 1.2 support, added 2.1 extra counters. | 37 | Alan Cox : Removed 1.2 support, added 2.1 extra counters. |
38 | 38 | ||
39 | Andrew Morton : andrewm@uow.edu.au | 39 | Andrew Morton : Kernel 2.3.48 |
40 | : Kernel 2.3.48 | ||
41 | : Handle kmalloc() failures | 40 | : Handle kmalloc() failures |
42 | : Other resource allocation fixes | 41 | : Other resource allocation fixes |
43 | : Add SMP locks | 42 | : Add SMP locks |
@@ -49,7 +48,7 @@ | |||
49 | : Fixed an out-of-mem bug in dma_rx() | 48 | : Fixed an out-of-mem bug in dma_rx() |
50 | : Updated Documentation/networking/cs89x0.txt | 49 | : Updated Documentation/networking/cs89x0.txt |
51 | 50 | ||
52 | Andrew Morton : andrewm@uow.edu.au / Kernel 2.3.99-pre1 | 51 | Andrew Morton : Kernel 2.3.99-pre1 |
53 | : Use skb_reserve to longword align IP header (two places) | 52 | : Use skb_reserve to longword align IP header (two places) |
54 | : Remove a delay loop from dma_rx() | 53 | : Remove a delay loop from dma_rx() |
55 | : Replace '100' with HZ | 54 | : Replace '100' with HZ |
@@ -57,11 +56,11 @@ | |||
57 | : Added 'cs89x0_dma=N' kernel boot option | 56 | : Added 'cs89x0_dma=N' kernel boot option |
58 | : Correctly initialise lp->lock in non-module compile | 57 | : Correctly initialise lp->lock in non-module compile |
59 | 58 | ||
60 | Andrew Morton : andrewm@uow.edu.au / Kernel 2.3.99-pre4-1 | 59 | Andrew Morton : Kernel 2.3.99-pre4-1 |
61 | : MOD_INC/DEC race fix (see | 60 | : MOD_INC/DEC race fix (see |
62 | : http://www.uwsg.indiana.edu/hypermail/linux/kernel/0003.3/1532.html) | 61 | : http://www.uwsg.indiana.edu/hypermail/linux/kernel/0003.3/1532.html) |
63 | 62 | ||
64 | Andrew Morton : andrewm@uow.edu.au / Kernel 2.4.0-test7-pre2 | 63 | Andrew Morton : Kernel 2.4.0-test7-pre2 |
65 | : Enhanced EEPROM support to cover more devices, | 64 | : Enhanced EEPROM support to cover more devices, |
66 | : abstracted IRQ mapping to support CONFIG_ARCH_CLPS7500 arch | 65 | : abstracted IRQ mapping to support CONFIG_ARCH_CLPS7500 arch |
67 | : (Jason Gunthorpe <jgg@ualberta.ca>) | 66 | : (Jason Gunthorpe <jgg@ualberta.ca>) |
@@ -156,7 +155,7 @@ | |||
156 | #include "cs89x0.h" | 155 | #include "cs89x0.h" |
157 | 156 | ||
158 | static char version[] __initdata = | 157 | static char version[] __initdata = |
159 | "cs89x0.c: v2.4.3-pre1 Russell Nelson <nelson@crynwr.com>, Andrew Morton <andrewm@uow.edu.au>\n"; | 158 | "cs89x0.c: v2.4.3-pre1 Russell Nelson <nelson@crynwr.com>, Andrew Morton\n"; |
160 | 159 | ||
161 | #define DRV_NAME "cs89x0" | 160 | #define DRV_NAME "cs89x0" |
162 | 161 | ||
@@ -1877,7 +1876,7 @@ MODULE_PARM_DESC(dmasize , "(ignored)"); | |||
1877 | MODULE_PARM_DESC(use_dma , "(ignored)"); | 1876 | MODULE_PARM_DESC(use_dma , "(ignored)"); |
1878 | #endif | 1877 | #endif |
1879 | 1878 | ||
1880 | MODULE_AUTHOR("Mike Cruse, Russwll Nelson <nelson@crynwr.com>, Andrew Morton <andrewm@uow.edu.au>"); | 1879 | MODULE_AUTHOR("Mike Cruse, Russwll Nelson <nelson@crynwr.com>, Andrew Morton"); |
1881 | MODULE_LICENSE("GPL"); | 1880 | MODULE_LICENSE("GPL"); |
1882 | 1881 | ||
1883 | 1882 | ||
diff --git a/drivers/net/irda/sir_dongle.c b/drivers/net/irda/sir_dongle.c index 36030241f7a9..2a9930e6e2af 100644 --- a/drivers/net/irda/sir_dongle.c +++ b/drivers/net/irda/sir_dongle.c | |||
@@ -67,9 +67,7 @@ int sirdev_get_dongle(struct sir_dev *dev, IRDA_DONGLE type) | |||
67 | const struct dongle_driver *drv = NULL; | 67 | const struct dongle_driver *drv = NULL; |
68 | int err = -EINVAL; | 68 | int err = -EINVAL; |
69 | 69 | ||
70 | #ifdef CONFIG_KMOD | ||
71 | request_module("irda-dongle-%d", type); | 70 | request_module("irda-dongle-%d", type); |
72 | #endif | ||
73 | 71 | ||
74 | if (dev->dongle_drv != NULL) | 72 | if (dev->dongle_drv != NULL) |
75 | return -EBUSY; | 73 | return -EBUSY; |
diff --git a/drivers/net/ppp_generic.c b/drivers/net/ppp_generic.c index 03d027c68879..7e857e938adb 100644 --- a/drivers/net/ppp_generic.c +++ b/drivers/net/ppp_generic.c | |||
@@ -2127,13 +2127,9 @@ ppp_set_compress(struct ppp *ppp, unsigned long arg) | |||
2127 | || ccp_option[1] < 2 || ccp_option[1] > data.length) | 2127 | || ccp_option[1] < 2 || ccp_option[1] > data.length) |
2128 | goto out; | 2128 | goto out; |
2129 | 2129 | ||
2130 | cp = find_compressor(ccp_option[0]); | 2130 | cp = try_then_request_module( |
2131 | #ifdef CONFIG_KMOD | 2131 | find_compressor(ccp_option[0]), |
2132 | if (!cp) { | 2132 | "ppp-compress-%d", ccp_option[0]); |
2133 | request_module("ppp-compress-%d", ccp_option[0]); | ||
2134 | cp = find_compressor(ccp_option[0]); | ||
2135 | } | ||
2136 | #endif /* CONFIG_KMOD */ | ||
2137 | if (!cp) | 2133 | if (!cp) |
2138 | goto out; | 2134 | goto out; |
2139 | 2135 | ||
diff --git a/drivers/net/pppox.c b/drivers/net/pppox.c index c6898c1fc54d..03aecc97fb45 100644 --- a/drivers/net/pppox.c +++ b/drivers/net/pppox.c | |||
@@ -115,13 +115,8 @@ static int pppox_create(struct net *net, struct socket *sock, int protocol) | |||
115 | goto out; | 115 | goto out; |
116 | 116 | ||
117 | rc = -EPROTONOSUPPORT; | 117 | rc = -EPROTONOSUPPORT; |
118 | #ifdef CONFIG_KMOD | 118 | if (!pppox_protos[protocol]) |
119 | if (!pppox_protos[protocol]) { | 119 | request_module("pppox-proto-%d", protocol); |
120 | char buffer[32]; | ||
121 | sprintf(buffer, "pppox-proto-%d", protocol); | ||
122 | request_module(buffer); | ||
123 | } | ||
124 | #endif | ||
125 | if (!pppox_protos[protocol] || | 120 | if (!pppox_protos[protocol] || |
126 | !try_module_get(pppox_protos[protocol]->owner)) | 121 | !try_module_get(pppox_protos[protocol]->owner)) |
127 | goto out; | 122 | goto out; |
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c index 74726990d59e..f05f584ab7bc 100644 --- a/drivers/net/wireless/ath9k/main.c +++ b/drivers/net/wireless/ath9k/main.c | |||
@@ -1640,6 +1640,11 @@ static int ath9k_ampdu_action(struct ieee80211_hw *hw, | |||
1640 | return ret; | 1640 | return ret; |
1641 | } | 1641 | } |
1642 | 1642 | ||
1643 | static int ath9k_no_fragmentation(struct ieee80211_hw *hw, u32 value) | ||
1644 | { | ||
1645 | return -EOPNOTSUPP; | ||
1646 | } | ||
1647 | |||
1643 | static struct ieee80211_ops ath9k_ops = { | 1648 | static struct ieee80211_ops ath9k_ops = { |
1644 | .tx = ath9k_tx, | 1649 | .tx = ath9k_tx, |
1645 | .start = ath9k_start, | 1650 | .start = ath9k_start, |
@@ -1664,7 +1669,8 @@ static struct ieee80211_ops ath9k_ops = { | |||
1664 | .get_tsf = ath9k_get_tsf, | 1669 | .get_tsf = ath9k_get_tsf, |
1665 | .reset_tsf = ath9k_reset_tsf, | 1670 | .reset_tsf = ath9k_reset_tsf, |
1666 | .tx_last_beacon = NULL, | 1671 | .tx_last_beacon = NULL, |
1667 | .ampdu_action = ath9k_ampdu_action | 1672 | .ampdu_action = ath9k_ampdu_action, |
1673 | .set_frag_threshold = ath9k_no_fragmentation, | ||
1668 | }; | 1674 | }; |
1669 | 1675 | ||
1670 | static int ath_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) | 1676 | static int ath_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) |
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index f6003e7996af..5155b8a760a7 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -833,12 +833,12 @@ static int iwl5000_hw_set_hw_params(struct iwl_priv *priv) | |||
833 | switch (priv->hw_rev & CSR_HW_REV_TYPE_MSK) { | 833 | switch (priv->hw_rev & CSR_HW_REV_TYPE_MSK) { |
834 | case CSR_HW_REV_TYPE_5100: | 834 | case CSR_HW_REV_TYPE_5100: |
835 | case CSR_HW_REV_TYPE_5300: | 835 | case CSR_HW_REV_TYPE_5300: |
836 | /* 5X00 wants in Celsius */ | 836 | case CSR_HW_REV_TYPE_5350: |
837 | /* 5X00 and 5350 wants in Celsius */ | ||
837 | priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD; | 838 | priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD; |
838 | break; | 839 | break; |
839 | case CSR_HW_REV_TYPE_5150: | 840 | case CSR_HW_REV_TYPE_5150: |
840 | case CSR_HW_REV_TYPE_5350: | 841 | /* 5150 wants in Kelvin */ |
841 | /* 5X50 wants in Kelvin */ | ||
842 | priv->hw_params.ct_kill_threshold = | 842 | priv->hw_params.ct_kill_threshold = |
843 | CELSIUS_TO_KELVIN(CT_KILL_THRESHOLD); | 843 | CELSIUS_TO_KELVIN(CT_KILL_THRESHOLD); |
844 | break; | 844 | break; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c index 93944de923ca..e2a58e477036 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c | |||
@@ -2422,7 +2422,7 @@ static void rs_free_sta(void *priv_r, struct ieee80211_sta *sta, | |||
2422 | void *priv_sta) | 2422 | void *priv_sta) |
2423 | { | 2423 | { |
2424 | struct iwl_lq_sta *lq_sta = priv_sta; | 2424 | struct iwl_lq_sta *lq_sta = priv_sta; |
2425 | struct iwl_priv *priv = priv_r; | 2425 | struct iwl_priv *priv __maybe_unused = priv_r; |
2426 | 2426 | ||
2427 | IWL_DEBUG_RATE("enter\n"); | 2427 | IWL_DEBUG_RATE("enter\n"); |
2428 | kfree(lq_sta); | 2428 | kfree(lq_sta); |
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c index a912fb68c099..297696de2da0 100644 --- a/drivers/net/wireless/libertas/cmd.c +++ b/drivers/net/wireless/libertas/cmd.c | |||
@@ -823,7 +823,9 @@ int lbs_update_channel(struct lbs_private *priv) | |||
823 | int lbs_set_channel(struct lbs_private *priv, u8 channel) | 823 | int lbs_set_channel(struct lbs_private *priv, u8 channel) |
824 | { | 824 | { |
825 | struct cmd_ds_802_11_rf_channel cmd; | 825 | struct cmd_ds_802_11_rf_channel cmd; |
826 | #ifdef DEBUG | ||
826 | u8 old_channel = priv->curbssparams.channel; | 827 | u8 old_channel = priv->curbssparams.channel; |
828 | #endif | ||
827 | int ret = 0; | 829 | int ret = 0; |
828 | 830 | ||
829 | lbs_deb_enter(LBS_DEB_CMD); | 831 | lbs_deb_enter(LBS_DEB_CMD); |
diff --git a/drivers/net/wireless/orinoco_cs.c b/drivers/net/wireless/orinoco_cs.c index e585684e59a0..6fcf2bda7cdf 100644 --- a/drivers/net/wireless/orinoco_cs.c +++ b/drivers/net/wireless/orinoco_cs.c | |||
@@ -378,6 +378,7 @@ static int orinoco_cs_resume(struct pcmcia_device *link) | |||
378 | struct orinoco_private *priv = netdev_priv(dev); | 378 | struct orinoco_private *priv = netdev_priv(dev); |
379 | struct orinoco_pccard *card = priv->card; | 379 | struct orinoco_pccard *card = priv->card; |
380 | int err = 0; | 380 | int err = 0; |
381 | unsigned long flags; | ||
381 | 382 | ||
382 | if (! test_bit(0, &card->hard_reset_in_progress)) { | 383 | if (! test_bit(0, &card->hard_reset_in_progress)) { |
383 | err = orinoco_reinit_firmware(dev); | 384 | err = orinoco_reinit_firmware(dev); |
@@ -387,7 +388,7 @@ static int orinoco_cs_resume(struct pcmcia_device *link) | |||
387 | return -EIO; | 388 | return -EIO; |
388 | } | 389 | } |
389 | 390 | ||
390 | spin_lock(&priv->lock); | 391 | spin_lock_irqsave(&priv->lock, flags); |
391 | 392 | ||
392 | netif_device_attach(dev); | 393 | netif_device_attach(dev); |
393 | priv->hw_unavailable--; | 394 | priv->hw_unavailable--; |
@@ -399,7 +400,7 @@ static int orinoco_cs_resume(struct pcmcia_device *link) | |||
399 | dev->name, err); | 400 | dev->name, err); |
400 | } | 401 | } |
401 | 402 | ||
402 | spin_unlock(&priv->lock); | 403 | spin_unlock_irqrestore(&priv->lock, flags); |
403 | } | 404 | } |
404 | 405 | ||
405 | return err; | 406 | return err; |
diff --git a/drivers/net/wireless/p54/p54common.c b/drivers/net/wireless/p54/p54common.c index 1994aa199d37..117c7d3a52b0 100644 --- a/drivers/net/wireless/p54/p54common.c +++ b/drivers/net/wireless/p54/p54common.c | |||
@@ -479,7 +479,6 @@ static int p54_parse_eeprom(struct ieee80211_hw *dev, void *eeprom, int len) | |||
479 | printk(KERN_ERR "p54: eeprom parse failed!\n"); | 479 | printk(KERN_ERR "p54: eeprom parse failed!\n"); |
480 | return err; | 480 | return err; |
481 | } | 481 | } |
482 | EXPORT_SYMBOL_GPL(p54_parse_eeprom); | ||
483 | 482 | ||
484 | static int p54_rssi_to_dbm(struct ieee80211_hw *dev, int rssi) | 483 | static int p54_rssi_to_dbm(struct ieee80211_hw *dev, int rssi) |
485 | { | 484 | { |
diff --git a/drivers/net/wireless/p54/p54usb.c b/drivers/net/wireless/p54/p54usb.c index 1912f5e9a0a9..75d749bccb0d 100644 --- a/drivers/net/wireless/p54/p54usb.c +++ b/drivers/net/wireless/p54/p54usb.c | |||
@@ -39,6 +39,7 @@ static struct usb_device_id p54u_table[] __devinitdata = { | |||
39 | {USB_DEVICE(0x0846, 0x4200)}, /* Netgear WG121 */ | 39 | {USB_DEVICE(0x0846, 0x4200)}, /* Netgear WG121 */ |
40 | {USB_DEVICE(0x0846, 0x4210)}, /* Netgear WG121 the second ? */ | 40 | {USB_DEVICE(0x0846, 0x4210)}, /* Netgear WG121 the second ? */ |
41 | {USB_DEVICE(0x0846, 0x4220)}, /* Netgear WG111 */ | 41 | {USB_DEVICE(0x0846, 0x4220)}, /* Netgear WG111 */ |
42 | {USB_DEVICE(0x09aa, 0x1000)}, /* Spinnaker Proto board */ | ||
42 | {USB_DEVICE(0x0cde, 0x0006)}, /* Medion 40900, Roper Europe */ | 43 | {USB_DEVICE(0x0cde, 0x0006)}, /* Medion 40900, Roper Europe */ |
43 | {USB_DEVICE(0x124a, 0x4023)}, /* Shuttle PN15, Airvast WM168g, IOGear GWU513 */ | 44 | {USB_DEVICE(0x124a, 0x4023)}, /* Shuttle PN15, Airvast WM168g, IOGear GWU513 */ |
44 | {USB_DEVICE(0x1915, 0x2234)}, /* Linksys WUSB54G OEM */ | 45 | {USB_DEVICE(0x1915, 0x2234)}, /* Linksys WUSB54G OEM */ |
@@ -63,8 +64,8 @@ static struct usb_device_id p54u_table[] __devinitdata = { | |||
63 | {USB_DEVICE(0x0cde, 0x0006)}, /* Medion MD40900 */ | 64 | {USB_DEVICE(0x0cde, 0x0006)}, /* Medion MD40900 */ |
64 | {USB_DEVICE(0x0cde, 0x0008)}, /* Sagem XG703A */ | 65 | {USB_DEVICE(0x0cde, 0x0008)}, /* Sagem XG703A */ |
65 | {USB_DEVICE(0x0d8e, 0x3762)}, /* DLink DWL-G120 Cohiba */ | 66 | {USB_DEVICE(0x0d8e, 0x3762)}, /* DLink DWL-G120 Cohiba */ |
66 | {USB_DEVICE(0x09aa, 0x1000)}, /* Spinnaker Proto board */ | ||
67 | {USB_DEVICE(0x124a, 0x4025)}, /* IOGear GWU513 (GW3887IK chip) */ | 67 | {USB_DEVICE(0x124a, 0x4025)}, /* IOGear GWU513 (GW3887IK chip) */ |
68 | {USB_DEVICE(0x1260, 0xee22)}, /* SMC 2862W-G version 2 */ | ||
68 | {USB_DEVICE(0x13b1, 0x000a)}, /* Linksys WUSB54G ver 2 */ | 69 | {USB_DEVICE(0x13b1, 0x000a)}, /* Linksys WUSB54G ver 2 */ |
69 | {USB_DEVICE(0x13B1, 0x000C)}, /* Linksys WUSB54AG */ | 70 | {USB_DEVICE(0x13B1, 0x000C)}, /* Linksys WUSB54AG */ |
70 | {USB_DEVICE(0x1435, 0x0427)}, /* Inventel UR054G */ | 71 | {USB_DEVICE(0x1435, 0x0427)}, /* Inventel UR054G */ |
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.c b/drivers/net/wireless/rt2x00/rt2x00queue.c index 1676ac484790..451d410ecdae 100644 --- a/drivers/net/wireless/rt2x00/rt2x00queue.c +++ b/drivers/net/wireless/rt2x00/rt2x00queue.c | |||
@@ -374,7 +374,7 @@ int rt2x00queue_write_tx_frame(struct data_queue *queue, struct sk_buff *skb) | |||
374 | struct queue_entry *entry = rt2x00queue_get_entry(queue, Q_INDEX); | 374 | struct queue_entry *entry = rt2x00queue_get_entry(queue, Q_INDEX); |
375 | struct txentry_desc txdesc; | 375 | struct txentry_desc txdesc; |
376 | struct skb_frame_desc *skbdesc; | 376 | struct skb_frame_desc *skbdesc; |
377 | unsigned int iv_len; | 377 | unsigned int iv_len = 0; |
378 | 378 | ||
379 | if (unlikely(rt2x00queue_full(queue))) | 379 | if (unlikely(rt2x00queue_full(queue))) |
380 | return -EINVAL; | 380 | return -EINVAL; |
@@ -395,6 +395,9 @@ int rt2x00queue_write_tx_frame(struct data_queue *queue, struct sk_buff *skb) | |||
395 | entry->skb = skb; | 395 | entry->skb = skb; |
396 | rt2x00queue_create_tx_descriptor(entry, &txdesc); | 396 | rt2x00queue_create_tx_descriptor(entry, &txdesc); |
397 | 397 | ||
398 | if (IEEE80211_SKB_CB(skb)->control.hw_key != NULL) | ||
399 | iv_len = IEEE80211_SKB_CB(skb)->control.hw_key->iv_len; | ||
400 | |||
398 | /* | 401 | /* |
399 | * All information is retreived from the skb->cb array, | 402 | * All information is retreived from the skb->cb array, |
400 | * now we should claim ownership of the driver part of that | 403 | * now we should claim ownership of the driver part of that |
@@ -410,9 +413,7 @@ int rt2x00queue_write_tx_frame(struct data_queue *queue, struct sk_buff *skb) | |||
410 | * the frame so we can provide it to the driver seperately. | 413 | * the frame so we can provide it to the driver seperately. |
411 | */ | 414 | */ |
412 | if (test_bit(ENTRY_TXD_ENCRYPT, &txdesc.flags) && | 415 | if (test_bit(ENTRY_TXD_ENCRYPT, &txdesc.flags) && |
413 | !test_bit(ENTRY_TXD_ENCRYPT_IV, &txdesc.flags) && | 416 | !test_bit(ENTRY_TXD_ENCRYPT_IV, &txdesc.flags)) { |
414 | (IEEE80211_SKB_CB(skb)->control.hw_key != NULL)) { | ||
415 | iv_len = IEEE80211_SKB_CB(skb)->control.hw_key->iv_len; | ||
416 | rt2x00crypto_tx_remove_iv(skb, iv_len); | 417 | rt2x00crypto_tx_remove_iv(skb, iv_len); |
417 | } | 418 | } |
418 | 419 | ||
diff --git a/drivers/net/wireless/rtl8187_dev.c b/drivers/net/wireless/rtl8187_dev.c index e9902613e2ee..431e3c78bf27 100644 --- a/drivers/net/wireless/rtl8187_dev.c +++ b/drivers/net/wireless/rtl8187_dev.c | |||
@@ -33,10 +33,13 @@ MODULE_LICENSE("GPL"); | |||
33 | static struct usb_device_id rtl8187_table[] __devinitdata = { | 33 | static struct usb_device_id rtl8187_table[] __devinitdata = { |
34 | /* Asus */ | 34 | /* Asus */ |
35 | {USB_DEVICE(0x0b05, 0x171d), .driver_info = DEVICE_RTL8187}, | 35 | {USB_DEVICE(0x0b05, 0x171d), .driver_info = DEVICE_RTL8187}, |
36 | /* Belkin */ | ||
37 | {USB_DEVICE(0x050d, 0x705e), .driver_info = DEVICE_RTL8187B}, | ||
36 | /* Realtek */ | 38 | /* Realtek */ |
37 | {USB_DEVICE(0x0bda, 0x8187), .driver_info = DEVICE_RTL8187}, | 39 | {USB_DEVICE(0x0bda, 0x8187), .driver_info = DEVICE_RTL8187}, |
38 | {USB_DEVICE(0x0bda, 0x8189), .driver_info = DEVICE_RTL8187B}, | 40 | {USB_DEVICE(0x0bda, 0x8189), .driver_info = DEVICE_RTL8187B}, |
39 | {USB_DEVICE(0x0bda, 0x8197), .driver_info = DEVICE_RTL8187B}, | 41 | {USB_DEVICE(0x0bda, 0x8197), .driver_info = DEVICE_RTL8187B}, |
42 | {USB_DEVICE(0x0bda, 0x8198), .driver_info = DEVICE_RTL8187B}, | ||
40 | /* Netgear */ | 43 | /* Netgear */ |
41 | {USB_DEVICE(0x0846, 0x6100), .driver_info = DEVICE_RTL8187}, | 44 | {USB_DEVICE(0x0846, 0x6100), .driver_info = DEVICE_RTL8187}, |
42 | {USB_DEVICE(0x0846, 0x6a00), .driver_info = DEVICE_RTL8187}, | 45 | {USB_DEVICE(0x0846, 0x6a00), .driver_info = DEVICE_RTL8187}, |
diff --git a/drivers/net/wireless/spectrum_cs.c b/drivers/net/wireless/spectrum_cs.c index b0c71c3be467..852789ad34b3 100644 --- a/drivers/net/wireless/spectrum_cs.c +++ b/drivers/net/wireless/spectrum_cs.c | |||
@@ -426,10 +426,11 @@ spectrum_cs_suspend(struct pcmcia_device *link) | |||
426 | { | 426 | { |
427 | struct net_device *dev = link->priv; | 427 | struct net_device *dev = link->priv; |
428 | struct orinoco_private *priv = netdev_priv(dev); | 428 | struct orinoco_private *priv = netdev_priv(dev); |
429 | unsigned long flags; | ||
429 | int err = 0; | 430 | int err = 0; |
430 | 431 | ||
431 | /* Mark the device as stopped, to block IO until later */ | 432 | /* Mark the device as stopped, to block IO until later */ |
432 | spin_lock(&priv->lock); | 433 | spin_lock_irqsave(&priv->lock, flags); |
433 | 434 | ||
434 | err = __orinoco_down(dev); | 435 | err = __orinoco_down(dev); |
435 | if (err) | 436 | if (err) |
@@ -439,7 +440,7 @@ spectrum_cs_suspend(struct pcmcia_device *link) | |||
439 | netif_device_detach(dev); | 440 | netif_device_detach(dev); |
440 | priv->hw_unavailable++; | 441 | priv->hw_unavailable++; |
441 | 442 | ||
442 | spin_unlock(&priv->lock); | 443 | spin_unlock_irqrestore(&priv->lock, flags); |
443 | 444 | ||
444 | return err; | 445 | return err; |
445 | } | 446 | } |
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c index 3c3dd403f5dd..5c7a87e38951 100644 --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c | |||
@@ -471,7 +471,7 @@ static int xennet_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
471 | unsigned int offset = offset_in_page(data); | 471 | unsigned int offset = offset_in_page(data); |
472 | unsigned int len = skb_headlen(skb); | 472 | unsigned int len = skb_headlen(skb); |
473 | 473 | ||
474 | frags += (offset + len + PAGE_SIZE - 1) / PAGE_SIZE; | 474 | frags += DIV_ROUND_UP(offset + len, PAGE_SIZE); |
475 | if (unlikely(frags > MAX_SKB_FRAGS + 1)) { | 475 | if (unlikely(frags > MAX_SKB_FRAGS + 1)) { |
476 | printk(KERN_ALERT "xennet: skb rides the rocket: %d frags\n", | 476 | printk(KERN_ALERT "xennet: skb rides the rocket: %d frags\n", |
477 | frags); | 477 | frags); |