322 Commits

Author SHA1 Message Date
repo sync
7960d9f888 Fix IPv6 on wifi
Bug: 5388757
Change-Id: I3c8c776c26dad1daa9801d0455fde749c0206401
2011-09-29 16:59:01 -07:00
Irfan Sheriff
cbb62bb818 Merge "Switch to cfg based signal_poll command" 2011-09-26 22:11:03 -07:00
Irfan Sheriff
921df5cbc4 Switch to cfg based signal_poll command
Bug: 5352916
Change-Id: Id2ba7091a5e4cc4c1e14aa2c49e5b943519019bf
2011-09-26 16:30:15 -07:00
Irfan Sheriff
c21994bc26 Merge "Fix watchdog to stop ping after wifi disconnects" into ics-factoryrom 2011-09-23 15:18:37 -07:00
Irfan Sheriff
32f04e9009 Fix watchdog to stop ping after wifi disconnects
- The pings are delayed async messages that were getting handled
after a disconnect as well

- Increase poll time to 200 ms, so we block on a receive for 1ms every 200ms for a
sent packet

Bug: 5361564
Change-Id: I1931a1c4146e78a87407d541d8c3934ff8232604
2011-09-23 14:48:26 -07:00
Irfan Sheriff
cf54e4aafc Add supplication shut down recovery
When framework fails to get a notice of supplicant shut down,
timeout and proceed with a forced terminate

Also, avoid killing supplicant immediate upon stop and use the
timeout for recovery

Bug: 5337272
Change-Id: Id8971c673dc3082a5f15a6d5cef907bebe1e0fa0
2011-09-19 16:30:51 -07:00
Irfan Sheriff
7329361cdc Add support to change IPv6 privacy extensions
Bug: 3360737
Change-Id: I9136992d05f7abf15bdfd92aad3a3e0c0fe3bee2
2011-09-14 12:31:56 -07:00
Irfan Sheriff
651cdfcbac Unhide wifi p2p API
Bug: 5247957
Change-Id: Id93e30c0cb60f361ba13a840de8f843415777336
2011-09-13 16:04:00 -07:00
Robert Greenwalt
2367e75bee am 61db35da: am 2f835a61: Merge "Make copies of NetworkInfo to give out." into honeycomb-LTE
* commit '61db35da2b4501dde5646f86f21cf5054c41ea26':
  Make copies of NetworkInfo to give out.
2011-09-13 14:25:27 -07:00
Irfan Sheriff
616f3173e0 Emergency callback mode handling
For wifi, track ECM and shut down and restart when device
goes in ECM and out

For p2p, simply turn off when in ECM mode

Bug: 5185246
Change-Id: I5f5bf75fac3e27db1d7c412135c796f2b137263d
2011-09-11 22:56:17 -07:00
Irfan Sheriff
858c396e87 Merge "Finalize wifi watchdog default settings" 2011-09-09 15:15:13 -07:00
Robert Greenwalt
6aecb98a62 Make copies of NetworkInfo to give out.
Otherwise we'll change it out from under those we've given it too.
bug:5233462

Change-Id: Iffc886849edfa6ced3da1133f9d363e11b2733f8
2011-09-09 15:10:42 -07:00
Irfan Sheriff
295da73f05 Disable p2p when airplane mode is turned on
Bug: 5286610
Change-Id: Ia895dfbf0d1bc39458f4a4d24595c862750eea38
2011-09-09 14:10:15 -07:00
Irfan Sheriff
998196d64d Finalize wifi watchdog default settings
- Reduce DNS counts from 15 to 5. 15 was for debug.
- Keep success scenario as atleast 1 being successful
- Wait for a second to start checks (for some setups)
- Use one bar as a start for doing periodic DNS checks
- Do a DNS check every hour (instead of half hour)

Bug: 5284337
Change-Id: Ie64d8cac48318a0c4c59f91ad21f8c6712b71338
2011-09-09 12:36:28 -07:00
Irfan Sheriff
a420cc460c Merge "Fix system crash on p2p failure" 2011-09-07 17:43:04 -07:00
Irfan Sheriff
511f8e2ff2 Merge "Use hasSystemFeature() API to check for p2p" 2011-09-07 17:42:47 -07:00
Irfan Sheriff
f0ef26af34 Fix system crash on p2p failure
A previous change missed out a function that accepts an
integer argument as arg1. Instead, it was being passed as
parcelable which causes a fatal exception

