History log of /hardware/libhardware_legacy/wifi/wifi.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0f330488afcfff031bc0ba88de826f998f7cfaf9 08-Aug-2013 Vinit Deshapnde <vinitd@google.com> Use a single socket to communicate with supplicant

This helps to preapre for future updates from external sources.

Bug: 9298955

Change-Id: I4c63ad5fc1ea3564aab38cfce955de19bad75c0c
(cherry picked from commit 759cc323cb586192d591a815b0fb9d839536fcd6)
/hardware/libhardware_legacy/wifi/wifi.c
14c02f245e56687b765487d25a034d71196d33b6 04-Feb-2013 Colin Cross <ccross@android.com> Use accessor to read property serial numbers

Hide the implementation of the property structures by using
an accessor.

Change-Id: Ic604935882f6085e3d082baa651bad9bafe0a54a
/hardware/libhardware_legacy/wifi/wifi.c
c15ccf4d05f2196215c9a49fd8dd5a2660dddd2c 06-Jun-2013 Dmitry Shmidt <dimitrysh@google.com> wifi: Skip adding interface prefix if exists

Bug: 9313188

Change-Id: I63784493c84ac4ffcc9810a7798b1c0de1b0f68b
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/hardware/libhardware_legacy/wifi/wifi.c
ec0576034bb5c1b0aed1b23120b71f9599d2bb73 29-May-2013 Dmitry Shmidt <dimitrysh@google.com> wifi: Use global control socket

Change-Id: I11e4438ec0b36575e1b5a563ac4da57303d028c7
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/hardware/libhardware_legacy/wifi/wifi.c
77cc5e292598b2c12c4e7bc9fd490b1d00f0a9cf 30-May-2013 Dmitry Shmidt <dimitrysh@google.com> wifi: Add command buffer length parameter to wifi_command()

Change-Id: I832bc51279e0fb7d3002298f87a35b816b666ad5
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/hardware/libhardware_legacy/wifi/wifi.c
de9abffc3815449cbd8d756937030cb0353fb9f2 23-May-2013 Dmitry Shmidt <dimitrysh@google.com> wifi: Use wpa_ctrl_cleanup() function from wpa_supplicant

Change-Id: I24af9ec380e138f24864cd9359c6901b8b29e5ee
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/hardware/libhardware_legacy/wifi/wifi.c
a776ffd243bbd02948ebefd43f4ac2690ebb11e6 13-Apr-2013 Irfan Sheriff <isheriff@google.com> Rewrite an invalid config file

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
/hardware/libhardware_legacy/wifi/wifi.c
2c52037dd46f066be122b0520b265d55eb4e0470 28-Feb-2013 Dmitry Shmidt <dimitrysh@google.com> wifi: Remove obsolete variables

Change-Id: I4759c26bf59f593650374ae4b205e8a1f83a8d68
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/hardware/libhardware_legacy/wifi/wifi.c
745e7fd4e09db2b47371338ee54c54255e286473 04-Nov-2012 Irfan Sheriff <isheriff@google.com> Fix stop supplicant api

Bug: 7227463
Change-Id: I4576e223c69dd67bd714fefecf0a1047770362fd
/hardware/libhardware_legacy/wifi/wifi.c
943574a822af6dfa32ad94c9f65caa79c5c6ca02 19-Oct-2012 Irfan Sheriff <isheriff@google.com> Fix native crash when driver commands time out

Bug: 7361130
Change-Id: Ia076b4ec84a4a0e05ba9eaa53ed732fa041fca6a
/hardware/libhardware_legacy/wifi/wifi.c
897f6dd64224d22c22c8f7a497331bf5bc335e4c 11-Oct-2012 Irfan Sheriff <isheriff@google.com> Fix native crash

Bug: 6404766
Change-Id: I8d2199fe2f4d48840a237b1ec2d085fe40c06517
/hardware/libhardware_legacy/wifi/wifi.c
24ffafedc87d05611703deb62e25d71684e0723e 25-Jul-2012 Paul Drews <paul.drews@intel.com> Restore the ability to use ctrl_interface directory

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>
/hardware/libhardware_legacy/wifi/wifi.c
cf449e140874e4f57f120a88411c7b642172ecf2 15-Mar-2012 Kenny Root <kroot@google.com> Add support for EINTR to wifi.c

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
/hardware/libhardware_legacy/wifi/wifi.c
096e49c869cdb297f1ea99289ae44c2a0e487fcf 11-Jan-2012 Irfan Sheriff <isheriff@google.com> Fixes for concurrency support

