summaryrefslogtreecommitdiffstats
path: root/wifi
Commit message (Collapse)AuthorAgeFilesLines
* Properly handle missing firmwaresHEADreplicant-6.0Paul Kocialkowski2017-06-131-0/+136
| | | | | Change-Id: I33e9f2fd201834ebe5a0cd0255913aaf463e01d4 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* wifi: Ensure supplicant stopped in wifi_stop_supplicantHu Wang2016-02-021-1/+2
| | | | | | | | | | | | | | | | Commit 3674b8ab31a628c5d0834890ba3549bf8badf4ea introduces the wifi_fst module, with a coding mistake, wifi_stop_supplicant will return even supplicant is not really stopped. If wifi_start_supplicant is called immediately, race condition will happen in init process, which makes supplicant not start. This change is to ensure supplicant really stopped before wifi_stop_supplicant return. CYNGNOS-1833, SAMBAR-1266 Change-Id: Ibcf38023a57971ad6e3064b7ab2a98a7a0ed8b99 CRs-Fixed: 958819
* wifi: add semco for Samsung BCM43569Christopher N. Hesse2015-10-261-0/+3
| | | | Change-Id: Iadafcc9a21c8fcedded1a06ace33759ad006b5ec
* wifi: add a new "loading" stateMichaël Burtin2015-10-261-0/+2
| | | | | | | Set wlan.driver.status to "loading" in wifi_load_driver to allow external action being triggered by property change. Change-Id: Ia4363de4c4e0e1a1c4759f5699fd5ea6e1bc3182
* wifi: add suport for WIFI_EXT_MODULEjerpelea2015-10-262-1/+31
| | | | | | | | | | | | | Some wifi modules have dependencies on others (for SDIO, usually). Use WIFI_EXT_MODULE_PATH to specify such dependencies Change-Id: Ie8e746c1e69712be78d420d8e8ae8b015564a03d Conflicts: wifi/wifi.c Change-Id: I3fbc0065f76d91d170fb562159ea326caa4f3345
* wifi: add support for semcosh nvramEthan Chen2015-10-261-0/+3
| | | | Change-Id: I272607b2835c5df97b8e175a9bcd559b3ec1a105
* wifi: fix samsung wifi logiccodeworkx2015-10-261-7/+4
| | | | Change-Id: Ib065c0dffa1265a17f5e4fd6ec0b0ad36bbc7b14
* wifi: Add support for AP module argsSteve Kondik2015-10-262-0/+21
| | | | | | * Needed for Samsung's goofy handling of AP mode Change-Id: I5ec65460b7c9f8ef34170473cf1bdaa36587767b
* wifi: Choose correct nvram file on samsung hardwareRicardo Cerqueira2015-10-262-4/+43
| | | | Change-Id: I9d428ae61c1ce80d97e6ea513839ed64e8f61440
* wifi: support adding p2p0 when starting wpa_supplicantRicardo Cerqueira2015-10-141-0/+246
| | | | | | | | | | | | | | | | | | | | | | | | | | | | For TI wlan chips in p2p mode we need this omapzoom cherry-pick to start p2p0 correctly. http://www.omapzoom.org/?p=platform/hardware/libhardware_legacy.git;a=commit;h=ccb4c24db795059f1df365d313d80c6b269bc55e By: Arik Nemtsov <arik@wizery.com> On: Tue, 31 Jul 2012 21:21:20 Original commit description: Add p2p0 using an NL80211 command when wpa_supplicant is started, and p2p_supported is enabled. Change-Id: Ibc0ad138513f024672642cc5764a81510aa38625 Signed-off-by: Hashcode <hashcode0f@gmail.com> From: Barak Bercovitz <barak@wizery.com> Date: Fri, 18 Oct 2013 12:41:32 +0300 Subject: [PATCH] wifi: remove p2p interface on supplicant stop wifi: remove p2p interface on supplicant stop remove p2p interface on wpa_supplicant stop so next time it is started it won't fail when trying to create p2p again Change-Id: I7a4c5e9a82a013afc75548d175d5850d67fcd927
* wifi: introduce wifi_fst moduleDedy Lansky2015-10-063-726/+141
| | | | | | | | | | | | | | | New wifi_fst module is responsible for: 1. insmod/rmmod of 2nd Wifi driver used for Fast Session Transfer (FST) rate upgrade. 2. start/stop FST Manager service. wifi_fst functionality is controlled by system property persist.fst.rate.upgrade.en. Existing module wifi.c calls into wifi_fst upon wifi_load/unload_driver and upon start/stop supplicant Change-Id: I8b4eddf26ab345b9e1e60e4850eaa081f8b89641
* wifi: duplicate wifi.c into wifi_fst.cDedy Lansky2015-10-061-0/+834
| | | | | | | Fast Session Transfer (FST) functionality will be added in wifi_fst in next commit Change-Id: Id6560ca437da3c9e794b450e10d979270303312b
* wifi: generalize ensure_config_file_exists()Dedy Lansky2015-10-061-6/+6
| | | | | | | ensure_config_file_exists gets config_file_template as argument instead of using hard coded SUPP_CONFIG_TEMPLATE Change-Id: I52b0c21d47254b5fa62e53ac71552d5dbfc445df
* make wifi_load_driver blockingMaddest Chang2015-07-152-0/+48
| | | | | | | | | | | | Modify wifi_load_driver behavior synchronize startHal with the initialization of the wlan driver. This makes sure that on certain solutions, startHal will does not fail due to no wlan0 net device not being found. Bug:19888853 Change-Id: Ic6ec2211431c478e52eb516c40ec23c2e8945fbb Signed-off-by: Maddest Chang <maddest.chang@mediatek.com> Signed-off-by: Iliyan Malchev <malchev@google.com>
* wlan: Fix comparison of driver_status when loading driverAjay Dudani2015-05-051-1/+1
| | | | | | | Ensure wifi driver load failure status is compared with valid string which has the failure/success information. Change-Id: I3b619ad0c005fb793d127bd2a23b376ed961d0b7
* wifi missing include for sys/stat.hMark Salyzyn2015-04-011-0/+1
| | | | | | | | | | | | wifi.c gets sys/stat.h inherited from private/android_filesystem_config.h it should not rely on this in the future. The intent is to move fs_config function into libcutils and thus deprecate any need for sys/stat.h in this include file. Bug: 19908228 Change-Id: Ie84477137dba47af385163decbb41b03e2aeaed4
* Remove HAVE_LIBC_SYSTEM_PROPERTIES.Elliott Hughes2015-01-121-13/+1
| | | | Change-Id: I2259c5159f1f6cc770b3920bff00af2cf2594b6c
* 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>