]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/config.c
Add no_ctrl_interface config param to clear ctrl_interface
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 27 Sep 2013 20:30:20 +0000 (23:30 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 27 Sep 2013 20:34:35 +0000 (23:34 +0300)
commitea61aa1de1887b14440b02de711383d775ecc004
tree0a8f9d4b6e5c070c8b2d8ebbc2ff04d1acc85181
parent25b65a142dec4770a79f7a17867f0db93111f843
Add no_ctrl_interface config param to clear ctrl_interface

This can be used to override previously set ctrl_interface value in a
way that clears the variable to NULL instead of empty string. The only
real use case for this is to disable per-interface ctrl_interface from
the additional control file (-I<file>) in case ctrl_interface was set in
the main configuration file. It should be noted that zero-length
ctrl_interface parameter can be used to initiate some control interface
backends, so simpler designs were not available for this.

The format of the new parameter is not exactly cleanest due to
configuration file parsing assumptions. For example:

ctrl_interface=....
no_ctrl_interface=

would end up with ctrl_interface=NULL.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/config.c
wpa_supplicant/ctrl_iface_unix.c