aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-12-18 19:31:23 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:59:46 -0500
commit678f5f7117d5780d3a51b201c9f44b7bf90f6a76 (patch)
treeddf555061ec729e3e14eabc506d0c3b8f32f25b8 /net/mac80211/ieee80211.c
parentce3edf6d0b979fa4d5da7204fd8c6f77f2b8622a (diff)
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>
Diffstat (limited to 'net/mac80211/ieee80211.c')
-rw-r--r--net/mac80211/ieee80211.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c
index c0dbf77547f7..9c14e3d303c5 100644
--- a/net/mac80211/ieee80211.c
+++ b/net/mac80211/ieee80211.c
@@ -732,6 +732,8 @@ static void ieee80211_remove_tx_extra(struct ieee80211_local *local,
732 pkt_data->flags |= IEEE80211_TXPD_DO_NOT_ENCRYPT; 732 pkt_data->flags |= IEEE80211_TXPD_DO_NOT_ENCRYPT;
733 if (control->flags & IEEE80211_TXCTL_REQUEUE) 733 if (control->flags & IEEE80211_TXCTL_REQUEUE)
734 pkt_data->flags |= IEEE80211_TXPD_REQUEUE; 734 pkt_data->flags |= IEEE80211_TXPD_REQUEUE;
735 if (control->flags & IEEE80211_TXCTL_EAPOL_FRAME)
736 pkt_data->flags |= IEEE80211_TXPD_EAPOL_FRAME;
735 pkt_data->queue = control->queue; 737 pkt_data->queue = control->queue;
736 738
737 hdrlen = ieee80211_get_hdrlen_from_skb(skb); 739 hdrlen = ieee80211_get_hdrlen_from_skb(skb);