diff options
| -rw-r--r-- | drivers/staging/wlan-ng/hfa384x_usb.c | 12 | ||||
| -rw-r--r-- | drivers/staging/wlan-ng/p80211conv.h | 4 | ||||
| -rw-r--r-- | drivers/staging/wlan-ng/p80211metadef.h | 18 | ||||
| -rw-r--r-- | drivers/staging/wlan-ng/p80211mgmt.h | 42 | ||||
| -rw-r--r-- | drivers/staging/wlan-ng/p80211netdev.c | 4 | ||||
| -rw-r--r-- | drivers/staging/wlan-ng/p80211netdev.h | 44 | ||||
| -rw-r--r-- | drivers/staging/wlan-ng/p80211req.c | 2 | ||||
| -rw-r--r-- | drivers/staging/wlan-ng/p80211req.h | 2 | ||||
| -rw-r--r-- | drivers/staging/wlan-ng/p80211types.h | 12 | ||||
| -rw-r--r-- | drivers/staging/wlan-ng/p80211wext.c | 56 | ||||
| -rw-r--r-- | drivers/staging/wlan-ng/prism2fw.c | 69 | ||||
| -rw-r--r-- | drivers/staging/wlan-ng/prism2mgmt.c | 30 | ||||
| -rw-r--r-- | drivers/staging/wlan-ng/prism2mgmt.h | 48 | ||||
| -rw-r--r-- | drivers/staging/wlan-ng/prism2mib.c | 11 | ||||
| -rw-r--r-- | drivers/staging/wlan-ng/prism2sta.c | 23 |
15 files changed, 183 insertions, 194 deletions
diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hfa384x_usb.c index 925678babd9e..730d085c3f87 100644 --- a/drivers/staging/wlan-ng/hfa384x_usb.c +++ b/drivers/staging/wlan-ng/hfa384x_usb.c | |||
| @@ -118,15 +118,15 @@ | |||
| 118 | #include <linux/wireless.h> | 118 | #include <linux/wireless.h> |
| 119 | #include <linux/netdevice.h> | 119 | #include <linux/netdevice.h> |
| 120 | #include <linux/timer.h> | 120 | #include <linux/timer.h> |
| 121 | #include <asm/io.h> | 121 | #include <linux/io.h> |
| 122 | #include <linux/delay.h> | 122 | #include <linux/delay.h> |
| 123 | #include <asm/byteorder.h> | 123 | #include <asm/byteorder.h> |
| 124 | #include <asm/bitops.h> | 124 | #include <linux/bitops.h> |
| 125 | #include <linux/list.h> | 125 | #include <linux/list.h> |
| 126 | #include <linux/usb.h> | 126 | #include <linux/usb.h> |
| 127 | #include <linux/byteorder/generic.h> | 127 | #include <linux/byteorder/generic.h> |
| 128 | 128 | ||
| 129 | #define SUBMIT_URB(u,f) usb_submit_urb(u,f) | 129 | #define SUBMIT_URB(u, f) usb_submit_urb(u, f) |
| 130 | 130 | ||
| 131 | #include "p80211types.h" | 131 | #include "p80211types.h" |
| 132 | #include "p80211hdr.h" | 132 | #include "p80211hdr.h" |
| @@ -627,7 +627,7 @@ static hfa384x_usbctlx_t *usbctlx_alloc(void) | |||
| 627 | { | 627 | { |
| 628 | hfa384x_usbctlx_t *ctlx; | 628 | hfa384x_usbctlx_t *ctlx; |
| 629 | 629 | ||
| 630 | ctlx = kmalloc(sizeof(*ctlx), in_interrupt()? GFP_ATOMIC : GFP_KERNEL); | 630 | ctlx = kmalloc(sizeof(*ctlx), in_interrupt() ? GFP_ATOMIC : GFP_KERNEL); |
| 631 | if (ctlx != NULL) { | 631 | if (ctlx != NULL) { |
| 632 | memset(ctlx, 0, sizeof(*ctlx)); | 632 | memset(ctlx, 0, sizeof(*ctlx)); |
| 633 | init_completion(&ctlx->done); | 633 | init_completion(&ctlx->done); |
| @@ -675,7 +675,7 @@ struct usbctlx_cmd_completor { | |||
| 675 | }; | 675 | }; |
| 676 | typedef struct usbctlx_cmd_completor usbctlx_cmd_completor_t; | 676 | typedef struct usbctlx_cmd_completor usbctlx_cmd_completor_t; |
| 677 | 677 | ||
| 678 | static int usbctlx_cmd_completor_fn(usbctlx_completor_t * head) | 678 | static int usbctlx_cmd_completor_fn(usbctlx_completor_t *head) |
| 679 | { | 679 | { |
| 680 | usbctlx_cmd_completor_t *complete = (usbctlx_cmd_completor_t *) head; | 680 | usbctlx_cmd_completor_t *complete = (usbctlx_cmd_completor_t *) head; |
| 681 | return usbctlx_get_status(complete->cmdresp, complete->result); | 681 | return usbctlx_get_status(complete->cmdresp, complete->result); |
| @@ -3642,7 +3642,7 @@ static void hfa384x_int_rxmonitor(wlandevice_t *wlandev, | |||
| 3642 | /* check for unencrypted stuff if WEP bit set. */ | 3642 | /* check for unencrypted stuff if WEP bit set. */ |
| 3643 | if (*(datap - hdrlen + 1) & 0x40) /* wep set */ | 3643 | if (*(datap - hdrlen + 1) & 0x40) /* wep set */ |
| 3644 | if ((*(datap) == 0xaa) && (*(datap + 1) == 0xaa)) | 3644 | if ((*(datap) == 0xaa) && (*(datap + 1) == 0xaa)) |
| 3645 | *(datap - hdrlen + 1) &= 0xbf; // clear wep; it's the 802.2 header! | 3645 | *(datap - hdrlen + 1) &= 0xbf; /* clear wep; it's the 802.2 header! */ |
| 3646 | } | 3646 | } |
| 3647 | 3647 | ||
| 3648 | if (hw->sniff_fcs) { | 3648 | if (hw->sniff_fcs) { |
diff --git a/drivers/staging/wlan-ng/p80211conv.h b/drivers/staging/wlan-ng/p80211conv.h index 0c62df19fa7f..6fe163be24f6 100644 --- a/drivers/staging/wlan-ng/p80211conv.h +++ b/drivers/staging/wlan-ng/p80211conv.h | |||
| @@ -153,8 +153,8 @@ struct wlandevice; | |||
| 153 | int skb_p80211_to_ether(struct wlandevice *wlandev, u32 ethconv, | 153 | int skb_p80211_to_ether(struct wlandevice *wlandev, u32 ethconv, |
| 154 | struct sk_buff *skb); | 154 | struct sk_buff *skb); |
| 155 | int skb_ether_to_p80211(struct wlandevice *wlandev, u32 ethconv, | 155 | int skb_ether_to_p80211(struct wlandevice *wlandev, u32 ethconv, |
| 156 | struct sk_buff *skb, p80211_hdr_t * p80211_hdr, | 156 | struct sk_buff *skb, p80211_hdr_t *p80211_hdr, |
| 157 | p80211_metawep_t * p80211_wep); | 157 | p80211_metawep_t *p80211_wep); |
| 158 | 158 | ||
| 159 | int p80211_stt_findproto(u16 proto); | 159 | int p80211_stt_findproto(u16 proto); |
| 160 | 160 | ||
diff --git a/drivers/staging/wlan-ng/p80211metadef.h b/drivers/staging/wlan-ng/p80211metadef.h index da8b6f53c74f..0ccfba1294de 100644 --- a/drivers/staging/wlan-ng/p80211metadef.h +++ b/drivers/staging/wlan-ng/p80211metadef.h | |||
| @@ -190,9 +190,9 @@ | |||
| 190 | (P80211DID_MKSECTION(2) | \ | 190 | (P80211DID_MKSECTION(2) | \ |
| 191 | P80211DID_MKGROUP(1)) | 191 | P80211DID_MKGROUP(1)) |
| 192 | #define DIDmib_dot11mac_dot11OperationTable_dot11MACAddress \ | 192 | #define DIDmib_dot11mac_dot11OperationTable_dot11MACAddress \ |
| 193 | (P80211DID_MKSECTION(2) | \ | 193 | (P80211DID_MKSECTION(2) | \ |
| 194 | P80211DID_MKGROUP(1) | \ | 194 | P80211DID_MKGROUP(1) | \ |
| 195 | P80211DID_MKITEM(1) | 0x18000000) | 195 | P80211DID_MKITEM(1) | 0x18000000) |
| 196 | #define DIDmib_dot11mac_dot11OperationTable_dot11RTSThreshold \ | 196 | #define DIDmib_dot11mac_dot11OperationTable_dot11RTSThreshold \ |
| 197 | (P80211DID_MKSECTION(2) | \ | 197 | (P80211DID_MKSECTION(2) | \ |
| 198 | P80211DID_MKGROUP(1) | \ | 198 | P80211DID_MKGROUP(1) | \ |
| @@ -210,18 +210,18 @@ | |||
| 210 | P80211DID_MKGROUP(1) | \ | 210 | P80211DID_MKGROUP(1) | \ |
| 211 | P80211DID_MKITEM(5) | 0x18000000) | 211 | P80211DID_MKITEM(5) | 0x18000000) |
| 212 | #define DIDmib_dot11mac_dot11OperationTable_dot11MaxTransmitMSDULifetime \ | 212 | #define DIDmib_dot11mac_dot11OperationTable_dot11MaxTransmitMSDULifetime \ |
| 213 | (P80211DID_MKSECTION(2) | \ | 213 | (P80211DID_MKSECTION(2) | \ |
| 214 | P80211DID_MKGROUP(1) | \ | 214 | P80211DID_MKGROUP(1) | \ |
| 215 | P80211DID_MKITEM(6) | 0x10000000) | 215 | P80211DID_MKITEM(6) | 0x10000000) |
| 216 | #define DIDmib_cat_dot11phy \ | 216 | #define DIDmib_cat_dot11phy \ |
| 217 | P80211DID_MKSECTION(3) | 217 | P80211DID_MKSECTION(3) |
| 218 | #define DIDmib_dot11phy_dot11PhyOperationTable \ | 218 | #define DIDmib_dot11phy_dot11PhyOperationTable \ |
| 219 | (P80211DID_MKSECTION(3) | \ | 219 | (P80211DID_MKSECTION(3) | \ |
| 220 | P80211DID_MKGROUP(1)) | 220 | P80211DID_MKGROUP(1)) |
| 221 | #define DIDmib_dot11phy_dot11PhyTxPowerTable_dot11CurrentTxPowerLevel \ | 221 | #define DIDmib_dot11phy_dot11PhyTxPowerTable_dot11CurrentTxPowerLevel \ |
| 222 | (P80211DID_MKSECTION(3) | \ | 222 | (P80211DID_MKSECTION(3) | \ |
| 223 | P80211DID_MKGROUP(3) | \ | 223 | P80211DID_MKGROUP(3) | \ |
| 224 | P80211DID_MKITEM(10) | 0x18000000) | 224 | P80211DID_MKITEM(10) | 0x18000000) |
| 225 | #define DIDmib_dot11phy_dot11PhyDSSSTable \ | 225 | #define DIDmib_dot11phy_dot11PhyDSSSTable \ |
| 226 | (P80211DID_MKSECTION(3) | \ | 226 | (P80211DID_MKSECTION(3) | \ |
| 227 | P80211DID_MKGROUP(5)) | 227 | P80211DID_MKGROUP(5)) |
diff --git a/drivers/staging/wlan-ng/p80211mgmt.h b/drivers/staging/wlan-ng/p80211mgmt.h index 14cdc86d1676..deb52f5fd780 100644 --- a/drivers/staging/wlan-ng/p80211mgmt.h +++ b/drivers/staging/wlan-ng/p80211mgmt.h | |||
| @@ -100,7 +100,7 @@ | |||
| 100 | #ifndef _P80211MGMT_H | 100 | #ifndef _P80211MGMT_H |
| 101 | #define _P80211MGMT_H | 101 | #define _P80211MGMT_H |
| 102 | 102 | ||
| 103 | #ifndef _P80211HDR_H | 103 | #ifndef _P80211HDR_H |
| 104 | #include "p80211hdr.h" | 104 | #include "p80211hdr.h" |
| 105 | #endif | 105 | #endif |
| 106 | 106 | ||
| @@ -496,25 +496,25 @@ typedef struct wlan_fr_deauthen { | |||
| 496 | 496 | ||
| 497 | } wlan_fr_deauthen_t; | 497 | } wlan_fr_deauthen_t; |
| 498 | 498 | ||
| 499 | void wlan_mgmt_encode_beacon(wlan_fr_beacon_t * f); | 499 | void wlan_mgmt_encode_beacon(wlan_fr_beacon_t *f); |
| 500 | void wlan_mgmt_decode_beacon(wlan_fr_beacon_t * f); | 500 | void wlan_mgmt_decode_beacon(wlan_fr_beacon_t *f); |
| 501 | void wlan_mgmt_encode_disassoc(wlan_fr_disassoc_t * f); | 501 | void wlan_mgmt_encode_disassoc(wlan_fr_disassoc_t *f); |
| 502 | void wlan_mgmt_decode_disassoc(wlan_fr_disassoc_t * f); | 502 | void wlan_mgmt_decode_disassoc(wlan_fr_disassoc_t *f); |
| 503 | void wlan_mgmt_encode_assocreq(wlan_fr_assocreq_t * f); | 503 | void wlan_mgmt_encode_assocreq(wlan_fr_assocreq_t *f); |
| 504 | void wlan_mgmt_decode_assocreq(wlan_fr_assocreq_t * f); | 504 | void wlan_mgmt_decode_assocreq(wlan_fr_assocreq_t *f); |
| 505 | void wlan_mgmt_encode_assocresp(wlan_fr_assocresp_t * f); | 505 | void wlan_mgmt_encode_assocresp(wlan_fr_assocresp_t *f); |
| 506 | void wlan_mgmt_decode_assocresp(wlan_fr_assocresp_t * f); | 506 | void wlan_mgmt_decode_assocresp(wlan_fr_assocresp_t *f); |
| 507 | void wlan_mgmt_encode_reassocreq(wlan_fr_reassocreq_t * f); | 507 | void wlan_mgmt_encode_reassocreq(wlan_fr_reassocreq_t *f); |
| 508 | void wlan_mgmt_decode_reassocreq(wlan_fr_reassocreq_t * f); | 508 | void wlan_mgmt_decode_reassocreq(wlan_fr_reassocreq_t *f); |
| 509 | void wlan_mgmt_encode_reassocresp(wlan_fr_reassocresp_t * f); | 509 | void wlan_mgmt_encode_reassocresp(wlan_fr_reassocresp_t *f); |
| 510 | void wlan_mgmt_decode_reassocresp(wlan_fr_reassocresp_t * f); | 510 | void wlan_mgmt_decode_reassocresp(wlan_fr_reassocresp_t *f); |
| 511 | void wlan_mgmt_encode_probereq(wlan_fr_probereq_t * f); | 511 | void wlan_mgmt_encode_probereq(wlan_fr_probereq_t *f); |
| 512 | void wlan_mgmt_decode_probereq(wlan_fr_probereq_t * f); | 512 | void wlan_mgmt_decode_probereq(wlan_fr_probereq_t *f); |
