mac80211: clean up eapol handling in TX path
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 19 Dec 2007 00:31:23 +0000 (01:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:59:46 +0000 (14:59 -0800)
commit678f5f7117d5780d3a51b201c9f44b7bf90f6a76
treeddf555061ec729e3e14eabc506d0c3b8f32f25b8
parentce3edf6d0b979fa4d5da7204fd8c6f77f2b8622a
mac80211: clean up eapol handling in TX path

The previous patch left only one user of the ieee80211_is_eapol()
function and that user can be eliminated easily by introducing
a new "frame is EAPOL" flag to handle the frame specially (we
already have this information) instead of doing the (expensive)
ieee80211_is_eapol() all the time.

Also, allow unencrypted frames to be sent when they are injected.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/mac80211.h
net/mac80211/ieee80211.c
net/mac80211/ieee80211_i.h
net/mac80211/tx.c
net/mac80211/util.c