473 Commits

Author SHA1 Message Date
Iliyan Malchev
578531082b Revert "Add timestamp in scan results"
Temporarily reverting this until all devices switch to using wpa_supplicant_8.

This reverts commit b31f78f93768fef269617ec788a5c6655a375f80.

Change-Id: I33fcb8415288d95289dcd46fa71e950e0f2b87ec
Signed-off-by: Iliyan Malchev <malchev@google.com>
2012-08-14 11:17:21 -07:00
Wink Saville
ee8655c673 am 2605aeeb: am b17a583a: Merge "Fix interface name for tethering"
* commit '2605aeeb30e39c2616bbe6ff088d1ed0020b4a3b':
  Fix interface name for tethering
2012-08-13 16:27:35 -07:00
Wink Saville
2605aeeb30 am b17a583a: Merge "Fix interface name for tethering"
* commit 'b17a583a3acc57db845993599e4de56e91d5e75a':
  Fix interface name for tethering
2012-08-13 16:24:15 -07:00
Vishal Mahaveer
a6b6556082 Fix interface name for tethering
Fix the interface name used in stopTethering

Change-Id: I3a8fb80c3c6cd382e7641d1735bff85d8a938ee9
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
2012-08-13 15:07:24 -07:00
Irfan Sheriff
b31f78f937 Add timestamp in scan results
Propogate 802.11 tsf details per scan result to the applications
and open up hidden access points

BUg: 2961159
Change-Id: I05658fd0cf010c0b36193db3f79422640e8b3a6b
2012-08-13 11:20:14 -07:00
Irfan Sheriff
3fb4ba616e Add control to disable suspend optimizations
Add an advanced setting that allows user to turn off power savings at screen off.

Bug: 5885175
Change-Id: I2dd013b86d7500a2ad1f9ec75d86551808f05543
2012-08-09 15:50:55 -07:00
Yuhao Zheng
b33227d23e WifiWatchdog changes for poor link detection
- use packet loss (wlutil pktcnt) instead of frame loss, retune all parameters
- use wpa_supplicant to get packet loss counters, instead of netd
- handle BSSID roaming in all situations
- improve flapping avoidance mechanism by setting different target RSSI
- handle high packet loss in high RSSI (never seen in real testing)
- add more comments on how to set all parameters

Signed-off-by yuhaozheng@google.com

Change-Id: I33429f063d8625a458be4791edd83a86d5a723df
2012-08-06 15:45:14 -07:00
Jeff Smith
440f32bbd4 am ddd88726: am 71930dd7: am a45746ef: Fix several cases of broken droiddoc syntax external issue 35214
* commit 'ddd88726a247e4100cb62b3dc9d0887ca2ae2ec4':
  Fix several cases of broken droiddoc syntax external issue 35214
2012-07-25 22:13:40 -07:00
Jeff Smith
ddd88726a2 am 71930dd7: am a45746ef: Fix several cases of broken droiddoc syntax external issue 35214
* commit '71930dd77e4dc6f6be5c648019d2ab0da5f0584c':
  Fix several cases of broken droiddoc syntax external issue 35214
2012-07-25 15:05:23 -07:00
Jeff Smith
71930dd77e am a45746ef: Fix several cases of broken droiddoc syntax external issue 35214
* commit 'a45746efadd11bb7dfab026fb3c81a25fae74ca4':
  Fix several cases of broken droiddoc syntax external issue 35214
2012-07-25 10:56:03 -07:00
Jeff Smith
a45746efad Fix several cases of broken droiddoc syntax
external issue 35214

patch contributed by Jeff Smith <whydoubt@yahoo.com>

Change-Id: I70dcee88a140699bf3e1ab369bed6dcd2fdd3d83
2012-07-25 10:49:25 -07:00
Irfan Sheriff
88759bbd31 Update WifiManager API
Use feedback based on NSD to update WifiManager API

Change-Id: I0c1dc74f7e2fa7cd697a995b7194e3e0366d7981
2012-07-24 13:34:36 -07:00
Irfan Sheriff
dfd42a9bbc Ignore auth failures during WPS
During WPS, EAP failure occurs many times due to searching
external registrar. EAP failure can also occur after WPS-success.
WPS failures are handled through seperate events, ignore auth failures.

Change-Id: I6a051398d306250510536d157bf812b5a434c84b
Signed-off-by: Irfan Sheriff <isheriff@google.com>
Signed-off-by: Yoshihiko Ikenaga <yoshihiko.ikenaga@jp.sony.com>
2012-07-02 15:31:27 -07:00
Wink Saville
095c58b73a Enhance StateMachine Quitting and logging support. DO NOT MERGE
Make StateMachine#quit non-conditional and remove the need to
process the SM_QUIT_CMD it is now private.

Rename halting to onHalting.

Add onQuitting

Change the message specific logging to be more generic and change
the xxxProcessedMessagesYyy methods to xxxLogRecXyy names. Also add
addLogRec(String) and addLogRec(String, State) as the generic logging
methods.

