Don't overwrite channel on hostapd config reload
authorPawel Kulakowski <pawel.kulakowski@tieto.com>
Fri, 21 Mar 2014 07:18:00 +0000 (08:18 +0100)
committerJouni Malinen <j@w1.fi>
Fri, 21 Mar 2014 21:30:57 +0000 (23:30 +0200)
commit513dcec6562948e9f2dc3348923833c8d659eaf2
tree54e07f500370e9a7795e4886d66d2b1aed3b2ae0
parent5eae87a7d61b053fb315c667f97954d004c195a5
Don't overwrite channel on hostapd config reload

There was possibility that the current channel in Beacon information
element was incorrectly set. This problem was easily observed when
primary and secondary channel were switched and then some of hostapd
settings (for example password) were changed using WPS External
Registrar. This caused hostapd_reload_config() function overwrite the
current channel information from config file.

This patch prevents this situation and does not allow to overwrite
channel and some other settings when config is reloaded.

Signed-off-by: Pawel Kulakowski <pawel.kulakowski@tieto.com>
src/ap/hostapd.c