History log of /frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
fb80c4e9859161ba3492b79f485b9e554177c8c1 29-Jun-2015 Vinit Deshpande <vinitd@google.com> Fix potential system crash beacuse of bad Wifi parsing

WifiMonitor may throw an exception on some malformed events
taking the entire system down. This change gauards against
such crash.

Bug: 17698782
Change-Id: Ib855419c5ed24ec174889185c4d0b450403778de
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
87e2455ee2a232db01029a93edea179528d1a5c2 09-Jun-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> Wifi: Exit the monitor thread when killSupplicant is issued.

When Wifi is turned off, WifiStateMachine issues terminate command
to the supplicant and waits for the event CTRL-EVENT-TERMINATING.
On receiving this TERMINTING event, WifiMonitor stops further monitoring
of events. In some instances, WifiMonitor fails to receive the event
CTRL-EVENT-TERMINATING and subsequently when Wifi framework times out it
kills the supplicant.
But this recovery logic has an issue where even though the supplicant is
killed, the monitor thread is not stopped from listening the events and
WifiMonitor continues looking for the events. Since at the time of killing
the supplicant monitor_conn is initialized to NULL, internally fabricated
WPA_EVENT_TERMINATING event is issued by the framework. This again leads
to the deinitialization of the wlan0 / p2p0 interfaces while the process
of initialization is in progress. This leads to concurrent actions of
supplicant connection closure and command execution on the control socket.
But wpa control interface library is not designed to concurrently handle
activities on the control and monitor sockets.
To solve this issue, exit the monitor thread when Wifi framework kills
the supplicant explicitly (mConnected is set to FALSE).

b/21899315

Change-Id: Ie22447d5ce73fb0a22da309cca69a620f1974368
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
6ae1a88c51b9db16ce82b4f4752cca54e961be51 05-Jun-2015 Sunil Dutt <usdutt@codeaurora.org> wifi : Fix for Wi-Fi grayed out issue

During the initialization, WiFiMonitor shall try to open the
control/monitor socket interface with the supplicant.On a
failed attempt to open the control interface, WiFiMonitor
thread shall trigger an event SUP_DISCONNECTION_EVENT to
WiFiStateMachine with the expectation that the connection
attempt restarts.In addition,it also removes the interface
from the mIfaceMap.During the restart,WiFiMonitor does not
proceed to open the control interface with the supplicant
if the mIfaceMap does not point to the interface. Thus,do
not remove the interface from mIfaceMap on a failed attempt
to create a control interface with the supplicant to
provision a reinitialization attempt.

b/18798914
Change-Id: Iefb8942a7561699557ea21cb87f4754da024139a
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
54fcb6c0a81f6c025dc8574c95593da1c4eafb29 27-Feb-2015 Akihiro Onodera <akihiro.x.onodera@sonymobile.com> Prevent repeating EAP connection forever

Android framework does not handle a message
("Authentication with timed out")
for EAP connection and thus connection retry
happens continuously in case of authentication
timed out.

Change-Id: Iadf99bacc9f89d8d18f91231d9263e5b890ba0b9
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
5bee0e4616e2f8025d60cbfe3eec3e274a68a452 06-Jun-2015 Jan Nordqvist <jannq@google.com> ANQP caching cleaned up.

Disabling all HS2.0 logic with no SPs.

Bug: 21306404
Bug: 21660552

Change-Id: I080e99b5e41ead0b718c9e14514fba3108f19ac9
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
04d29dfffd4c64bc0eb3f109269c1ad2bde6e363 19-May-2015 Vinit Deshpande <vinitd@google.com> Interpret scan-failed event from wpa_supplicant [DO NOT MERGE]

(cherry-picked from 9057c94158c31e040583617bbce19313adf2e58d)

Scans can fail if there are other scans going on in the
firmware. We can only find out about such failures from
supplicant (it prints out a failure event).

Bug: 20192693

Change-Id: I03fe60bb569430c041258c3a4ab8da2d6b5e9ff2
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
1c03d75c73b9f5fa24a795a0d546f4f56b82ab9b 27-Apr-2015 Jan Nordqvist <jannq@google.com> Changed log tag, and fixed a NPE.

