|
|
|
@ -319,6 +319,7 @@ int skb_p80211_to_ether( wlandevice_t *wlandev, UINT32 ethconv, struct sk_buff *
|
|
|
|
|
if ((foo = wep_decrypt(wlandev, skb->data + WLAN_HDR_A3_LEN +4, payload_length-8, -1, skb->data+WLAN_HDR_A3_LEN, skb->data + WLAN_HDR_A3_LEN + payload_length - 4))) {
|
|
|
|
|
/* de-wep failed, drop skb. */
|
|
|
|
|
WLAN_LOG_WARNING1("Host de-WEP failed, dropping frame (%d).\n", foo);
|
|
|
|
|
wlandev->rx.decrypt_err++;
|
|
|
|
|
return 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -328,7 +329,8 @@ int skb_p80211_to_ether( wlandevice_t *wlandev, UINT32 ethconv, struct sk_buff *
|
|
|
|
|
skb_pull(skb, 4);
|
|
|
|
|
/* chop off the ICV. */
|
|
|
|
|
skb_trim(skb, skb->len - 4);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wlandev->rx.decrypt++;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
e_hdr = (wlan_ethhdr_t *) (skb->data + WLAN_HDR_A3_LEN);
|
|
|
|
|