LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File at76_usb-skb_change.patch of Package at76_usb (Project DISCONTINUED:openSUSE:10.3:Update)

--- at76c503.c
+++ at76c503.c
@@ -3585,7 +3585,7 @@
 	}
 
 	eth_hdr_p = (struct ethhdr *)(skb->data-sizeof(struct ethhdr));
-	set_eth_hdr(skb, eth_hdr_p);
+	skb_set_mac_header(skb, - sizeof(struct ethhdr));
 	if (build_ethhdr) {
 		/* This needs to be done in this order (eth_hdr_p->h_dest may
 		 * overlap src_addr) */
@@ -3639,7 +3639,7 @@
 	       				    : i802_11_hdr->addr3;
 	dest_addr = i802_11_hdr->addr1;
 
-	skb->mac.raw = (unsigned char *)i802_11_hdr;
+	skb->mac_header = (unsigned char *)i802_11_hdr;
 
 	eth_hdr_p = (struct ethhdr *)skb->data;
 	if (!memcmp(eth_hdr_p->h_source, src_addr, ETH_ALEN) &&
@@ -4119,7 +4119,7 @@
 
 	skb->dev = netdev;
 	skb->ip_summed = CHECKSUM_NONE;
-	skb->mac.raw = skb->data;
+	skb_reset_mac_header(skb);
 	skb->pkt_type = PACKET_OTHERHOST;
 	skb->protocol = htons(ETH_P_80211_RAW);