Change-Id: I216a9df2397427a1175ea930c501f47cd843b742
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
8366a82ee1bff4c66d3f3642bf0a60538de5d9da 22-Apr-2015 Jan Nordqvist <jannq@google.com> Clearing ANQP cache when stopping WiFi service, moved ANQP result handling to DriverStartedState.

Change-Id: I8b9aa953cbf1309ff2d0174c8a23946b3f7086a8
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
f97140d51d14ce0659d381f443c08dbd94dfea28 12-Nov-2014 Honore Tricot <honorex.tricot@intel.com> WIFI: EAP-AKA End-To-End

- Decode UMTS-AUTH form of CTRL-REQ-SIM request
- manage UMTS authentication
- cleanup useless code
- make Native API simAuthResponse usable for both
EAP-SIM and EAP-AKA

Change-Id: Ie24c59d87ba2e6a17a0da25fa3d58803aab423f9
Signed-off-by: Honore Tricot <honorex.tricot@intel.com>
Signed-off-by: Abdelmajid MLAYEH <abdelmajidx.mlayeh@intel.com>
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
ad607d99c372160c7d4b38e755e1b47d6419856e 07-Nov-2014 Honore Tricot <honorex.tricot@intel.com> EAP-SIM: handle dynamic identity request [DO NOT MERGE]

Manage the identity creation based on IMSI and 3gpp realm

Change-Id: I4e9c9e23886729592af941d11c798f2583444925
Signed-off-by: Honore Tricot <honorex.tricot@intel.com>
Signed-off-by: Abdelmajid MLAYEH <abdelmajidx.mlayeh@intel.com>
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
ef1567e413c9ed5f5c4fdb9e354861632f7b2f87 25-Feb-2015 Jan Nordqvist <jannq@google.com> HS20: Selection code moved to WifiAutoJoinController

Change-Id: Ic2f713758ec20f98f63d55b4a610e4dca07742fb
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
77f2b82a2e80af8da52c22d69a76def6d4209757 14-Feb-2015 Jan Nordqvist <jannq@google.com> Integrate passpoint with existing Wifi infrastructure

This change hooks passpoint with rest of the wifi infrastructure.

It includes changes related to passing ANQP and other passpoint
information along with scan results and various fixes to parsing
and selection logic.

Change-Id: Id15ef1aea65dedab3e8e3df0c8a7515974c94021
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
f57f8918b8c5872ff4bb141fa9e407bec8442e8d 16-Dec-2014 vandwalle <vandwalle@google.com> add debug logs to confirm network flapping issue is fixed
Bug:18706288

Change-Id: I27a86aeb650a63511b667244b0138afbc1bc059e
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
005c1ef113192f898499a407dd266393a8d6b076 12-Nov-2014 vandwalle <vandwalle@google.com> - better handling of deleted configurations, only keep a crc32 of deleted SSIDs
- trigger a scan when changing settings allowing use of untrusted networks
Bug:18221007
Bug:18269621

Change-Id: I7eec8913737726a1bf468a96eae562cc567ecfd3
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
f9715cc118c446695b2a82211881c7d6c5e59761 23-Oct-2014 vandwalle <vandwalle@google.com> various fixes:
- Carry over the IP config when self adding a configuration
- fix null pointer exception in wificonfigstore, trying to read the IPConfig file
Bug:18058314
Bug:18057271

Change-Id: Ia1922f0cf44aa6eaf67928ac392a6ec92431f279
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
0eebae7334d6129f7ca1344e4b20199794994358 12-Sep-2014 vandwalle <vandwalle@google.com> various fixes:

- add null pointer check to wifi watchdog state machine
- correctly parse the REQUEST IDENTIY event sent by wpa_supplicant
- make autojoining wificonfiguration more aggressive based on user input
Bug:17469863
Bug:17426395
Bug:17475816

Change-Id: I1785c917c0e570de0edaa02bd0ca6536be9d7c0b
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
9f3349fa2cd39d690d1e2b7c3b71ced412e24f2c 05-Sep-2014 vandwalle <vandwalle@google.com> various fixes:

