diff options
author | Gatis Paeglis <gatis.paeglis@theqtcompany.com> | 2015-06-28 12:49:14 +0200 |
---|---|---|
committer | Gatis Paeglis <gatis.paeglis@theqtcompany.com> | 2015-06-29 11:10:08 +0300 |
commit | 4ef20296ae47d134fd76f5682dc0a9a4a4994f0b (patch) | |
tree | cf5251e0a8143720381e18e72ec0642ee64d5bdf /src/wifi/qwifielinux.cpp | |
parent | 3e6d9c660931ffd06174784c71af30d7fbe40802 (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/qwifielinux.cpp')
-rw-r--r-- | src/wifi/qwifielinux.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wifi/qwifielinux.cpp b/src/wifi/qwifielinux.cpp index 7456173..5d1fb3e 100644 --- a/src/wifi/qwifielinux.cpp +++ b/src/wifi/qwifielinux.cpp @@ -30,7 +30,10 @@ QT_BEGIN_NAMESPACE -const char SUPP_CONFIG_FILE[] = "/etc/wpa_supplicant.conf"; +// TODO: When cleaning up the library from Android code move this into a proper class +// (QWifiDevice?) since we won't depend on C style API from Android anymore. + +const char SUPP_CONFIG_FILE[] = "/etc/wpa_supplicant.qtwifi.conf"; const char IFACE_DIR[] = "/var/run/wpa_supplicant/"; const char WPA_EVENT_IGNORE[] = "CTRL-EVENT-IGNORE "; |