]> Pileus Git - ~andy/linux/commit
mac80211: Fill in skb->protocol information for injected frames
authorHelmut Schaa <helmut.schaa@googlemail.com>
Mon, 1 Aug 2011 09:32:52 +0000 (11:32 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 9 Aug 2011 19:52:01 +0000 (15:52 -0400)
commitf75f5c6f61b4d34bf92625fcd1131dd58921e1b5
tree509f5c5361ca793c43ccc87d130580638cb38820
parent12c5ffb5c4601a11b08533609d4bf119e2f22cf5
mac80211: Fill in skb->protocol information for injected frames

Some drivers (ath9k for example) are using skb->protocol to treat EAPOL
frames somehow special (disallow aggregation for example).

When running in AP mode hostapd injects the EAPOL frames through a
monitor interface and thus skb->protocol isn't set at all. Hence, if the
injected frame is a data frame and carries a rfc1042 headaer update the
skb->protocol field accordingly.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/tx.c