projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
images: allow generating .cpio.gz and/or .tar.gz archives whether ramdisk is selected...
[openwrt.git]
/
target
/
linux
/
ar71xx
/
files
/
drivers
/
net
/
ag71xx
/
ag71xx_ar8216.c
diff --git
a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar8216.c
b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar8216.c
index
564fae7
..
7ec43b7
100644
(file)
--- a/
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar8216.c
+++ b/
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar8216.c
@@
-25,19
+25,20
@@
void ag71xx_add_ar8216_header(struct ag71xx *ag, struct sk_buff *skb)
skb->data[1] = 0x80;
}
skb->data[1] = 0x80;
}
-int ag71xx_remove_ar8216_header(struct ag71xx *ag,
-
struct sk_buff *skb
)
+int ag71xx_remove_ar8216_header(struct ag71xx *ag,
struct sk_buff *skb,
+
int pktlen
)
{
u8 type;
type = skb->data[1] & AR8216_PACKET_TYPE_MASK;
switch (type) {
case AR8216_PACKET_TYPE_NORMAL:
{
u8 type;
type = skb->data[1] & AR8216_PACKET_TYPE_MASK;
switch (type) {
case AR8216_PACKET_TYPE_NORMAL:
- skb_pull(skb, AR8216_HEADER_LEN);
break;
break;
+
default:
return -EINVAL;
}
default:
return -EINVAL;
}
+ skb_pull(skb, AR8216_HEADER_LEN);
return 0;
}
return 0;
}
This page took
0.025464 seconds
and
4
git commands to generate.