- cleanup setWifiEnable transitions
- dont scan right when entering connected and Disconnected state, instead startScan() adds a 200ms delay before starting the scans, so as to let the state machiine time to process deferred message
- dont forget to send the NetworkStateChanged Broadcast when we set the network detailed state
- autojoin dont attempt to join WifiConfigurations marked as noInternetAccess, unless explicitely selected by the user
- keep stats of user triggered wifi state disabling requests
- fix bad roaming situation when BSSID is specified in network block

Bug:17193677

Change-Id: Ia103a93232f40519c7b4eef07254f32342ea5615
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
be3095ed758fca076b9ccb9fdae48f7f865c078a 01-Sep-2014 vandwalle <vandwalle@google.com> AutoJoin fixes:

- Additional logs
- re-enable all network upon screen on and connection, even for blackliste networks due to auth failure
- watchdog the DisconnectingState
- remove mFrameworkAutoJoin which is not used anymore
- dont remove WPA_PSK configurations, instead mark them as AUTO_JOIN_DELETED and loose their history and keys

Bug:17261906
Bug:17330171
Bug:17339150
Bug:17063789

Change-Id: I12ea25142d0dcfc670d8970ed67624e8573d1ac2
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
200e8ee5097134010a6edee8d031bb02ff7eeb5a 19-Jul-2014 vandwalle <vandwalle@google.com> add radio stats to link layer

This CL is dependent on I3d2a230b0362520b9f1b2bc3792260116971e106

Change-Id: If7e73ae9813ea79a98744d7f0096316d241998fd

halutil updates for link layer statistics

Change-Id: I00ea13b1a932f40891a0d65026a1c87f01f09587
Signed-off-by: Chilam Ng <chilam@broadcom.com>
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
e6574ec7b6b2e7a678da7f77bdaaf31463852b2f 19-Aug-2014 vandwalle <vandwalle@google.com> debug messages for link loss issues

Change-Id: Icbea4bac528eac8f25b8d1f9f1fa79d1ecadb7da
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
dbd6933aae99302b75683f8463cd17df554dc599 14-Aug-2014 Vinit Deshpande <vinitd@google.com> EAP-SIM End-To-End

This change fixes all remaining issues with EAP-SIM. It now handles
multiple challenges coming from supplicant and corrects supplicant
command syntax.

Change-Id: Idc47b454863aa1990d4f53138f00f312622792d2
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
33b575ca6bee66183929f9474b5a161432918604 09-Aug-2014 Vinit Deshpande <vinitd@google.com> EAP-SIM End-to-end

Change-Id: I9478e6a492c469d57bb020b8f858e523ea6a92d1
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
931338d1533d1bd11ba0e5aebb4e4b7b2c8ab056 18-Jul-2014 vandwalle <vandwalle@google.com> a few additional logs and code standard rules

Change-Id: I932e895fefd7b6c9d8ad58ef99312c980643f2d2
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
40ff222cec1bd05879edb53abc75c6deead734ca 01-Jul-2014 vandwalle <vandwalle@google.com> handle IDENTITY message and bssid blacklist

Bug:15990551
Bug:15977507

Change-Id: I78b03915781bd6d5f9f5881c80324a2788b9e837
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
b57df70bdf17ba45ef4d18b11414cb24dcbe1fb9 28-Jun-2014 vandwalle <vandwalle@google.com> clean up the connect/disconnect procedure

Change-Id: Iba87591e790106b882d465dbba3ddac120f044d9
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
b07da189850a4bfa268f8ab9be7867935eb2ecb5 24-Jun-2014 vandwalle <vandwalle@google.com> improve link flapping

Change-Id: Ie378dde318dccaa566f660c9497bae31d4a9f1ab
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
0888ce6f90bdaeee799dd8361ea4781e23a33b87 24-May-2014 vandwalle <vandwalle@google.com> logs improvements, fix reading back networkHistory file

Change-Id: Iec4b11a3e0d8820b558abea6cc068a905199896d
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
ed9938883ae2dade81c8be6cd6ceaef3febd5239 22-May-2014 vandwalle <vandwalle@google.com> make verbose logging a wifimanager hidden API

