396 Commits

Author SHA1 Message Date
Irfan Sheriff
4b173c0d8c am 694b266e: am 7b6d238b: Merge "Fix tethering interaction from wifi" into ics-mr1
* commit '694b266e0366e5400d577659d1bb8152f0a106e7':
  Fix tethering interaction from wifi
2011-11-23 19:22:50 -08:00
Irfan Sheriff
c74694d5e1 Fix tethering interaction from wifi
- Use the right interface for untether

- Wait till tethering service confirms that untether() is successful before
shutting down soft Ap. This helps to make sure interface does not go away
before clean up is done.

Bug: 5659166
Change-Id: Iff9d4a67ff40664c2114e766590d6a83b7739738
2011-11-23 10:05:05 -08:00
Irfan Sheriff
af139db574 am 1c9126c6: am 59c73b92: Merge "Convert soft ap config store to state machine" into ics-mr1
* commit '1c9126c64b56b6465fd551680461caed2e1ea20d':
  Convert soft ap config store to state machine
2011-11-09 21:51:12 +00:00
Irfan Sheriff
9575a1bea1 Convert soft ap config store to state machine
- Create thread when needed
- asynchronous interaction with wifi state machine

Bug: 5587391
Change-Id: Ie6d01b5a6b398a3fa12c384920a473e242443131
2011-11-08 15:45:42 -08:00
Irfan Sheriff
a4e1014d36 am 45a04db3: Merge "Avoid quick shutdown after a driver start" into ics-mr1
* commit '45a04db3f95755829b24043d30d7da7182b4f33b':
  Avoid quick shutdown after a  driver start
2011-11-05 19:33:16 +00:00
Irfan Sheriff
45a04db3f9 Merge "Avoid quick shutdown after a driver start" into ics-mr1 2011-11-04 11:47:27 -07:00
Irfan Sheriff
a25b1a272c am a3d9eba1: Merge "Reset IP failure counter on a success" into ics-mr1
* commit 'a3d9eba10461158a52acfc2a0324696b25db761f':
  Reset IP failure counter on a success
2011-11-03 23:10:04 +00:00
Irfan Sheriff
a3d9eba104 Merge "Reset IP failure counter on a success" into ics-mr1 2011-11-03 16:06:07 -07:00
Irfan Sheriff
e6daca5f53 Avoid quick shutdown after a driver start
Causes problems on our wext driver and potentially on cfg
based driver as well.

NLP can trigger very quick acquire and release within seconds
leading to driver switching between start and stop state.

We now keep driver up for atleast couple of minutes after a start

Bug: 5478196
Change-Id: I1b261578252c5fb9a65446241b51e5686d4d9cc3
2011-11-03 15:48:43 -07:00
Irfan Sheriff
05c6756b5e am b419abca: am 7f00c22b: Merge "Avoid duplicate dialogs leading to NPE" into ics-mr0
* commit 'b419abcadad79cd908acfe51dc6e8902c16ff728':
  Avoid duplicate dialogs leading to NPE
2011-11-02 21:42:49 +00:00
Irfan Sheriff
7f00c22b7f Merge "Avoid duplicate dialogs leading to NPE" into ics-mr0 2011-11-02 14:37:19 -07:00
Irfan Sheriff
1667a485d7 Reset IP failure counter on a success
Bug: 5552673
Change-Id: I56c032577be217895b75bf72ecb2c986d2064ab4
2011-11-01 16:28:17 -07:00
Irfan Sheriff
bbe77ca6be Avoid duplicate dialogs leading to NPE
Bug: 5548268
Change-Id: I383d5dba5ed2d77c1623d03990f1139872a65e2a
2011-11-01 12:04:57 -07:00
Scott Main
b68d7ab80a am 12f9900b: am 737c3dd9: Merge "docs: add package description for wifi.p2p and update the one for wifi" into ics-mr0
* commit '12f9900bfb004a09ea6a8ce0df27c661124f46ac':
  docs: add package description for wifi.p2p and update the one for wifi
2011-10-27 15:55:22 +00:00
Scott Main
737c3dd9f1 Merge "docs: add package description for wifi.p2p and update the one for wifi" into ics-mr0 2011-10-27 08:49:48 -07:00
Irfan Sheriff
03bcbe75ba Switch to notifications for walled garden
Also, switches the URL for browser to the actual URL used for checking
walled garden

Bug: 5398921
Change-Id: I7eb6f463c9b2f7e11c1d423711fa8a3d2bd2ff13
2011-10-25 15:37:18 -07:00
Irfan Sheriff
2d57d860c2 Fix handling in DisconnectingState
Now that we also handle supplicant state change to identify that
a network is disconnected (in case CTRL-EVENT-DISCONNECTED goes missing),
it is dangerous to defer all supplicant state change messages
while in DisconnectingState.

It may happen that the CTRL-EVENT-DISCONNECTED goes missing while in
DisconnectingState resulting in a supplicant state change of 0 (disconnect)
getting deferred.

Eventually after a connection completes, the supplicant state change events
get handled and the state machine goes into DisconnectedState.

Fix by having state machine switch out of DisconnectingState once we
do not immediately see a CTRL-EVENT-DISCONNECTED state.

Bug: 5490789
Change-Id: Ia2263795e53c51da0a2bfeefecfeb6256d6c5267
2011-10-20 14:38:54 -07:00
Maarten Hooft
d47d4f7b77 Merge "Add a delay before walled garden test" into ics-mr0 2011-10-19 18:21:56 -07:00
Irfan Sheriff
a81ac7c450 Add a delay before walled garden test
This allows a carrier app to authenticate before we notify the user.
For future, we will provide an API that allows app to disable
the walled garden check.

Bug:5398921
Change-Id: Iff98ddaaa9fa38def4f43b1995f4b2c36f93a919
2011-10-19 16:23:57 -07:00
Scott Main
63fcb397a2 docs: add package description for wifi.p2p and update the one for wifi
Change-Id: Iaf80f9640a4d56100e22d93954edd8aeb5ea4d2b
2011-10-18 10:17:17 -07:00
Irfan Sheriff
a2a1078576 Disconnect without CTRL-EVENT-DISCONNECTED
Handle a supplicant state change indicating disconnection
even if we have missed the CTRL-EVENT-DISCONNECTED notice

Bug: 5437924
Change-Id: I28e314f47f17359926c091b2015cd1fb7422fb22
2011-10-17 14:16:32 -07:00
Irfan Sheriff
0f43161150 Add a time threshold for re-enabling networks
Reconnecting to a bad network can be expensive (network down time wise and for the device as well).

Add a minimum threshold.

Bug: 5234206
Change-Id: I5ef1fe06038db73c29a3e95b6229506555f36c77
2011-10-05 12:49:13 -07:00
Irfan Sheriff
56379d2397 Handle unexpected interface up/down events
WEXT on crespo has an issue where the interface up/down events
can happen in an unexpected fashion.

At a driver start, we can go from interface disabled to interface enabled,
back to interface disabled and then eventually into an interface enabled state.

Earlier, we were just expecting a single interface enable event that would trigger
driver specific commands. Now, we just handle these events as individual driver
stop and driver start situations so that we do appropriate things eventually

Bug: 5239853
Change-Id: I6bd5d844edf9fadfdca4e8eb753c2ba738aa6ad5
2011-10-04 16:59:10 -07:00
Irfan Sheriff
7f8a12c75c Reduce/Fix system logging
Bug: 5410239
Change-Id: I2f91dfde0b701e8905a1235696591b3154693c7c
2011-10-04 12:01:31 -07:00
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