Do not clear RSN parameters before full configuration
authorJouni Malinen <j@w1.fi>
Sun, 27 Sep 2015 10:25:00 +0000 (13:25 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 27 Sep 2015 12:55:11 +0000 (15:55 +0300)
commit2976715217f8748227b10e125514bc663e9acd65
treed13c0782c48061d5730cfa8136414111783ade8a
parentbe5ab8d4ab95222208978504af9646ded1e2a430
Do not clear RSN parameters before full configuration

This fixes an issue where hostapd SET command is used to configure RSN
parameters and the wpa parameter is sent after the other parameters.
Previously, the default case here ended up clearing rsn_pairwise and
wpa_pairwise values and once wpa=2 was finally set, the cipher
configuration had already been lost.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/ap_config.c