Commit 3dcefbc9 authored by Al Viro's avatar Al Viro Committed by Jeff Garzik

[PATCH] zd1201 fixes

	In netdev-2.6 we need to update zd1201.c since we don't have
driver/net/wireless/ieee802_11.h anymore.
Signed-off-by: default avatarAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
parent 695b5bc3
...@@ -8,5 +8,3 @@ obj-$(CONFIG_USB_PEGASUS) += pegasus.o ...@@ -8,5 +8,3 @@ obj-$(CONFIG_USB_PEGASUS) += pegasus.o
obj-$(CONFIG_USB_RTL8150) += rtl8150.o obj-$(CONFIG_USB_RTL8150) += rtl8150.o
obj-$(CONFIG_USB_USBNET) += usbnet.o obj-$(CONFIG_USB_USBNET) += usbnet.o
obj-$(CONFIG_USB_ZD1201) += zd1201.o obj-$(CONFIG_USB_ZD1201) += zd1201.o
CFLAGS_zd1201.o = -Idrivers/net/wireless/
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include <linux/string.h> #include <linux/string.h>
#include <linux/if_arp.h> #include <linux/if_arp.h>
#include <linux/firmware.h> #include <linux/firmware.h>
#include <ieee802_11.h> #include <net/ieee80211.h>
#include "zd1201.h" #include "zd1201.h"
static struct usb_device_id zd1201_table[] = { static struct usb_device_id zd1201_table[] = {
...@@ -337,25 +337,25 @@ static void zd1201_usbrx(struct urb *urb, struct pt_regs *regs) ...@@ -337,25 +337,25 @@ static void zd1201_usbrx(struct urb *urb, struct pt_regs *regs)
goto resubmit; goto resubmit;
} }
if ((seq & IEEE802_11_SCTL_FRAG) || if ((seq & IEEE80211_SCTL_FRAG) ||
(fc & IEEE802_11_FCTL_MOREFRAGS)) { (fc & IEEE80211_FCTL_MOREFRAGS)) {
struct zd1201_frag *frag = NULL; struct zd1201_frag *frag = NULL;
char *ptr; char *ptr;
if (datalen<14) if (datalen<14)
goto resubmit; goto resubmit;
if ((seq & IEEE802_11_SCTL_FRAG) == 0) { if ((seq & IEEE80211_SCTL_FRAG) == 0) {
frag = kmalloc(sizeof(struct zd1201_frag*), frag = kmalloc(sizeof(struct zd1201_frag*),
GFP_ATOMIC); GFP_ATOMIC);
if (!frag) if (!frag)
goto resubmit; goto resubmit;
skb = dev_alloc_skb(IEEE802_11_DATA_LEN +14+2); skb = dev_alloc_skb(IEEE80211_DATA_LEN +14+2);
if (!skb) { if (!skb) {
kfree(frag); kfree(frag);
goto resubmit; goto resubmit;
} }
frag->skb = skb; frag->skb = skb;
frag->seq = seq & IEEE802_11_SCTL_SEQ; frag->seq = seq & IEEE80211_SCTL_SEQ;
skb_reserve(skb, 2); skb_reserve(skb, 2);
memcpy(skb_put(skb, 12), &data[datalen-14], 12); memcpy(skb_put(skb, 12), &data[datalen-14], 12);
memcpy(skb_put(skb, 2), &data[6], 2); memcpy(skb_put(skb, 2), &data[6], 2);
...@@ -364,7 +364,7 @@ static void zd1201_usbrx(struct urb *urb, struct pt_regs *regs) ...@@ -364,7 +364,7 @@ static void zd1201_usbrx(struct urb *urb, struct pt_regs *regs)
goto resubmit; goto resubmit;
} }
hlist_for_each_entry(frag, node, &zd->fraglist, fnode) hlist_for_each_entry(frag, node, &zd->fraglist, fnode)
if(frag->seq == (seq&IEEE802_11_SCTL_SEQ)) if(frag->seq == (seq&IEEE80211_SCTL_SEQ))
break; break;
if (!frag) if (!frag)
goto resubmit; goto resubmit;
...@@ -372,7 +372,7 @@ static void zd1201_usbrx(struct urb *urb, struct pt_regs *regs) ...@@ -372,7 +372,7 @@ static void zd1201_usbrx(struct urb *urb, struct pt_regs *regs)
ptr = skb_put(skb, len); ptr = skb_put(skb, len);
if (ptr) if (ptr)
memcpy(ptr, data+8, len); memcpy(ptr, data+8, len);
if (fc & IEEE802_11_FCTL_MOREFRAGS) if (fc & IEEE80211_FCTL_MOREFRAGS)
goto resubmit; goto resubmit;
hlist_del_init(&frag->fnode); hlist_del_init(&frag->fnode);
kfree(frag); kfree(frag);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment