summaryrefslogtreecommitdiffstats
path: root/src/imports/wifi
Commit message (Collapse)AuthorAgeFilesLines
* Fix #ifdef for Android detectionGatis Paeglis2014-06-301-1/+3
| | | | | | | | It was wrongly adding "IFNAME=" to wpa_supplicant calls on eLinux, "IFNAME=" is required only for eAndroid. Change-Id: Ic16d321765071df66fbffc1c3d6ce78180eb3b1c Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Fix Wifi issues on Android 4.4.2Gatis Paeglis2014-06-131-2/+7
| | | | | | | | | | | | | | | | | | | | - Reload Wi-Fi firmware on a device startup (initializes wlan0 interface). - Android version 4.4 (and above) requires IFNAME=wlan0 prefix to the wpa_supplicant calls, without this all calls to the wpa_supplicant fail. - Fix "broken pipe" issue - a message in the logcat when trying to access a broken network. This seems to be a generic message whenever something is wrong with a network configuration (broken routing table, firewall issues, DNS issues etc.). Android uses Connectivity and NetworkManagement JAVA services to handle network configuration - we can use qconnectivity daemon for this. Task-number: QTEE-562 Change-Id: Ib5a93c677439a0e9bf92ede532667542d2bc4bed Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Add plugins.qmltypes for Wi-Fi libraryGatis Paeglis2014-05-262-0/+61
| | | | | | | | | This fixes autocompletion issue in QtCreator. Task-number: QTEE-568 Change-Id: I186a5777e54d8629fd896bd1ee677ac359373a17 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Don't show Wi-Fi group box on iMX6-eAndroidGatis Paeglis2014-05-191-8/+9
| | | | | | | This device currently does not support wifi. Change-Id: I8048d7109908c4c2de553dda119cb14be73ef6a7 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Set initial "backend ready" state.Gatis Paeglis2014-05-161-3/+5
| | | | | Change-Id: Id1d7141cbbee181235093627cf18180354a78a6b Reviewed-by: Kalle Viironen <kalle.viironen@digia.com>
* Port QtWifi to eLinuxGatis Paeglis2014-05-157-30/+433
| | | | | | | | | | | | | Current limitations: - Wifi adapter must be connected before staring the device (and ethernet cable should not be connected at the same time). "allow-hotplug wlan0" in /etc/network/interfaces doesn't seem to help for detecting wifi adapter on-the-fly. Change-Id: I8be407e9e042fc86136efd3e220680fb2ce64bd6 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Merge branch 'stable' into devKalle Viironen2014-04-168-105/+478
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * stable: (22 commits) Add note about headphones on eAndroid Doc: Relocate unmount instructions Doc: Add ChangeLog for Qt Enterprise Embedded 2.1.0 Doc: Disable code highlighting for command-line instructions doc: update version number to 2.1.0 [Wifi] Add new enums and make some API changes Doc: Add documentation on custom build & deploy steps Doc: Create QML Type reference page Doc: Add information about licenses in embedded Linux images Doc: Improve instructions for deploying existing projects Doc: Separate Building Your Own Linux Image into its own page doc: use same directory for yocto and qt doc: config.<MACHINE> needed only once doc: guide for imx53 and how to setup QtCreator Doc: Be more precise on screen content for Nexus7 Add documentation to QtWifi library Doc: Add note for users to not use root for installation doc: describe how to use network connection for adb Rename misleading class name Remove unnecessary roles from QWifiNetworkList ... Conflicts: src/imports/wifi/qwifimanager.cpp Change-Id: Ie7efa2ec91ac154f1e984600f569d9c7f8383627
| * [Wifi] Add new enums and make some API changesGatis Paeglis2014-04-076-85/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Now QtWifi can provide feedback when incorrect password is entered. - networkStateChanged signal provides a reference to the currently active network connection. - bug fixes in QWifiManager::connect Task-number: QTEE-408 Change-Id: Ic7458b864f09aef3cfca40fb081dec45e0bba7db Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
| * Doc: Create QML Type reference pageTopi Reinio2014-04-023-4/+8
| | | | | | | | | | | | | | | | | | | | Create a landing page for QtEE-specific QML modules and types. Ensure it links correctly to WiFi Module documentation, and add it to TOC. Change-Id: Ib3edf9ff8e50f11e138a57aabc1f84749ac48e16 Reviewed-by: Gatis Paeglis <gatis.paeglis@digia.com> Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
| * Add documentation to QtWifi libraryGatis Paeglis2014-03-193-0/+318
| | | | | | | | | | Change-Id: Ifd71c65a155ad296f3491085e91556eb69226b2b Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
| * Rename misleading class nameGatis Paeglis2014-03-185-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The API is: ListView { model: wifiManager.networks } currently if user calls print(wifiManager.networks) it will print: QWifiNetworkList The docs of ListView states that model property expects a subclass of QAbstractListModel. QWifiNetworkList sounds like a subclass of QList which is misleading. This patch renames the class to QWifiNetworkListModel. This does not change the public API (doesn't brake compatibility in any way), just improves the documentation of library. Task-number: QTEE-445 Change-Id: I71f07cb22617f3a7f41a0403d1c63c4357310325 Reviewed-by: Andy Nichols <andy.nichols@digia.com>
| * Remove unnecessary roles from QWifiNetworkListGatis Paeglis2014-03-181-18/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently there are 2 ways to access the same property from list view's delegate: network.ssid ssid This is not needed, from the API point of view it is more readible when properties are accesed with network.* prefix. As is done in launchersettings demo. "network" role returns QWifiNetwork object which exposes the required properties with Q_PROPERTY. Change-Id: Idd55891d44c4f356a6774575508a38729c60c335 Reviewed-by: Andy Nichols <andy.nichols@digia.com>
* | Compilation fixes for Android 4.4aavit2014-04-011-6/+68
|/ | | | | Change-Id: I2017665372e190f9d12841820714457967ff3a3a Reviewed-by: Gatis Paeglis <gatis.paeglis@digia.com>
* [Wifi] Fix initialization codeGatis Paeglis2014-02-191-11/+11
| | | | | | | | Bug was that on freshly deployed Boot2Qt image (Nexus) the current code caused a device to restart when trying to launch "launcher settings". Change-Id: I3cc55488a1993c2c74567fccf39edd189b356bac Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Don't use wifi on EmulatorGatis Paeglis2014-02-131-11/+17
| | | | | Change-Id: I9ae1b5b68f3e3ec2c513ec5a6811ea5396425766 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Update copyright yearaavit2014-02-127-7/+7
| | | | | Change-Id: Ic818e79d7bfca04bd8a8d8aa12b3ff70ea26a7a3 Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
* Make sure that wifi event thread doesn't block on exitGatis Paeglis2014-01-302-8/+18
| | | | | | | | | After setting m_exitEventThread to True we need to generate wifi event, otherwise there might be cases that we block in wifi_wait_for_event and wifi event thread never exits. Change-Id: I699ca0c25e23abc7045c1850bf773443bac897e8 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Fix dhcp issues and improve public APIGatis Paeglis2014-01-284-185/+245
| | | | | | | | | | | | | | | | | | | | | - Use qconnectivity daemon for dhcp requests. Since dhcp requests are executed in other process we don't block gui thread for this lengthy operation. - Why not to use "do_dhcp_request" - it is a legacy implementation of a dhcp client and is not used anywhere in the Android source code itself. It appears that do_dhcp_request was not removed from the libhardware_legacy to keep compatibility for others, whose code might still depend on it. - Differnet changes to the internal implementation and the public API. - Add 'Interface' singleton type, installing a singleton type allows developers to provide arbitrary functionality to a client without requiring individual instances of the type to be instantiated by the client. We use this to determine if Android has wifi interface. Change-Id: I836f3a2a587b1ebf9f670ed08b10fe3483504b9e Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Merge remote-tracking branch 'origin/stable' into devaavit2014-01-177-0/+126
|\ | | | | | | | | | | | | Conflicts: src/doc/src/b2qt.qdoc Change-Id: I9d345dcc689e751b997df797ce12b6cd8a14ffb9
| * Add license headersTopi Reinio2013-12-037-0/+126
| | | | | | | | | | | | | | Add an Enterprise License header to source files. Change-Id: I373886dade31ce00d4c10c64ebaf8ba226d5a62d Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* | List the strongest access point when ssid equalGatis Paeglis2014-01-162-22/+26
|/ | | | | | | | List only the strongest access point when sensing several access points within the same network. Change-Id: I58bf3083058f6e1c8a0c353b20d731672e64aefc Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Snapshot of wifi module development, from customer projectaavit2013-08-055-76/+140
| | | | | | | Corresponds to 0c397d2287d33b08501c48e029306b8908583e6a of github repo Change-Id: I60c140513255394b6728ddd0ff85ac79fa5e88b9 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Register the QWifiNetworkList with the QML type systemGunnar Sletta2013-06-121-0/+1
| | | | | Change-Id: I43d1b525cf91b508113fcc6d883050b585a622f8 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* add missing pluginmain.cpp file for wifiGunnar Sletta2013-04-251-0/+22
| | | | | Change-Id: I1ef3cd3c915813fec9ef62c4453b8b5e132a95f3 Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
* Moved wifi to its own importable moduleGunnar Sletta2013-03-218-0/+617