Change-Id: Ia7251dc86184fff710234c70a8ad54a6b245809a
/hardware/libhardware_legacy/wifi/wifi.c
c6e7b3d9e65c18df980d181ee4cf2deedab89169 12-Jan-2012 Irfan Sheriff <isheriff@google.com> Fix monitor socket poll

Bug: 5534039

Change-Id: I28c41f896347963b0ded8415d1a51ff95cbf4b2d
/hardware/libhardware_legacy/wifi/wifi.c
5efbd421e0029d6fc44b1cc65c0e5e0d85e5161f 08-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/157220

Bug: 5449033
Change-Id: Idfcd2f2269080d92a621dc432c65f7cf244588af
/hardware/libhardware_legacy/wifi/wifi.c
64cca04dcbf4e21a51131224b9d0f0c596f876d4 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/157065

Bug: 5449033
Change-Id: I86e4ce26d8fba68584d0a7fc17111b53c56d2932
/hardware/libhardware_legacy/wifi/wifi.c
b381b932acfa441da5607f37ac4ef6573ed5be96 20-Dec-2011 Steve Block <steveblock@google.com> Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/156016

Bug: 5449033
Change-Id: I9dfdc3f00a5f4f5b6ef4c75280ce2594ab018577
/hardware/libhardware_legacy/wifi/wifi.c
da52930b89bb0e03948f3981e75f8727ea023587 27-Dec-2011 Irfan Sheriff <isheriff@google.com> Add support for p2p socket communication

Right now, everything goes over the primary interface socket connection.
Add support for a seperate connection over the p2p interface.

Change-Id: I09118f88cfaa201b2d62d27add410cfd441d4454
/hardware/libhardware_legacy/wifi/wifi.c
6a70518b93928d1c91457ff805e375c82d76b0e5 20-Oct-2011 Steve Block <steveblock@google.com> Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/143865

Bug: 5449033
Change-Id: I953e5eabaf5023a4dcd76339c336d9132f257f8c
/hardware/libhardware_legacy/wifi/wifi.c
07a629e27cc35868e2b7601983c7044cf8df0709 06-Oct-2011 Dmitry Shmidt <dimitrysh@google.com> wifi: Fix entropy file size

BUG: b/5321709

Change-Id: Iff4692f1f35b63136297261d1565bc16c854ede3
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/hardware/libhardware_legacy/wifi/wifi.c
45bf8a6f0bbf148ca5a1a626ab1c5c38a0855e13 28-Sep-2011 Dmitry Shmidt <dimitrysh@google.com> wifi: Change pipe to socket pair in termination of monitor thread code

Change-Id: Id08c211102dabccff3e7d5a1373507f8d63ec70d
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/hardware/libhardware_legacy/wifi/wifi.c
025321a09dbe7820870125acf771e1da02684605 20-Sep-2011 Irfan Sheriff <isheriff@google.com> Add support to terminate monitor thread

Create a local pipe to track when socket connection times out
and send a terminate on the monitor thread

Bug: 5337272
Change-Id: I80ed3f8450b4d54d1b9e2bbc3cc84f10d0ae7a04
/hardware/libhardware_legacy/wifi/wifi.c
67ba2276b9a5232685e14d416fea0b1250515594 26-Aug-2011 Irfan Sheriff <isheriff@google.com> Add support seperate p2p config file

Also, fixed a bug with config overwrite with ctrl_interface update

Bug: 5002384
Change-Id: I870c12ee58d60f696512c27deb4b9d35b4dc3b2a
/hardware/libhardware_legacy/wifi/wifi.c
953c1140659ae935e4718d4fd48662db178814f6 24-Aug-2011 Dmitry Shmidt <dimitrysh@google.com> wifi: Increase wait for card removal

Change-Id: Ia9f5bf2a905c89126535a6c01c3af67189df6c32
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/hardware/libhardware_legacy/wifi/wifi.c
5a8a2d2b130644f0f4abad8586f0a245e4c15be8 22-Aug-2011 Irfan Sheriff <isheriff@google.com> Fix system property race at supplicant stop

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
/hardware/libhardware_legacy/wifi/wifi.c
18813312989f2272e1e6306f681e6120a7c54a68 12-Aug-2011 Dmitry Shmidt <dimitrysh@google.com> wifi: Wait for sdio card removal

