Remove SAVE_CONFIG redirect from global control interface
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 15 Apr 2014 10:15:09 +0000 (13:15 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 15 Apr 2014 10:26:48 +0000 (13:26 +0300)
commitd6b818efe5eac35c184bf65900fe85db3b63df19
tree5687cca223f22a4a2c1973dd344307259fc3ffe0
parent128cc3755892a60562bd0c063ccda7f4b0ebd1de
Remove SAVE_CONFIG redirect from global control interface

The P2P redirection for SAVE_CONFIG issued on the global control
interface was preventing wpas_global_ctrl_iface_save_config() from being
reached. The global version of SAVE_CONFIG was supposed to try to save
configuration files for all interface rather than just the P2P
management interface, so fix this by removing the unneeded and undesired
redirection.

Modify the global SAVE_CONFIG handler to return FAIL if no configuration
files were saved. This makes the behavior match with the per-interface
SAVE_CONFIG.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/ctrl_iface.c