diff options
author | Christian Lamparter <chunkeey@web.de> | 2009-04-25 15:11:55 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-06 15:14:41 -0400 |
commit | a406ac0dc15b22807b65f5a6590b9cb34d99d4ab (patch) | |
tree | a4534d10a3a4f98e3c04b8c8e4a3dfbc2e190acd /drivers/net/wireless/p54/p54usb.c | |
parent | ded7a7eaab2a39b7b5c36a2ec3be46f6ebcedba5 (diff) |
p54usb: remove some dead code
Since "p54: prevent upload of wrong firmwares" we no longer allow
outdated LM86 firmwares to be uploaded on ISL3887 (LM87) devices.
Therefore we can purge this buggy legacy code altogether.
Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54/p54usb.c')
-rw-r--r-- | drivers/net/wireless/p54/p54usb.c | 56 |
1 files changed, 3 insertions, 53 deletions
diff --git a/drivers/net/wireless/p54/p54usb.c b/drivers/net/wireless/p54/p54usb.c index 6cc6cbc9234f..44ab3ccac910 100644 --- a/drivers/net/wireless/p54/p54usb.c +++ b/drivers/net/wireless/p54/p54usb.c | |||
@@ -206,53 +206,6 @@ static int p54u_init_urbs(struct ieee80211_hw *dev) | |||
206 | return ret; | 206 | return ret; |
207 | } | 207 | } |
208 | 208 | ||
209 | static void p54u_tx_3887(struct ieee80211_hw *dev, struct sk_buff *skb) | ||
210 | { | ||
211 | struct p54u_priv *priv = dev->priv; | ||
212 | struct urb *addr_urb, *data_urb; | ||
213 | int err = 0; | ||
214 | |||
215 | addr_urb = usb_alloc_urb(0, GFP_ATOMIC); | ||
216 | if (!addr_urb) | ||
217 | return; | ||
218 | |||
219 | data_urb = usb_alloc_urb(0, GFP_ATOMIC); | ||
220 | if (!data_urb) { | ||
221 | usb_free_urb(addr_urb); | ||
222 | return; | ||
223 | } | ||
224 | |||
225 | usb_fill_bulk_urb(addr_urb, priv->udev, | ||
226 | usb_sndbulkpipe(priv->udev, P54U_PIPE_DATA), | ||
227 | &((struct p54_hdr *)skb->data)->req_id, 4, | ||
228 | p54u_tx_dummy_cb, dev); | ||
229 | usb_fill_bulk_urb(data_urb, priv->udev, | ||
230 | usb_sndbulkpipe(priv->udev, P54U_PIPE_DATA), | ||
231 | skb->data, skb->len, FREE_AFTER_TX(skb) ? | ||
232 | p54u_tx_cb : p54u_tx_dummy_cb, skb); | ||
233 | addr_urb->transfer_flags |= URB_ZERO_PACKET; | ||
234 | data_urb->transfer_flags |= URB_ZERO_PACKET; | ||
235 | |||
236 | usb_anchor_urb(addr_urb, &priv->submitted); | ||
237 | err = usb_submit_urb(addr_urb, GFP_ATOMIC); | ||
238 | if (err) { | ||
239 | usb_unanchor_urb(addr_urb); | ||
240 | goto out; | ||
241 | } | ||
242 | |||
243 | usb_anchor_urb(data_urb, &priv->submitted); | ||
244 | err = usb_submit_urb(data_urb, GFP_ATOMIC); | ||
245 | if (err) | ||
246 | usb_unanchor_urb(data_urb); | ||
247 | |||
248 | out: | ||
249 | usb_free_urb(addr_urb); | ||
250 | usb_free_urb(data_urb); | ||
251 | |||
252 | if (err) | ||
253 | p54_free_skb(dev, skb); | ||
254 | } | ||
255 | |||
256 | static __le32 p54u_lm87_chksum(const __le32 *data, size_t length) | 209 | static __le32 p54u_lm87_chksum(const __le32 *data, size_t length) |
257 | { | 210 | { |
258 | u32 chk = 0; | 211 | u32 chk = 0; |
@@ -954,13 +907,10 @@ static int __devinit p54u_probe(struct usb_interface *intf, | |||
954 | priv->common.stop = p54u_stop; | 907 | priv->common.stop = p54u_stop; |
955 | if (recognized_pipes < P54U_PIPE_NUMBER) { | 908 | if (recognized_pipes < P54U_PIPE_NUMBER) { |
956 | priv->hw_type = P54U_3887; | 909 | priv->hw_type = P54U_3887; |
910 | dev->extra_tx_headroom += sizeof(struct lm87_tx_hdr); | ||
911 | priv->common.tx_hdr_len = sizeof(struct lm87_tx_hdr); | ||
912 | priv->common.tx = p54u_tx_lm87; | ||
957 | err = p54u_upload_firmware_3887(dev); | 913 | err = p54u_upload_firmware_3887(dev); |
958 | if (priv->common.fw_interface == FW_LM87) { | ||
959 | dev->extra_tx_headroom += sizeof(struct lm87_tx_hdr); | ||
960 | priv->common.tx_hdr_len = sizeof(struct lm87_tx_hdr); | ||
961 | priv->common.tx = p54u_tx_lm87; | ||
962 | } else | ||
963 | priv->common.tx = p54u_tx_3887; | ||
964 | } else { | 914 | } else { |
965 | priv->hw_type = P54U_NET2280; | 915 | priv->hw_type = P54U_NET2280; |
966 | dev->extra_tx_headroom += sizeof(struct net2280_tx_hdr); | 916 | dev->extra_tx_headroom += sizeof(struct net2280_tx_hdr); |