summaryrefslogtreecommitdiffstats
path: root/wifi
Commit message (Collapse)AuthorAgeFilesLines
* am 9595dc8c: am 4248e7c3: am a5b275c3: Merge "Changes to restart supplicant ↵Dmitry Shmidt2014-05-151-5/+27
|\ | | | | | | | | | | | | on crash" * commit '9595dc8c8e07d40d606f11fedb7afb035bc87eb2': Changes to restart supplicant on crash
| * Changes to restart supplicant on crashMahesh2014-05-151-5/+27
| | | | | | | | | | | | | | | | specify timeout value in poll to check if the supplicant connection is active, if not we should indicate terminate command to framework to restart supplicant. Change-Id: I8e602b9cb07a13c3f0b96813b2fc89f46457473e
* | am 384bd5d6: am 7b11946c: am 9739aeb2: Merge "Indicate WPA_EVENT_TERMINATING ↵Dmitry Shmidt2014-05-141-4/+8
|\ \ | |/ | | | | | | | | | | event on primary interface." * commit '384bd5d631a9d493d65afac4ce21a751e8cd2c68': Indicate WPA_EVENT_TERMINATING event on primary interface.
| * Indicate WPA_EVENT_TERMINATING event on primary interface.Mahesh2014-05-131-4/+8
| | | | | | | | | | | | | | Internal fabricated WPA_EVENT_TERMINATING events to restart supplicant should be sent on primary interface. Change-Id: I2d018e0707819614d9b092c6f3a812f04b5446ca
* | am bfad19d2: am eaf44380: Merge "Wi-Fi HAL: fix supplicant start failed issue"Narayan Kamath2014-03-171-6/+10
|\ \ | |/ | | | | | | * commit 'bfad19d2a12d0cc25ad74a58fe6838b0afe45776': Wi-Fi HAL: fix supplicant start failed issue
| * Wi-Fi HAL: fix supplicant start failed issuejiaguo2014-03-131-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | init.svc.*(hostapd, p2p_supplicant) properties are set when starting STA or uAP via Wi-Fi HAL, after sending ctrl.start command to property_service, thread called wifi_start_supplicant will yield cpu for android init process to get scheduled, then init.svc.* status is read to check if supplicant status is running there is a chance that after scheld_yield returned, init is not scheduled, serial value is not updated, __system_property_read got the "stopped" status, then init is scheduled to update service status after that back to this loop in Wi-Fi HAL, serial is updated, but status is not reread, still used "stopped", then Wi-Fi HAL will report supplicant start failed as the following schedule sequence: process A(WifiStateMachine) process B(init) 1. ctl.start 2. scheld_yield 3. __system_proerty_read /*serial1, value1*/ 4. __system_property_update /*serial2, value2*/ 5. serial1 != serial2 6. value1 == "stopped" So after sched_yield, first check if serial is updated, then read service status Change-Id: I5181e0d4504c525832c033b9a35bd58ec63e1de8 Signed-off-by: jiaguo <jiaguo@marvell.com>
* | am e5a16307: am c32be36f: Merge "wifi: check if supplicant is running before ↵Dmitry Shmidt2014-02-241-1/+1
|\ \ | |/ | | | | | | | | | | starting it" * commit 'e5a16307ab7fdee029ea1fe0bfacd856f948b112': wifi: check if supplicant is running before starting it
| * Merge "wifi: check if supplicant is running before starting it"Dmitry Shmidt2014-02-241-1/+1
| |\
| | * wifi: check if supplicant is running before starting itJonathan DE CESCO2013-01-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wrong property was used to check if wpa_supplicant was running. Fix this Change-Id: I6a5bd7a3acae84f5ba4bba317d04191e0e59b2e7 Author: Jonathan DE CESCO <jonathan.de.cesco@intel.com> Signed-off-by: Jonathan DE CESCO <jonathan.de.cesco@intel.com> Signed-off-by: Shuo Gao <shuo.gao@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com> Signed-off-by: Jack Ren <jack.ren@intel.com> Author-tracking-BZ: 66748
| * | wifi: Link libwpa_client only if wpa_supplicant was chosenDmitry Shmidt2013-12-052-6/+28
| | | | | | | | | | | | | | | Change-Id: Ic487c3767a17299880e83080b79a91dbbaef1234 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | | wifi: Link libwpa_client only if wpa_supplicant was chosenDmitry Shmidt2013-11-222-6/+28
| | | | | | | | | | | | | | | Change-Id: Ic487c3767a17299880e83080b79a91dbbaef1234 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | | wifi: Remove obsolete update_ctrl_interface() callDmitry Shmidt2013-10-041-87/+2
|/ / | | | | | | | | Change-Id: Ib57a87ae1ef5953b1ddcf43974b07f091f298e74 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | Use a single socket to communicate with supplicantVinit Deshapnde2013-08-081-142/+74
| | | | | | | | | | | | | | | | This helps to preapre for future updates from external sources. Bug: 9298955 Change-Id: I4c63ad5fc1ea3564aab38cfce955de19bad75c0c (cherry picked from commit 759cc323cb586192d591a815b0fb9d839536fcd6)
* | Use accessor to read property serial numbersColin Cross2013-06-141-2/+2
| | | | | | | | | | | | | | Hide the implementation of the property structures by using an accessor. Change-Id: Ic604935882f6085e3d082baa651bad9bafe0a54a
* | wifi: Skip adding interface prefix if existsDmitry Shmidt2013-06-061-6/+8
| | | | | | | | | | | | | | Bug: 9313188 Change-Id: I63784493c84ac4ffcc9810a7798b1c0de1b0f68b Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | wifi: Use global control socketDmitry Shmidt2013-06-031-16/+46
| | | | | | | | | | Change-Id: I11e4438ec0b36575e1b5a563ac4da57303d028c7 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | wifi: Add command buffer length parameter to wifi_command()Dmitry Shmidt2013-05-301-1/+2
| | | | | | | | | | Change-Id: I832bc51279e0fb7d3002298f87a35b816b666ad5 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | wifi: Use wpa_ctrl_cleanup() function from wpa_supplicantDmitry Shmidt2013-05-222-44/+2
| | | | | | | | | | Change-Id: I24af9ec380e138f24864cd9359c6901b8b29e5ee Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | Rewrite an invalid config fileIrfan Sheriff2013-04-121-26/+35
| | | | | | | | | | | | | | | | We saw a case of config file being corrupted. Add a mechanism to recover from this when wifi is toggled off and on. Bug: 8569820 Change-Id: If2baceb065838d2adb5cde61772d25a05455fc90
* | wifi: Remove obsolete variablesDmitry Shmidt2013-02-271-4/+1
|/ | | | | Change-Id: I4759c26bf59f593650374ae4b205e8a1f83a8d68 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Fix stop supplicant apiIrfan Sheriff2012-11-061-1/+10
| | | | | Bug: 7227463 Change-Id: I4576e223c69dd67bd714fefecf0a1047770362fd
* Fix native crash when driver commands time outIrfan Sheriff2012-10-181-1/+7
| | | | | Bug: 7361130 Change-Id: Ia076b4ec84a4a0e05ba9eaa53ed732fa041fca6a
* Fix native crashIrfan Sheriff2012-10-111-6/+6
| | | | | Bug: 6404766 Change-Id: I8d2199fe2f4d48840a237b1ec2d085fe40c06517
* Restore the ability to use ctrl_interface directoryPaul Drews2012-08-231-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | lihardware_legacy was ALWAYS re-writing the wpa_supplicant.conf file's "ctrl_interface" entry to the value specified as the property wifi.interface, whose value was typically "wlan0". This was designed to allow the wpa_supplicant service to be started with a "socket" directive in its service description in an init.rc file. Under these circumstances, the socket name is exchanged between wpa_supplicant and its WifiService client through an environment variable whose name is derived from wifi.interface and a standard prefix. However, since the "ctrl_interface" entry was always re-written in this way, it broke the ability to use "ctrl_interface" in its standard usage as a directory where the (unix-domain) socket will be exchanged. This change restores the ability to use the standard directory-form ctrl_interface usage by limiting the re-writing of the ctrl_interface entry to cases where it does not look like an absolute path or the "DIR=" form of directory. Change-Id: I96c8656d144c1ea41e25ab0eb0807f7b49193b49 Signed-off-by: Paul Drews <paul.drews@intel.com> Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
* Add support for EINTR to wifi.cKenny Root2012-03-151-15/+16
| | | | | | | | Some system calls can be interrupted. wifi.c in particular was getting into error conditions during bugreport because it doesn't handle EINTR at all. Change-Id: I7bec432a0b3dca7dcc5c03c5e9f5e9ed73fa3c4b
* Fixes for concurrency supportIrfan Sheriff2012-01-201-30/+50
| | | | Change-Id: Ia7251dc86184fff710234c70a8ad54a6b245809a
* Fix monitor socket pollIrfan Sheriff2012-01-111-1/+1
| | | | | | Bug: 5534039 Change-Id: I28c41f896347963b0ded8415d1a51ff95cbf4b2d
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-081-23/+23
| | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: Idfcd2f2269080d92a621dc432c65f7cf244588af
* Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGESteve Block2012-01-051-1/+1
| | | | | | | See https://android-git.corp.google.com/g/157065 Bug: 5449033 Change-Id: I86e4ce26d8fba68584d0a7fc17111b53c56d2932
* Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block2012-01-031-7/+7
| | | | | | | See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: I9dfdc3f00a5f4f5b6ef4c75280ce2594ab018577
* Add support for p2p socket communicationIrfan Sheriff2011-12-281-60/+125
| | | | | | | Right now, everything goes over the primary interface socket connection. Add support for a seperate connection over the p2p interface. Change-Id: I09118f88cfaa201b2d62d27add410cfd441d4454
* Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGESteve Block2011-10-251-1/+1
| | | | | | | See https://android-git.corp.google.com/g/#/c/143865 Bug: 5449033 Change-Id: I953e5eabaf5023a4dcd76339c336d9132f257f8c
* wifi: Fix entropy file sizeDmitry Shmidt2011-10-061-4/+4
| | | | | | | BUG: b/5321709 Change-Id: Iff4692f1f35b63136297261d1565bc16c854ede3 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* wifi: Change pipe to socket pair in termination of monitor thread codeDmitry Shmidt2011-09-271-20/+25
| | | | | Change-Id: Id08c211102dabccff3e7d5a1373507f8d63ec70d Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Add support to terminate monitor threadIrfan Sheriff2011-09-191-2/+46
| | | | | | | | Create a local pipe to track when socket connection times out and send a terminate on the monitor thread Bug: 5337272 Change-Id: I80ed3f8450b4d54d1b9e2bbc3cc84f10d0ae7a04
* Add support seperate p2p config fileIrfan Sheriff2011-08-261-63/+93
| | | | | | | Also, fixed a bug with config overwrite with ctrl_interface update Bug: 5002384 Change-Id: I870c12ee58d60f696512c27deb4b9d35b4dc3b2a
* wifi: Increase wait for card removalDmitry Shmidt2011-08-231-4/+3
| | | | | Change-Id: Ia9f5bf2a905c89126535a6c01c3af67189df6c32 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Fix system property race at supplicant stopIrfan Sheriff2011-08-221-0/+11
| | | | | | | | | | | | | | | | We stop supplicant by sending a "terminate" control command. init then updates the system property init.svc.wpa_supplicant when the supplicant has stopped. The framework gets notified of a successful supplicant stop through a supplicant event. It can happen that the framework has been notified of a supplicant stop, but the init process has not set the system property and thus when the framework tries to connect to the supplicant again, it can immediately return saying the supplicant is already running. Avoid this race, by ensuring the call from framework to close supplicant connection polls for the update by init process that the system property indicates supplicant has stopped. Bug: 5166494 Change-Id: Ie74a8cf39fa56ae557ea6bbbcba7865301620c42
* wifi: Wait for sdio card removalDmitry Shmidt2011-08-121-0/+1
| | | | | Change-Id: I3fdbd27e45536b9142e0ca88692270bac543177a Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* wifi: Add entropy file supportDmitry Shmidt2011-07-251-0/+54
| | | | | Change-Id: Iee92ee9fee15037cffde86b9cd2c9407afb8d2ca Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* wifi: Add wifi_change_fw_path()Dmitry Shmidt2011-07-192-0/+29
| | | | | Change-Id: I1c4afe43457a295c0ffe0a865c6c331109dce614 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* wifi: Add wifi_get_fw_path() callDmitry Shmidt2011-07-012-0/+32
| | | | | Change-Id: Ib9dc8ce84febb2fba045ee527838653d0d1ad11b Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* wifi: Assume built-in wlan driver if WIFI_DRIVER_MODULE_PATH is not setDmitry Shmidt2011-06-291-6/+18
| | | | | Change-Id: Ic63381fe037cd5aa1f3d419d7c253c2b17961a24 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* wifi: Allow to finish interface downDmitry Shmidt2011-06-131-0/+1
| | | | | Change-Id: I249646845f0837c7cbf6c118d08aecb5b3ccaba5 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Move wpa_ctrl_cleanup() function to wifi_wpa_ctrl_cleanup()Dmitry Shmidt2011-03-252-1/+44
| | | | | Change-Id: I557a2ac10ebb226508ffccfbfeca7f326912ed04 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* wifi: Ensure RW for wpa_supplicant.confDmitry Shmidt2011-03-071-1/+8
| | | | | Change-Id: Icaeac0ee2239333be5f3be10024824ada6da18d5 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* wifi: Update wpa_supplicant.conf interface in case of mismatchDmitry Shmidt2011-01-051-11/+54
| | | | | Change-Id: Iea7432bd96df2c1474e5af1788225322c9b78307 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* rewrite wpa_supplicant.conf when it is too smallIrfan Sheriff2010-12-171-1/+5
| | | | | Bug: 2850497 Change-Id: Ifce2055212f78519f2cac8f73ee86b0b7a9ee0ee
* wifi: Remove unnecessary delay after loading the driverDmitry Shmidt2010-09-141-1/+1
| | | | | Change-Id: I371d262a5bf5da989c0c7beabb9fcb8d440375e4 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* am c875bb38: am 709a302e: wifi: pass interface to wpa_supplicantChih-Wei Huang2010-09-091-3/+4
|\ | | | | | | | | | | | | Merge commit 'c875bb384f1c17aa198262acd72b18825f7d8152' * commit 'c875bb384f1c17aa198262acd72b18825f7d8152': wifi: pass interface to wpa_supplicant