Change-Id: I3fdbd27e45536b9142e0ca88692270bac543177a
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/hardware/libhardware_legacy/wifi/wifi.c
3ab3e6696757541c098a251981c074fc980f4dc7 25-Jul-2011 Dmitry Shmidt <dimitrysh@google.com> wifi: Add entropy file support

Change-Id: Iee92ee9fee15037cffde86b9cd2c9407afb8d2ca
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/hardware/libhardware_legacy/wifi/wifi.c
29a4d4d74b512e450a7d2ae97d4222c24a13b87e 20-Jul-2011 Dmitry Shmidt <dimitrysh@google.com> wifi: Add wifi_change_fw_path()

Change-Id: I1c4afe43457a295c0ffe0a865c6c331109dce614
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/hardware/libhardware_legacy/wifi/wifi.c
4b7ffa08be8d58932841c52ce253ae6ca886a4f2 01-Jul-2011 Dmitry Shmidt <dimitrysh@google.com> wifi: Add wifi_get_fw_path() call

Change-Id: Ib9dc8ce84febb2fba045ee527838653d0d1ad11b
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/hardware/libhardware_legacy/wifi/wifi.c
d301cb7a5e76f82d265f8a7d408bec3159614f0b 30-Jun-2011 Dmitry Shmidt <dimitrysh@google.com> wifi: Assume built-in wlan driver if WIFI_DRIVER_MODULE_PATH is not set

Change-Id: Ic63381fe037cd5aa1f3d419d7c253c2b17961a24
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/hardware/libhardware_legacy/wifi/wifi.c
4c1a1fedd632791580c4b483c31abc4e583eae16 13-Jun-2011 Dmitry Shmidt <dimitrysh@google.com> wifi: Allow to finish interface down

Change-Id: I249646845f0837c7cbf6c118d08aecb5b3ccaba5
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/hardware/libhardware_legacy/wifi/wifi.c
eea19f1d855b9434313fbb9447a23caf8123aa58 25-Mar-2011 Dmitry Shmidt <dimitrysh@google.com> Move wpa_ctrl_cleanup() function to wifi_wpa_ctrl_cleanup()

Change-Id: I557a2ac10ebb226508ffccfbfeca7f326912ed04
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/hardware/libhardware_legacy/wifi/wifi.c
89ae703cd6d4b2bc86c4bd281a8e460fd5679891 08-Mar-2011 Dmitry Shmidt <dimitrysh@google.com> wifi: Ensure RW for wpa_supplicant.conf

Change-Id: Icaeac0ee2239333be5f3be10024824ada6da18d5
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/hardware/libhardware_legacy/wifi/wifi.c
0e9f488e672abf0d14580261998cfd9c7211c112 05-Jan-2011 Dmitry Shmidt <dimitrysh@google.com> wifi: Update wpa_supplicant.conf interface in case of mismatch

Change-Id: Iea7432bd96df2c1474e5af1788225322c9b78307
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/hardware/libhardware_legacy/wifi/wifi.c
8a5b197b3d5878e3f1cf49c9c38c090456107e87 17-Dec-2010 Irfan Sheriff <isheriff@google.com> rewrite wpa_supplicant.conf when it is too small

Bug: 2850497
Change-Id: Ifce2055212f78519f2cac8f73ee86b0b7a9ee0ee
/hardware/libhardware_legacy/wifi/wifi.c
8fb5f74df7b25051e007a67eea22b984ef7dc76a 15-Sep-2010 Dmitry Shmidt <dimitrysh@google.com> wifi: Remove unnecessary delay after loading the driver

Change-Id: I371d262a5bf5da989c0c7beabb9fcb8d440375e4
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/hardware/libhardware_legacy/wifi/wifi.c
a738e38d44cf143a80ae6a15f118fb3f8e432532 10-Sep-2010 Chih-Wei Huang <cwhuang@linux.org.tw> am c875bb38: am 709a302e: wifi: pass interface to wpa_supplicant

Merge commit 'c875bb384f1c17aa198262acd72b18825f7d8152'

* commit 'c875bb384f1c17aa198262acd72b18825f7d8152':
wifi: pass interface to wpa_supplicant
c875bb384f1c17aa198262acd72b18825f7d8152 10-Sep-2010 Chih-Wei Huang <cwhuang@linux.org.tw> am 709a302e: wifi: pass interface to wpa_supplicant