Bug: 5271220
Change-Id: I3b78d9ce9ab742aa89ceaae17116fb7245187863
2011-09-07 15:05:54 -07:00
Irfan Sheriff
a8f63a38a0 Use hasSystemFeature() API to check for p2p
Bug: 5267396
Change-Id: I4ff3f77c15322564f63beea793c4585cece596e0
2011-09-07 14:36:32 -07:00
Irfan Sheriff
6f7d385d96 Update documentation and cleanup to unhide API
Bug: 5247957
Change-Id: I3ef8ac013eec32eb540178ea5febec3d4c0a3428
2011-09-07 00:18:48 -07:00
Irfan Sheriff
489a9d81fd Rename WpsConfiguration to Wps
For the purpose of exposing the class as a storage for Wps
info with p2p, it is better to just call it Wps

Bug: 5247957
Change-Id: Iaebef958dd8f08fdbeb4b9d7fa5ad5527400710d
2011-09-06 22:32:58 -07:00
Irfan Sheriff
dff28d5293 Handle state transition for p2p enable reject
Bug: 5265878
Change-Id: Ifd0ecb98876ffe098af06d67226f312d2a3d49c7
2011-09-06 19:49:08 -07:00
Irfan Sheriff
daf57e5ff4 Add notification when p2p is enabled
Bug: 5262278
Change-Id: I82890323c4e4e2952b4c9c9bc503856095d90c21
2011-09-06 11:51:30 -07:00
Irfan Sheriff
4be4d31f34 Fix p2p API interface to framework
- Update the WifiP2pGroup class
- Add reason code response for all failures
- Fix display of self in peer list
- Retain p2p group when explicitly created by API and fix join behavior

Bug: 5247957
Change-Id: Ibd9b163887db1c8a9dd8213253fda20c436a49e3
2011-09-06 11:01:17 -07:00
Irfan Sheriff
9cc2718abc Prepare for exposing p2p API
First part of documentation and cleanup before we can unhide
the p2p API for review by API council.

Bug: 5247957
Change-Id: Idb52f0b699d23e22aa829f60cfac2c98451d2e22
2011-09-01 14:37:51 -07:00
Robert Greenwalt
9b2886e243 Create new isNetworkSupported API
Useful for checking if on a wifi-only device.
Similar to asking for NetworkInfo for a network type and checking for
null, though here the intent is explicit.

bug:5087537
Change-Id: Ia3ddd09b6b735b8b3ceb7a347891e015fd96b218
2011-08-31 16:53:12 -07:00
Irfan Sheriff
2a62b43e67 Merge "Remove persistent behavior" 2011-08-31 11:35:45 -07:00
Irfan Sheriff
329b79713c Merge "Reload STA firmware on start" 2011-08-31 11:35:26 -07:00
Irfan Sheriff
f9cb1d7082 Remove persistent behavior
Until we figure out a good way to do it from both group owner
and client, remove persistent behavior

Bug: 5241839
Change-Id: I31bda672edaa17e6a500f185b6b879dcfdbd069d
2011-08-31 10:17:24 -07:00
Irfan Sheriff
e36fcea8cd Reload STA firmware on start
Bug: 5242253
Change-Id: If8e07bc96b46a0e5022cc9d12191de2e4dbec212
2011-08-31 10:07:59 -07:00
Irfan Sheriff
f99360bf8f Merge "Initialize p2p settings" 2011-08-29 17:36:50 -07:00
Irfan Sheriff
335e40c0f1 Merge "Use seperate config file for p2p" 2011-08-29 15:22:58 -07:00
Irfan Sheriff
ad4d2c99ed Merge "Remove work around for driver state change" 2011-08-29 14:13:42 -07:00
Irfan Sheriff
3ac127ff47 Remove work around for driver state change
When we first ported wpa_supplicant 0.8, we had a work around
to fix the supplicant state change behavior from the driver.

Remove the work around since the driver behavior is fixed.

Bug: 5195278
Change-Id: I320f21ab01704931a3def6214b0cc40f214a688e
2011-08-29 14:05:14 -07:00
Irfan Sheriff
9322687d98 Initialize p2p settings
And fix associated changes from the settings.

With p2p_reconnect setting turned on, it means the p2p group can be
started without a group negotiation. Hence, handle p2p group started in
the P2pEnabledState

