projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: ag71xx: copy received packet to avoid unaligned access in the IP stack
[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
5b37226
..
564fae7
100644
(file)
--- a/
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar8216.c
+++ b/
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar8216.c
@@
-20,27
+20,17
@@
void ag71xx_add_ar8216_header(struct ag71xx *ag, struct sk_buff *skb)
{
void ag71xx_add_ar8216_header(struct ag71xx *ag, struct sk_buff *skb)
{
- struct ag71xx_platform_data *pdata = ag71xx_get_pdata(ag);
-
- if (!pdata->has_ar8216)
- return;
-
- skb_push(skb, AR8216_HEADER_LEN);
- skb->data[0] = 0x10;
- skb->data[1] = 0x80;
+ skb_push(skb, AR8216_HEADER_LEN);
+ skb->data[0] = 0x10;
+ 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)
{
- struct ag71xx_platform_data *pdata = ag71xx_get_pdata(ag);
u8 type;
u8 type;
- if (!pdata->has_ar8216)
- return 0;
-
type = skb->data[1] & AR8216_PACKET_TYPE_MASK;
type = skb->data[1] & AR8216_PACKET_TYPE_MASK;
-
switch (type) {
case AR8216_PACKET_TYPE_NORMAL:
skb_pull(skb, AR8216_HEADER_LEN);
switch (type) {
case AR8216_PACKET_TYPE_NORMAL:
skb_pull(skb, AR8216_HEADER_LEN);
This page took
0.026279 seconds
and
4
git commands to generate.