nl80211 driver: correctly set the encrypt bit for eapol frames
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 29 Sep 2008 16:21:51 +0000 (19:21 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 29 Sep 2008 16:21:51 +0000 (19:21 +0300)
commit6773de39b1f2ca33300af469bf28ad150202de89
tree0413baa24a22983d491cab2ef8a01bb618cf0f19
parent91a0548210e6d0f9ee18867d494f8be689398ab4
nl80211 driver: correctly set the encrypt bit for eapol frames

A recent kernel change led to all EAPOL frames being encrypted rather than
just those for the group handshake. This is due to transmit processing in
the kernel now using the proper interface which would encrypt those frames
with the group key because hostapd wasn't requesting that they not be
encrypted. This changes the nl80211 driver to not request encryption unless
the EAPOL frame should be encrypted.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
hostapd/driver_nl80211.c