bug: 151386707

Change-Id: Ide885ce96621fe4bab6abf10291bc8441eecad4a
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
04c9a7c99c2ec86636ab43edceb84a2eceaadd04 22-May-2014 vandwalle <vandwalle@google.com> Merge "various autojoin fixes"
453aee50caf7e332e77ab3d995d7c87a958e4fd4 21-May-2014 vandwalle <vandwalle@google.com> various autojoin fixes

Bug:15111865
Bug:15080778
Bug:14994925

Change-Id: I753ff62b48a87db4096fdec18b4de070656cf901
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
82b91fd1a87ae9000bac54fb44981d5003958de1 21-May-2014 Vinit Deshpande <vinitd@google.com> Make Wifi WPS API available on application layer

Un-hide WPS methods (and required interface classes, etc.) of WifiManager.java to
enable Apps to start/stop the WPS procedure, add a patch for WPS method KEYPAD to
avoid early failure callbacks. (Methods PBC, DISPLAY, KEYPAD tested on 4.4.2_r2.)

Change-Id: I25aafdc4b637c87d754d4fdb70e40a34a569b738
Signed-off-by: Olaf Stoyke <o.stoyke@avm.de>
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
5d30d5c2e0eec4db2303da3f225f52da748e2060 12-May-2014 Yuhao Zheng <yuhaozheng@google.com> Hotspot 2.0 framework support -- more functionalities

- WifiMonitor handles more HS20 events
- Passpoint stack parses ANQP results

Bug: 5485670
Change-Id: I5f8e7c80f8024379fe7a6c4394f1faae2040cfba
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
446db2d5457456743e4476029e14d7c3bb9f5bcc 10-Apr-2014 Yuhao Zheng <yuhaozheng@google.com> Hotspot 2.0 framework support -- inital implementation

Bug: 5485670
Change-Id: I48a63f5a45e0c217f5b73b4b3c45ea1acee76034
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
ede1310be531a84faa08f02c3fd243448dd936dd 16-May-2014 vandwalle <vandwalle@google.com> restore correct tracking of auth failure; bring up assoc reject info to supplicant

Change-Id: I7eeb110f1f14149f560630848f26f7cc9f5cbb67
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
62f1d0ca8ea4466628f6ff179b1f20e1279fa7e0 13-May-2014 vandwalle <vandwalle@google.com> autojoin is to eager to black list networks due to connection failure

Bug: 14834820

Change-Id: I81c05b657b3d218bb4d5f5bf82dd6a8ad3859bd1
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
e57857d829f670c62e8d53ffed580681271a272b 13-May-2014 vandwalle <vandwalle@google.com> fix crash on null string in AUTH_FAILURE message handling

Change-Id: I657951f8bb37af778f8d4ab2c9b9d2ab2956220c
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
f22d23092ab37286a5ef9d257d5bb32c421d2669 06-May-2014 vandwalle <vandwalle@google.com> autojoin initial implementation

Change-Id: Iea4e5c0b8e988e410d2f9885ecaf6317d34cc1d1
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
155b9d09ef9b8ead3ca617afdd91e74070d3f0cb 09-Jan-2014 Vinit Deshpande <vinitd@google.com> Revert "Revert "Move Wifi services to a new git project""

This reverts commit 862f81faba40e9af8fb80744a22e968a298e814e.

Change-Id: I7b15e266a5948749026e01a61d8581746cfd0f5f
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
862f81faba40e9af8fb80744a22e968a298e814e 08-Jan-2014 Vinit Deshpande <vinitd@google.com> Revert "Move Wifi services to a new git project"

This reverts commit a07c419913bfae2a896fbc29e8f269ee08c4d910.

Change-Id: I1cd35cea1594cdbeae800b9130bc6f885f238b28
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java
a07c419913bfae2a896fbc29e8f269ee08c4d910 18-Dec-2013 Vinit Deshapnde <vinitd@google.com> Move Wifi services to a new git project

Bug: 12175455
Change-Id: I1fa07e29c6a9aae38d9e334d519a9f2445d15613
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiMonitor.java