Merge commit '709a302e77c44a3e3ee8359be3f2c9361f05d02c' into gingerbread-plus-aosp

* commit '709a302e77c44a3e3ee8359be3f2c9361f05d02c':
wifi: pass interface to wpa_supplicant
709a302e77c44a3e3ee8359be3f2c9361f05d02c 02-Sep-2010 Chih-Wei Huang <cwhuang@linux.org.tw> wifi: pass interface to wpa_supplicant

Change-Id: I577d0e7a0c6cbf7c1ddb025c01519a30bb7997b3
/hardware/libhardware_legacy/wifi/wifi.c
548af73955b14f6615d4ca8b637ecfa3929abd06 18-Aug-2010 Jean-Baptiste Queru <jbq@google.com> Revert "remove libnetutils dependency"

This reverts commit 7c6051a4990d9c55245c90a233bb23e5cc5cb544.
/hardware/libhardware_legacy/wifi/wifi.c
24bf7fc4e02b552650f299d16303eca0825dd8c8 09-Aug-2010 Dmitry Shmidt <dimitrysh@google.com> Fix wpa_supplicant.conf permissions (0660)

Change-Id: I62e6711f706af88d4447f2885f7a0ce3f30a8a2e
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/hardware/libhardware_legacy/wifi/wifi.c
2bb990bfd2580f9be93a413e3a5325057977a828 27-Jul-2010 Irfan Sheriff <isheriff@google.com> Add is_wifi_driver_loaded

Change-Id: I73600a11891b1380d8bc1bfbc24494410a989fcb
/hardware/libhardware_legacy/wifi/wifi.c
445591dded5753cf72dcf329a56af732776de97d 21-Jun-2010 Jean-Baptiste Queru <jbq@google.com> Undo previous merge

Change-Id: I74fd5ae2634b0c7909b7ab332d174f98a9c8aee5
/hardware/libhardware_legacy/wifi/wifi.c
edfaa7eca961176bee1ff46b50a4fc1330199278 15-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Iff5f59c3bf645911730bfa7defee848e5b54a4a1
7c6051a4990d9c55245c90a233bb23e5cc5cb544 09-Jun-2010 Szymon Jakubczak <szym@google.com> remove libnetutils dependency

Change-Id: I2b10ec7b9c8392bf9e64153406264a56b0ecbe30
/hardware/libhardware_legacy/wifi/wifi.c
ed8487244b1c9f72fb5d22c7a18918ac34063cee 25-Feb-2010 Dmitry Shmidt <dimitrysh@google.com> Increase delay after driver loading if FW loader is not used

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/hardware/libhardware_legacy/wifi/wifi.c
007404c68f5cf6328e30b6d0edac3fd52ef36abb 08-Feb-2010 Dmitry Shmidt <dimitrysh@google.com> Add additional logging

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/hardware/libhardware_legacy/wifi/wifi.c
2631f993753d726c8c6a85ab66a83db79e54f0bb 28-Jan-2010 Irfan Sheriff <isheriff@google.com> Return failures as strings to monitor

Bug: 2399119
Change-Id: I17bcb86e002cd520f4275f3786cf54c82aaf59b7
/hardware/libhardware_legacy/wifi/wifi.c
7b43699180e593b19092eb2a091c4bca105aca77 28-Jul-2009 Dmitry Shmidt <dimitrysh@google.com> Fix possible race condition in wlan driver loading

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/hardware/libhardware_legacy/wifi/wifi.c
243af8b84968ec4f5afb628c43a2c541c4feee7b 20-Apr-2009 Dmitry Shmidt <> AI 146930: am: CL 146929 Make TI Wifi driver choice framework-independent - part 2
Original author: dimitrysh

Automated import of CL 146930
/hardware/libhardware_legacy/wifi/wifi.c
cc490161f6af9e4a6842ee827e4bfc43bc4509d5 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/hardware/libhardware_legacy/wifi/wifi.c
3bbe5328cd738976443822502e23fb3971c5f87b 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/hardware/libhardware_legacy/wifi/wifi.c
1c83481e3c1a4e0df017147fdfa7d856dd3012ed 20-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132569
/hardware/libhardware_legacy/wifi/wifi.c
5ce01674d44addab570009ceddeaa08d64534092 16-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@126645
/hardware/libhardware_legacy/wifi/wifi.c