Also, reinvocation results in supplicant not reporting device address correctly.
Handle that until supplicant fix is fixed.

Bug: 5002384

Change-Id: I335f6e854acd6839f54da9b460b17ad7505b1098
2011-08-29 12:55:44 -07:00
Irfan Sheriff
f42c39b3d1 Use seperate config file for p2p
Keep p2p and sta config seperate to avoid conflicts.

Bug: 5002384
Change-Id: I8f8fc5f984f4f91f9ece4012bf536daa5cc00bba
2011-08-26 14:45:23 -07:00
Isaac Levy
8136de08ff Fixed WifiWatchdog notification bugs
- Space was truncated on 'disabled' notification
- Disable reason was getting wiped out on subsequent disabled
- disable reason was not propogating to WifiSettings

Change-Id: I2e57ee33d285aad39aabe1b048e7436d364b02f3
2011-08-26 11:55:33 -07:00
Irfan Sheriff
b6dbd69fa9 Merge "Prevent dup network adding - b/5200491" 2011-08-25 16:34:47 -07:00
Isaac Levy
8fd4a3d0f7 Prevent dup network adding - b/5200491
Change-Id: I8260cf73c4261e8efb696bb8557a39e02754190e
2011-08-25 15:19:07 -07:00
Irfan Sheriff
859e7de235 Fix connection notification for group owner
Bug: 5002384
Change-Id: I099d6907787a0becf9363c3709efd8d4ec2a97af
2011-08-25 13:58:25 -07:00
Irfan Sheriff
ea5b16ac57 Update p2p state machine and API
- Simplify the API with minimal needed functionality
- Fix responses for all async messages from the framework
- Fix state machine handling of connection setup and supplicant communication

Change-Id: I2724c83760b2aaa2068f9cd81ca0754753f83220
2011-08-25 11:02:25 -07:00
Irfan Sheriff
a407aef898 Merge "Added support for multiple DNS servers." 2011-08-24 11:46:12 -07:00
Jeff Sharkey
8e28b7d782 Proactively disable data when over policy limit.
Add policy controls to NetworkStateTracker which are combined with
other user preference and internal flags to decide if data connection
should be established.  Better locking around enabled flags.

When data network would be over limit, proactively disable data on
that network.  Enable when policy is snoozed or when cycle resets.

Track and dismiss notifications from now-stale policies.

Bug: 4587023, 5178147
Change-Id: Ibfcc9f73cda7c369209af701b46eddd3d1943f2d
2011-08-23 18:45:44 -07:00
Isaac Levy
79e43f679d Added support for multiple DNS servers.
Also increased delay on repeat checks for WWSM.

Change-Id: Ic11b1f37a910c483f48e04dadb539b39fe50e622
2011-08-23 14:04:40 -07:00
repo sync
8c57bcdbc6 Fix device address and interface address usage
After a p2p group is formed, STA connect and disconnects come over
interface address. Figure out device address from interface address
and fix the device comparison

Bug: 5002384
Change-Id: I7d3aa4f0616e000550cd2b057adbac71cfd2adb4
2011-08-19 14:41:03 -07:00
repo sync
2b8edd0c48 Use supplicant control channel interface for p2p
Bug: 5002384
Change-Id: Id2131ef43a01288e84178a5b21d289b97db9d736
2011-08-18 12:40:17 -07:00
repo sync
4a56c437b6 Merge "P2p enhancements" 2011-08-16 14:50:56 -07:00
repo sync
aea743aaa4 P2p enhancements
- ConnectivityService interaction and support for running dhcp server
and client

- State machine enhancements for connectivity interaction

Change-Id: Iba3beb8c87554ffd67a7b7e852bbb4dd8666a4f5
2011-08-10 15:53:49 -07:00
Irfan Sheriff
7244c977ec Ensure interface down before wpa_supplicant start
Now that the driver is built into the kernel, a runtime crash
followed by a driver unload and reload does not reset the interface.

Ensure interface is down before bringing up supplicant

Bug: 5032635
Change-Id: Ib8f3d47617e587139a8a91a82146ee3a2f329700
2011-08-10 15:49:25 -07:00
Irfan Sheriff
5f6ddecdee Merge "Add firmware reload support for P2P" 2011-08-10 12:19:58 -07:00
Irfan Sheriff
17262c454f Merge "Do not log failed pre shared key" 2011-08-10 10:19:24 -07:00