hostapd: fix auth encryption
authorJohannes Berg <johannes@sipsolutions.net>
Sun, 26 Jul 2009 18:15:47 +0000 (21:15 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 26 Jul 2009 18:15:47 +0000 (21:15 +0300)
commit7a47d567cfe3d9496c3c3ec7dfaa0805428e4d96
tree97cac5d391f40e413dec81818ddfa07118de12ac
parent2e8eac2d67736298d3b1e2367d36985aa3b68a59
hostapd: fix auth encryption

hostapd currently tries to encrypt all auth frames,
except for "OPEN" and "SHARED with transaction 3".
This means that it will send an encrypted "unknown
auth algorithm" reply for all other algorithsm. Fix
this by changing the logic to only encrypt shared
key auth frames with transaction 3.

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