taging: csr: fix the skb mac header reset
Subsystems (3)
PATCH 1/1 taging: csr: fix the skb mac header reset
From: Li RongQing <[email protected]>
mac_header can be offset if NET_SKBUFF_DATA_USES_OFFSET is set, so we should call skb_reset_mac_header to reset mac_header.
Or it will not work on net-next since "net: Use 16bits for *_headers fields of struct skbuff" commit is introduced.
Signed-off-by Li RongQing <[email protected]>
--- drivers/staging/csr/monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/csr/monitor.c +1 -1
@@ -188,7 +188,7 @@ netrx_radiotap(unifi_priv_t *priv, skb->dev = dev; - skb->mac_header = skb->data; +skb_reset_mac_header (skb); skb->pkt_type =PACKET_OTHERHOST ; skb->protocol =__constant_htons (ETH_P_80211_RAW );memset (skb->cb,0 ,sizeof (skb->cb));
Signature · 1 line
1.7.10.4
David Miller
maintainerFrom: [email protected]
Date: Fri, 7 Jun 2013 15:19:27 +0800
Quoted 9 lines
From: Li RongQing <[email protected]>
mac_headercan be offset ifNET_SKBUFF_DATA_USES_OFFSETis set, so we should callskb_reset_mac_headerto resetmac_header.Or it will not work on net-next since "net: Use 16bits for
*_headersfields of struct skbuff" commit is introduced.Signed-off-by Li RongQing <[email protected]>
Staging driver changes need to go through Greg KH.
Thanks.