Fix P2P redirection of global ctrl_iface SET command
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 15 Apr 2014 10:22:48 +0000 (13:22 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 15 Apr 2014 10:27:23 +0000 (13:27 +0300)
commita7ca6dac440230b6ec9a49b022d734e99355754d
tree1e208a71868311110b0b0e09a88a44dd5c2be6c1
parentd6b818efe5eac35c184bf65900fe85db3b63df19
Fix P2P redirection of global ctrl_iface SET command

The previous version prevented all use of wpas_global_ctrl_iface_set().
That's not desirable since there may be more global parameters added in
the future. Instead, try to use the global version first and redirect to
P2P interface only if the global version returns an error.

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