move mt76_remove_hdr_pad to mt76x2_mac.c

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2016-09-04 18:05:40 +02:00
parent b300bdc42e
commit 01c63035b6
3 changed files with 8 additions and 10 deletions
-8
View File
@@ -17,14 +17,6 @@
#include <linux/module.h>
#include "mt76.h"
void mt76_remove_hdr_pad(struct sk_buff *skb)
{
int len = ieee80211_get_hdrlen_from_skb(skb);
memmove(skb->data + 2, skb->data, len);
skb_pull(skb, 2);
}
EXPORT_SYMBOL_GPL(mt76_remove_hdr_pad);
int mt76_insert_hdr_pad(struct sk_buff *skb)
{
int len = ieee80211_get_hdrlen_from_skb(skb);