Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126623
b: refs/heads/master
c: 1f9e9ce
h: refs/heads/master
i:
  126621: 84d4a53
  126619: 9b8a071
  126615: e92578c
  126607: 0a6fc19
  126591: fe5d7ba
v: v3
  • Loading branch information
Roel Kluin authored and Greg Kroah-Hartman committed Jan 6, 2009
1 parent 8b5f231 commit 6040c77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: a1da9da99152e065912d58950089405b15d0aebd
refs/heads/master: 1f9e9ce1f99e89ee180a3994c44bdff43ebeb139
4 changes: 2 additions & 2 deletions trunk/drivers/staging/wlan-ng/p80211conv.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,11 @@ int skb_p80211_to_ether( wlandevice_t *wlandev, u32 ethconv, struct sk_buff *skb
memcpy(saddr, w_hdr->a3.a2, WLAN_ETHADDR_LEN);
} else {
payload_offset = WLAN_HDR_A4_LEN;
payload_length -= ( WLAN_HDR_A4_LEN - WLAN_HDR_A3_LEN );
if (payload_length < 0 ) {
if (payload_length < WLAN_HDR_A4_LEN - WLAN_HDR_A3_LEN) {
WLAN_LOG_ERROR("A4 frame too short!\n");
return 1;
}
payload_length -= (WLAN_HDR_A4_LEN - WLAN_HDR_A3_LEN);
memcpy(daddr, w_hdr->a4.a3, WLAN_ETHADDR_LEN);
memcpy(saddr, w_hdr->a4.a4, WLAN_ETHADDR_LEN);
}
Expand Down

0 comments on commit 6040c77

Please sign in to comment.