Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327441
b: refs/heads/master
c: d92a680
h: refs/heads/master
i:
  327439: e8b20d0
v: v3
  • Loading branch information
Yogesh Ashok Powar authored and John W. Linville committed Aug 6, 2012
1 parent bbdb471 commit 9186308
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2a0b50c7703930a1f5d1d32ae116d988e9612cb6
refs/heads/master: d92a680359ff3230bd1e68ac8f3ac827639f494e
9 changes: 3 additions & 6 deletions trunk/drivers/net/wireless/mwifiex/11n_aggr.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ mwifiex_11n_form_amsdu_pkt(struct sk_buff *skb_aggr,
};
struct tx_packet_hdr *tx_header;

skb_put(skb_aggr, sizeof(*tx_header));

tx_header = (struct tx_packet_hdr *) skb_aggr->data;
tx_header = (void *)skb_put(skb_aggr, sizeof(*tx_header));

/* Copy DA and SA */
dt_offset = 2 * ETH_ALEN;
Expand All @@ -82,9 +80,8 @@ mwifiex_11n_form_amsdu_pkt(struct sk_buff *skb_aggr,
tx_header->eth803_hdr.h_proto = htons(skb_src->len + LLC_SNAP_LEN);

/* Add payload */
skb_put(skb_aggr, skb_src->len);
memcpy(skb_aggr->data + sizeof(*tx_header), skb_src->data,
skb_src->len);
memcpy(skb_put(skb_aggr, skb_src->len), skb_src->data, skb_src->len);

*pad = (((skb_src->len + LLC_SNAP_LEN) & 3)) ? (4 - (((skb_src->len +
LLC_SNAP_LEN)) & 3)) : 0;
skb_put(skb_aggr, *pad);
Expand Down

0 comments on commit 9186308

Please sign in to comment.