Fixed control interface enabling for dynamically added interface

Set ctrl_interface to non-empty value in INTERFACE_ADD to avoid
ctrl_iface.c assuming the control interface is not to be enabled. This
fixes the dynamically added interface to use control interface.
This commit is contained in:
Jouni Malinen 2008-12-25 17:13:19 +02:00
parent e40348080d
commit a6f060d7ec

View file

@ -205,7 +205,7 @@ void AddInterface::interfaceSelected(QTreeWidgetItem *sel)
sel->text(1).toAscii().constData(),
"default",
sel->text(0).toAscii().constData(),
"", "", "");
"yes", "", "");
cmd[sizeof(cmd) - 1] = '\0';
ctrl = wpa_ctrl_open(NULL);