1 --- a/net/wireless/compat-2.6.28.c
2 +++ b/net/wireless/compat-2.6.28.c
5 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28))
7 -#include <linux/usb.h>
9 /* 2.6.28 compat code goes here */
11 +#ifdef CONFIG_AR9170_USB
12 +#include <linux/usb.h>
15 * Compat-wireless notes for USB backport stuff:
17 @@ -206,6 +207,7 @@ int usb_anchor_empty(struct usb_anchor *
20 EXPORT_SYMBOL_GPL(usb_anchor_empty);
24 void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar)
25 --- a/include/net/compat-2.6.28.h
26 +++ b/include/net/compat-2.6.28.h
29 #include <linux/skbuff.h>
30 #include <linux/if_ether.h>
31 -#include <linux/usb.h>
34 #define ETH_P_PAE 0x888E /* Port Access Entity (IEEE 802.1X) */
35 @@ -42,6 +41,8 @@ extern void usb_poison_urb(struct urb *u
37 extern void usb_unpoison_urb(struct urb *urb);
39 +#ifdef CONFIG_AR9170_USB
40 +#include <linux/usb.h>
42 extern void usb_poison_anchored_urbs(struct usb_anchor *anchor);
44 @@ -49,6 +50,7 @@ extern void usb_poison_anchored_urbs(str
45 extern struct urb *usb_get_from_anchor(struct usb_anchor *anchor);
46 extern void usb_scuttle_anchored_urbs(struct usb_anchor *anchor);
47 extern int usb_anchor_empty(struct usb_anchor *anchor);
51 void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar);
52 --- a/net/wireless/compat-2.6.29.c
53 +++ b/net/wireless/compat-2.6.29.c
56 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29))
58 +#ifdef CONFIG_AR9170_USB
59 #include <linux/usb.h>
62 @@ -34,6 +35,7 @@ void usb_unpoison_anchored_urbs(struct u
63 spin_unlock_irqrestore(&anchor->lock, flags);
65 EXPORT_SYMBOL_GPL(usb_unpoison_anchored_urbs);
69 #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29) */
70 --- a/include/net/compat-2.6.29.h
71 +++ b/include/net/compat-2.6.29.h
72 @@ -41,7 +41,9 @@ static inline struct sk_buff *skb_queue_
76 +#ifdef CONFIG_AR9170_USB
77 extern void usb_unpoison_anchored_urbs(struct usb_anchor *anchor);
80 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)) */