AP: Allow both WPA passphrase and PSK to be configured
authorJouni Malinen <jouni.malinen@atheros.com>
Mon, 21 Dec 2009 10:11:08 +0000 (12:11 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 21 Dec 2009 10:11:08 +0000 (12:11 +0200)
commit0ae687bd106fbf7dda31daee4c6d4203edf57eea
tree8590c2ee1946e2d108efd4bddcdd5b5e1ee10df0
parent1078126f6460d75b7be0c13ec7f61634c10c32ed
AP: Allow both WPA passphrase and PSK to be configured

Instead of dropping the configured PSK and deriving it based on
passphrase, use the provided PSK as-is and also maintain a copy of
the passphrase since it can be of use later. This allows both values
to be configured without havign to derive the PSK every time the
network is initialized.
hostapd/config.c