bug: 5678189
Change-Id: I22f66d11828bfd70498db625fe1be728b90478b7

Conflicts:

	services/java/com/android/server/NsdService.java
2012-07-02 10:57:11 -07:00
Irfan Sheriff
55b9821dff Move ARP test functionality to ArpPeer
Change-Id: Iecd6037cf8e0faa626ba6c27cef014822a6bc61b
2012-06-21 15:08:29 -07:00
Irfan Sheriff
90542758d4 Cleanup softap interface to netd
Change-Id: I01e6c5b5a5a8ddaf05b979f9cc6d1293c86e8773
2012-06-19 16:21:22 -07:00
Irfan Sheriff
b81bb9b408 Clear interface addresses upon disconnect
Change-Id: I8ce289cfc72babe894ce9f4d0119a2f2ac5f0859
Signed-off-by: Irfan Sheriff <isheriff@google.com>
Signed-off-by: Yoshihiko Ikenaga <yoshihiko.ikenaga@jp.sony.com>
2012-06-11 15:48:50 -07:00
Irfan Sheriff
df3bec04de am efcc0ca7: am 4206ee2b: Merge "Fix clear services API" into jb-dev
* commit 'efcc0ca7545190f49bcbc25182d83b21aa01b2aa':
  Fix clear services API
2012-06-08 14:08:23 -07:00
Irfan Sheriff
96aa0db9a9 Fix clear services API
BUg: 6631291
Change-Id: I9cee827b5eb78e356fdf86390103136f5610dd3e
2012-06-08 09:24:33 -07:00
Irfan Sheriff
4d7d5268ba am 2654105b: am ca96a322: Merge "Update group capability before connect" into jb-dev
* commit '2654105b15d8da5ad4fd84eef7e2c3f662373283':
  Update group capability before connect
2012-06-06 15:59:15 -07:00
Irfan Sheriff
57e42f4117 Update group capability before connect
We need to get the latest group capability information before connect
now that the supplicant behavior is to do a delayed cleanup.

Bug: 6613470
Change-Id: Ie374d750950f3bd4376fd6a767bb253fd7986eb1
2012-06-06 15:00:31 -07:00
Irfan Sheriff
b1ebee8ac7 am 7742b91c: am 1b3dcd3b: Merge "Fix NPE while creating autonomous GO" into jb-dev
* commit '7742b91c7e05c85801a03c36fb2f799703e82b9b':
  Fix NPE while creating autonomous GO
2012-06-02 08:20:32 -07:00
Irfan Sheriff
ba5065eaf3 Fix NPE while creating autonomous GO
When autonomous GO is being created and we get a device lost event,
fix NPE

Bug: 6595978
Change-Id: Id93b693b8bcc447aea03c04be7556b1f2ff00a90
2012-06-01 12:47:30 -07:00
Irfan Sheriff
39150720c0 am 39b79e79: am ce9b5c76: Merge "Fix walled garden detection on nakasi" into jb-dev
* commit '39b79e79d3ad9e98a9c76c1b104599be494213f6':
  Fix walled garden detection on nakasi
2012-05-31 11:35:31 -07:00
Irfan Sheriff
ce9b5c7611 Merge "Fix walled garden detection on nakasi" into jb-dev 2012-05-31 11:28:36 -07:00
Irfan Sheriff
ae094b2715 Fix walled garden detection on nakasi
Bug: 6576101
Change-Id: Iad2ea67e54662cd30a0e7425dab2a6174d13d152
2012-05-31 11:11:23 -07:00
Wink Saville
4b5d3a2639 Merge "Enhance StateMachine Quitting and logging support." 2012-05-29 14:22:50 -07:00
Wink Saville
bbf30dfd76 Enhance StateMachine Quitting and logging support.
Make StateMachine#quit non-conditional and remove the need to
process the SM_QUIT_CMD it is now private.

Rename halting to onHalting.

Add onQuitting

Change the message specific logging to be more generic and change
the xxxProcessedMessagesYyy methods to xxxLogRecXyy names. Also add
addLogRec(String) and addLogRec(String, State) as the generic logging
methods.


bug: 5678189
Change-Id: I22f66d11828bfd70498db625fe1be728b90478b7
2012-05-29 12:40:46 -07:00
Irfan Sheriff
e2417b7a6e Merge "Retain device during connecting state" into jb-dev 2012-05-25 15:13:27 -07:00
Irfan Sheriff
9cb980422a Retain device during connecting state
With join taking much longer, sometimes device can be lost from supplicant.
Retain device to complete connection.

Also, clear up stale peer data after find stops during inactive state.

Bug: 6557725
Change-Id: I15b92e50a837481f974034b1ea7b32c8abee969e
2012-05-25 12:52:34 -07:00
Irfan Sheriff
da87c7c1ee Merge "Fix delayed wifi shutdown" into jb-dev 2012-05-25 10:31:46 -07:00
Vishal Mahaveer
f48fb85a8c Fix delayed wifi shutdown
Use a wake up alarm to ensure delayed shut down message is sent

