summaryrefslogtreecommitdiffstats
path: root/src/wifi/qwifimanager.cpp
diff options
context:
space:
mode:
authorGatis Paeglis <gatis.paeglis@theqtcompany.com>2015-06-28 12:49:14 +0200
committerGatis Paeglis <gatis.paeglis@theqtcompany.com>2015-06-29 11:10:08 +0300
commit4ef20296ae47d134fd76f5682dc0a9a4a4994f0b (patch)
treecf5251e0a8143720381e18e72ec0642ee64d5bdf /src/wifi/qwifimanager.cpp
parent3e6d9c660931ffd06174784c71af30d7fbe40802 (diff)
Use a custom supplicant configuration file
A default configuration file contains: network={ key_mgmt=NONE } which means that supplicant will try to connect to *any* network where key_mgmt is set to NONE. We don't want that. Change-Id: Ibde643dfa2371cffdec2bfc53f96957fda7ac452 Reviewed-by: Kalle Viironen <kalle.viironen@theqtcompany.com>
Diffstat (limited to 'src/wifi/qwifimanager.cpp')
-rw-r--r--src/wifi/qwifimanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wifi/qwifimanager.cpp b/src/wifi/qwifimanager.cpp
index 2a5cfff..739b399 100644
--- a/src/wifi/qwifimanager.cpp
+++ b/src/wifi/qwifimanager.cpp
@@ -37,6 +37,7 @@ const char *bsText[] = { "Initializing", "Running", "Terminating", "NotRunning"
QWifiManagerPrivate::QWifiManagerPrivate(QWifiManager *manager)
: q_ptr(manager)
, m_networkListModel(new QWifiNetworkListModel())
+ , m_device(new QWifiDevice())
, m_scanTimer(0)
, m_scanning(false)
, m_interface(QWifiDevice::wifiInterfaceName())
@@ -50,6 +51,7 @@ QWifiManagerPrivate::~QWifiManagerPrivate()
{
delete m_wifiController;
delete m_networkListModel;
+ delete m_device;
}
void QWifiManagerPrivate::setCurrentSSID(const QString &ssid)