RTLLIB_DEBUG(RTLLIB_DL_ERR, "pBA(%p) is NULL or ieee(%p) is NULL\n", pBA, ieee);
return NULL;
}
-#ifdef USB_USE_ALIGNMENT
- u32 Tmpaddr=0;
- int alignment=0;
- skb = dev_alloc_skb(len + sizeof( struct rtllib_hdr_3addr) + USB_512B_ALIGNMENT_SIZE);
-#else
skb = dev_alloc_skb(len + sizeof( struct rtllib_hdr_3addr));
-#endif
if (skb == NULL)
{
RTLLIB_DEBUG(RTLLIB_DL_ERR, "can't alloc skb for ADDBA_REQ\n");
memset(skb->data, 0, sizeof( struct rtllib_hdr_3addr));
-#ifdef USB_USE_ALIGNMENT
- Tmpaddr = (u32)skb->data;
- alignment = Tmpaddr & 0x1ff;
- skb_reserve(skb,(USB_512B_ALIGNMENT_SIZE - alignment));
-#endif
-
skb_reserve(skb, ieee->tx_headroom);
BAReq = ( struct rtllib_hdr_3addr *) skb_put(skb,sizeof( struct rtllib_hdr_3addr));
DelbaParamSet.field.Initiator = (TxRxSelect==TX_DIR)?1:0;
DelbaParamSet.field.TID = pBA->BaParamSet.field.TID;
-#ifdef USB_USE_ALIGNMENT
- u32 Tmpaddr=0;
- int alignment=0;
- skb = dev_alloc_skb(len + sizeof( struct rtllib_hdr_3addr) + USB_512B_ALIGNMENT_SIZE);
-#else
skb = dev_alloc_skb(len + sizeof( struct rtllib_hdr_3addr));
-#endif
if (skb == NULL)
{
RTLLIB_DEBUG(RTLLIB_DL_ERR, "can't alloc skb for ADDBA_REQ\n");
return NULL;
}
-#ifdef USB_USE_ALIGNMENT
- Tmpaddr = (u32)skb->data;
- alignment = Tmpaddr & 0x1ff;
- skb_reserve(skb,(USB_512B_ALIGNMENT_SIZE - alignment));
-#endif
skb_reserve(skb, ieee->tx_headroom);
Delba = ( struct rtllib_hdr_3addr *) skb_put(skb,sizeof( struct rtllib_hdr_3addr));
rate_len = rtllib_MFIE_rate_len(ieee);
-#ifdef USB_USE_ALIGNMENT
- u32 Tmpaddr;
- int alignment;
- skb = dev_alloc_skb(sizeof(struct rtllib_probe_request) +
- 2 + len + rate_len + ieee->tx_headroom + USB_512B_ALIGNMENT_SIZE);
-#else
skb = dev_alloc_skb(sizeof(struct rtllib_probe_request) +
2 + len + rate_len + ieee->tx_headroom);
-#endif
if (!skb)
return NULL;
-#ifdef USB_USE_ALIGNMENT
- Tmpaddr = (u32)skb->data;
- alignment = Tmpaddr & 0x1ff;
- skb_reserve(skb,(USB_512B_ALIGNMENT_SIZE - alignment));
-#endif
-
skb_reserve(skb, ieee->tx_headroom);
req = (struct rtllib_probe_request *) skb_put(skb,sizeof(struct rtllib_probe_request));
struct rtllib_authentication *auth;
int len = 0;
len = sizeof(struct rtllib_authentication) + challengelen + ieee->tx_headroom + 4;
-#ifdef USB_USE_ALIGNMENT
- u32 Tmpaddr;
- int alignment;
- skb = dev_alloc_skb(len + USB_512B_ALIGNMENT_SIZE);
-#else
skb = dev_alloc_skb(len);
-#endif
if (!skb) return NULL;
-#ifdef USB_USE_ALIGNMENT
- Tmpaddr = (u32)skb->data;
- alignment = Tmpaddr & 0x1ff;
- skb_reserve(skb,(USB_512B_ALIGNMENT_SIZE - alignment));
-#endif
-
skb_reserve(skb, ieee->tx_headroom);
auth = (struct rtllib_authentication *)
+erp_len
+wpa_ie_len
+ieee->tx_headroom;
-#ifdef USB_USE_ALIGNMENT
- u32 Tmpaddr=0;
- int alignment=0;
- skb = dev_alloc_skb(beacon_size + USB_512B_ALIGNMENT_SIZE);
-#else
skb = dev_alloc_skb(beacon_size);
-#endif
if (!skb)
return NULL;
-#ifdef USB_USE_ALIGNMENT
- Tmpaddr = (u32)skb->data;
- alignment = Tmpaddr & 0x1ff;
- skb_reserve(skb,(USB_512B_ALIGNMENT_SIZE - alignment));
-#endif
-
skb_reserve(skb, ieee->tx_headroom);
beacon_buf = (struct rtllib_probe_response*) skb_put(skb, (beacon_size - ieee->tx_headroom));
unsigned int rate_len = rtllib_MFIE_rate_len(ieee);
int len = sizeof(struct rtllib_assoc_response_frame) + rate_len + ieee->tx_headroom;
-#ifdef USB_USE_ALIGNMENT
- u32 Tmpaddr=0;
- int alignment=0;
- skb = dev_alloc_skb(len + USB_512B_ALIGNMENT_SIZE);
-#else
skb = dev_alloc_skb(len);
-#endif
if (!skb)
return NULL;
-#ifdef USB_USE_ALIGNMENT
- Tmpaddr = (u32)skb->data;
- alignment = Tmpaddr & 0x1ff;
- skb_reserve(skb,(USB_512B_ALIGNMENT_SIZE - alignment));
-#endif
-
skb_reserve(skb, ieee->tx_headroom);
assoc = (struct rtllib_assoc_response_frame *)
struct sk_buff *skb = NULL;
struct rtllib_authentication *auth;
int len = ieee->tx_headroom + sizeof(struct rtllib_authentication)+1;
-#ifdef USB_USE_ALIGNMENT
- u32 Tmpaddr=0;
- int alignment=0;
- skb = dev_alloc_skb(len + USB_512B_ALIGNMENT_SIZE);
-#else
skb = dev_alloc_skb(len);
-#endif
if (!skb)
return NULL;
skb->len = sizeof(struct rtllib_authentication);
-#ifdef USB_USE_ALIGNMENT
- Tmpaddr = (u32)skb->data;
- alignment = Tmpaddr & 0x1ff;
- skb_reserve(skb,(USB_512B_ALIGNMENT_SIZE - alignment));
-#endif
-
skb_reserve(skb, ieee->tx_headroom);
auth = (struct rtllib_authentication *)
struct sk_buff *skb;
struct rtllib_hdr_3addr* hdr;
-#ifdef USB_USE_ALIGNMENT
- u32 Tmpaddr=0;
- int alignment=0;
- skb = dev_alloc_skb(sizeof(struct rtllib_hdr_3addr) + ieee->tx_headroom + USB_512B_ALIGNMENT_SIZE);
-#else
skb = dev_alloc_skb(sizeof(struct rtllib_hdr_3addr)+ieee->tx_headroom);
-#endif
if (!skb)
return NULL;
-#ifdef USB_USE_ALIGNMENT
- Tmpaddr = (u32)skb->data;
- alignment = Tmpaddr & 0x1ff;
- skb_reserve(skb,(USB_512B_ALIGNMENT_SIZE - alignment));
-#endif
skb_reserve(skb, ieee->tx_headroom);
hdr = (struct rtllib_hdr_3addr*)skb_put(skb,sizeof(struct rtllib_hdr_3addr));
struct sk_buff *skb;
struct rtllib_pspoll_hdr* hdr;
-#ifdef USB_USE_ALIGNMENT
- u32 Tmpaddr=0;
- int alignment=0;
- skb = dev_alloc_skb(sizeof(struct rtllib_pspoll_hdr) + ieee->tx_headroom + USB_512B_ALIGNMENT_SIZE);
-#else
skb = dev_alloc_skb(sizeof(struct rtllib_pspoll_hdr)+ieee->tx_headroom);
-#endif
if (!skb)
return NULL;
-#ifdef USB_USE_ALIGNMENT
- Tmpaddr = (u32)skb->data;
- alignment = Tmpaddr & 0x1ff;
- skb_reserve(skb,(USB_512B_ALIGNMENT_SIZE - alignment));
-#endif
skb_reserve(skb, ieee->tx_headroom);
hdr = (struct rtllib_pspoll_hdr*)skb_put(skb,sizeof(struct rtllib_pspoll_hdr));
+ cxvernum_ie_len
+ ieee->tx_headroom;
-#ifdef USB_USE_ALIGNMENT
- u32 Tmpaddr=0;
- int alignment=0;
- skb = dev_alloc_skb(len + USB_512B_ALIGNMENT_SIZE);
-#else
skb = dev_alloc_skb(len);
-#endif
if (!skb)
return NULL;
-#ifdef USB_USE_ALIGNMENT
- Tmpaddr = (u32)skb->data;
- alignment = Tmpaddr & 0x1ff;
- skb_reserve(skb,(USB_512B_ALIGNMENT_SIZE - alignment));
-#endif
-
skb_reserve(skb, ieee->tx_headroom);
hdr = (struct rtllib_assoc_request_frame *)
{
struct sk_buff *skb;
struct rtllib_disauth *disauth;
-#ifdef USB_USE_ALIGNMENT
- u32 Tmpaddr=0;
- int alignment=0;
- int len = sizeof(struct rtllib_disauth) + ieee->tx_headroom + USB_512B_ALIGNMENT_SIZE;
-#else
int len = sizeof(struct rtllib_disauth) + ieee->tx_headroom;
-#endif
skb = dev_alloc_skb(len);
if (!skb) {
return NULL;
}
-#ifdef USB_USE_ALIGNMENT
- Tmpaddr = (u32)skb->data;
- alignment = Tmpaddr & 0x1ff;
- skb_reserve(skb,(USB_512B_ALIGNMENT_SIZE - alignment));
-#endif
skb_reserve(skb, ieee->tx_headroom);
disauth = (struct rtllib_disauth *) skb_put(skb,sizeof(struct rtllib_disauth));
{
struct sk_buff *skb;
struct rtllib_disassoc *disass;
-#ifdef USB_USE_ALIGNMENT
- u32 Tmpaddr=0;
- int alignment=0;
- int len = sizeof(struct rtllib_disassoc) + ieee->tx_headroom + USB_512B_ALIGNMENT_SIZE;
-#else
int len = sizeof(struct rtllib_disassoc) + ieee->tx_headroom;
-#endif
skb = dev_alloc_skb(len);
if (!skb) {
return NULL;
}
-#ifdef USB_USE_ALIGNMENT
- Tmpaddr = (u32)skb->data;
- alignment = Tmpaddr & 0x1ff;
- skb_reserve(skb,(USB_512B_ALIGNMENT_SIZE - alignment));
-#endif
skb_reserve(skb, ieee->tx_headroom);
disass = (struct rtllib_disassoc *) skb_put(skb,sizeof(struct rtllib_disassoc));