Bug: 5926285
Change-Id: I26a3353ddabb17d55299d8b5f9faf4c7ef5b2448
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
2012-05-24 22:49:58 -07:00
Irfan Sheriff
4dd5a25a32 Add WPS details for certification
We need to provide device details to the supplicant for WPS 2.0 certification

Bug: 6450363
Change-Id: I3eb8bc75faacf392a43b6ef3085971bd32a675ac
2012-05-22 13:15:00 -07:00
Irfan Sheriff
f74f1ac81d Merge "Add work around to restart driver on failure" into jb-dev 2012-05-14 17:00:17 -07:00
Irfan Sheriff
f91d4e7bdd Add work around to restart driver on failure
A driver start can fail and device can stay stuck in that state.
Add a work around to retry once after a period of time and then
reload wifi if that does not work.

Bug: 6005966
Change-Id: I930554ac96ac25da2a38e49630d375656e32f6f6
2012-05-14 16:21:10 -07:00
Kenny Root
c559e3b7f4 Merge "Add in constant for WPA supplication settings" into jb-dev 2012-05-11 15:49:22 -07:00
Irfan Sheriff
ba1db8a591 Merge "Fix wifi direct issues" into jb-dev 2012-05-11 14:46:46 -07:00
Irfan Sheriff
10ca870d3b Fix wifi direct issues
- BSS command is unreliable, use group owner information from p2p_find
- Fix the autonomousgroup settings
- Use group idle settings only on the p2p group interface to avoid group idle
resulting group formation failures

Bug: 6426991
Change-Id: I44fc204775580fb4fec6ce27070ddbde0751b495
2012-05-11 13:39:29 -07:00
Kenny Root
343331fa02 Add in constant for WPA supplication settings
This constant indicates what should be sent when a wpa_supplicant's
engine field should be marked as "disable."

Bug: 6480500
Change-Id: Ic963eff4b2ae1496f06e23f80514bf530767c568
2012-05-11 09:07:53 -07:00
Irfan Sheriff
9e1b58a123 Merge "Tone down poor connection avoidance" into jb-dev 2012-05-09 17:27:14 -07:00
Irfan Sheriff
0a2a91e878 Tone down poor connection avoidance
Until we figure out a way to compare a poor mobile network
against and poor wifi network and then weighing in other factors,
tone down wifi avoidance aggressiveness

Bug: 6456541
Change-Id: Idc81e4d83f47c9870abbdb4359ddfeaffdcca838
2012-05-09 17:06:26 -07:00
Irfan Sheriff
527ba07b63 Use Map for DnsSd TXT record
Bug: 6434844
Change-Id: I767077585f501b46026ed34ec3e778d3e53209cc
2012-05-09 16:25:00 -07:00
Irfan Sheriff
531522c7fe Merge "Report open networks without saved networks" into jb-dev 2012-05-03 09:42:06 -07:00
Irfan Sheriff
027828bff7 Report open networks without saved networks
The supplicant stops periodic scans when there are no saved networks.
The framework needs to have a periodic scan to handle this scenario.

We do have an infrequent wake up scan (15 mins), but thats way too
slow to report an open network.

Setup a scan by the supplicant interval when there are no saved
networks

Bug: 5420656
Change-Id: Id3708ecc874b42971643cc747bb9e7f2efc7d1dd
2012-05-02 17:51:26 -07:00
Irfan Sheriff
04e83d3952 Merge "Fix reference counting of wifi locks" into jb-dev 2012-05-02 16:25:34 -07:00
Irfan Sheriff
2c02da2bc6 Fix reference counting of wifi locks
Bug: 6105898
Change-Id: I7368de91fa4aa63fd97dda0ee91d810aaaa53d8b
2012-05-02 14:40:16 -07:00
Irfan Sheriff
d07223f829 Merge "Fix getConfiguredNetworks when wifi is disabled" into jb-dev 2012-05-02 11:42:09 -07:00
Irfan Sheriff
a3cbe75c93 Fix getConfiguredNetworks when wifi is disabled
Bug: 6380917
Change-Id: I4c6f1a379ef2401cde739aedfc82578c03e7dcf3
2012-05-02 11:39:54 -07:00
Irfan Sheriff
de1e9fa9fb P2p fixes
- Fix group idle settings
- Fix provision discovery event handling. We only care about device address.
- Fix WPS setup at start

Bug: 6427634
Change-Id: I0b1a7d73199e373350001114f4607bc39f2a53ba
Signed-off-by: isheriff@google.com
Signed-off-by: Yoshihiko Ikenaga <yoshihiko.ikenaga@jp.sony.com>
2012-05-02 10:02:56 -07:00
Irfan Sheriff
8e8798d90a Merge "Fix connect & save of invalid networks" into jb-dev 2012-04-30 15:51:40 -07:00