561 Commits

Author SHA1 Message Date
Irfan Sheriff
c602187e51 Merge "Prevent scanning during DHCP process" 2012-12-05 09:25:43 -08:00
Irfan Sheriff
cdd03f5487 Merge "Try go-negotiation when invocation request is deferred." 2012-12-03 11:59:53 -08:00
Vitaly Wool
d7fc38cead Prevent scanning during DHCP process
Wi-Fi should be in active state during the entire DHCP process, and
shouldn't go to IEEE 802.11 power save mode. If the framework requests
scan during the DHCP process, the Wi-Fi chip has to start scanning
on channels different from the current one, and going to power save
mode is a prerequisite for scan. The result directly impacts user
experience: DHCP process takes longer, and even can fail.

Change-Id: I8171388bb70072e4c42cb3c074dd955da84e494b
2012-12-03 16:00:44 +01:00
Yoshihiko Ikenaga
9348005545 Try go-negotiation when invocation request is deferred.
Devices setting persistent_reconnect to 0 in wpa_supplicant returns "information is currently unable" error.
In that case, the connection establishment was always failed when the other device does NOT handle the invitation request.
So, try go-negotiation for interoperability.

Change-Id: Ia30a1c63d1bb4acc186a71248fb0aa5ea7edc627
Signed-off-by: Yoshihiko Ikenaga <yoshihiko.ikenaga@jp.sony.com>
2012-11-28 09:52:06 +09:00
Yoshihiko Ikenaga
7d9cf119d1 Fixed typo and space.
Signed-off-by: Yoshihiko Ikenaga <yoshihiko.ikenaga@jp.sony.com>
2012-11-16 16:59:36 +09:00
Irfan Sheriff
5c8e5585e2 am 1f6cf5fa: Merge "Re-use existing thread" into jb-mr1.1-dev
* commit '1f6cf5fade6021c1ce788541ec4a60ee36d20651':
  Re-use existing thread
2012-11-07 16:46:31 -08:00
Irfan Sheriff
cd3d75f35d Re-use existing thread
Bug: 7377541
Change-Id: I097f2288ebfc2b4a9782cbced19d9c36d0703acb
2012-11-07 13:02:08 -08:00
Irfan Sheriff
f264e8e34e am 567a2919: Merge "Stop supplicant and dhcp before start" into jb-mr1.1-dev
* commit '567a2919f3ad66dcb972e45411d18a4515d9f0b1':
  Stop supplicant and dhcp before start
2012-11-06 17:43:05 -08:00
Irfan Sheriff
511d5346ce Stop supplicant and dhcp before start
Bug: 7227463
Change-Id: Iaa0df7522edc38d25fae2bbda8d24490e997e733
2012-11-06 15:53:32 -08:00
Irfan Sheriff
b20dae4a8d am 4bfa1e99: Merge "Fix handling escaped chars in ssid" into jb-mr1-dev
* commit '4bfa1e99e2ce5aa96465872a159377102a5bb4cb':
  Fix handling escaped chars in ssid
2012-10-29 14:12:19 -07:00
Irfan Sheriff
11de9e5537 Fix handling escaped chars in ssid
Bug: 7427185
Change-Id: Ie669dff01af0865ea50305f3b48cf3f7af92cf6f
2012-10-29 10:01:38 -07:00
Irfan Sheriff
88d254cffb am 4e7f2ffe: Merge "Handle group tear down only at group removed event" into jb-mr1-dev
* commit '4e7f2ffe1791807636ac542f73016773c30daa92':
  Handle group tear down only at group removed event
2012-10-24 15:26:28 -07:00
Irfan Sheriff
2bc0c5fef2 Handle group tear down only at group removed event
Handling group removal at disconnect causes issues where supplicant keeps
the group and then the next invocation fails

Bug: 7403755
Change-Id: Iea7e5ec98486607f8e2c4a55be3743e0545a9da7
2012-10-24 15:05:56 -07:00
Irfan Sheriff
9998f77a75 am c48ca657: Merge "Fix driver stop handling" into jb-mr1-dev
* commit 'c48ca657f801b120e88c94287cdeecddc1a46e88':
  Fix driver stop handling
2012-10-23 10:49:14 -07:00
Irfan Sheriff
c48ca657f8 Merge "Fix driver stop handling" into jb-mr1-dev 2012-10-23 10:45:42 -07:00
Irfan Sheriff
e6464af000 Fix driver stop handling
Defer supplicant state change event so we do not miss it

Bug: 7394390
Change-Id: Ibae6cef6be42a6cb45dc20ba4fa5060d8e459217
2012-10-23 10:36:51 -07:00
Irfan Sheriff
5e7fcf372e am bf310d1f: Merge "Fix issues shown on CTS tests" into jb-mr1-dev
* commit 'bf310d1f6ef4ac167f66a4e31724c7766981bd84':
  Fix issues shown on CTS tests
2012-10-23 09:39:42 -07:00
Irfan Sheriff
51aec5ed5f Fix issues shown on CTS tests
Reset timeout for single interface architecture

Fix persistence reinvocation handling on the receive side

Bug: 7379336
Change-Id: Iacca0bd6dcbeb42af63bf2078e8cf3126e4e74a7
2012-10-23 09:25:37 -07:00
Irfan Sheriff
cacc479207 am 61e42262: Fix group join CTS test
* commit '61e42262000549b78843f0959043fec8367ed189':
  Fix group join CTS test
2012-10-19 12:40:40 -07:00
Irfan Sheriff
61e4226200 Fix group join CTS test
Bug: 7379336
Change-Id: I20ead7e8c0d855be523bdfd8d9cb9eaa4b8fcac1
2012-10-19 12:30:47 -07:00
Justin Koh
75c61d83bf Merge "Add appliance mode handling for WiFi Direct invitation dialog." into jb-mr1-aah-dev 2012-10-19 10:13:35 -07:00
Justin Koh
8f38f3c8d5 Add appliance mode handling for WiFi Direct invitation dialog.
Add appliance mode handling for WiFi Direct invitation dialog. Otherwise, no
way to accept connections.

Change-Id: Ic31b5bb25fed02848cf7c9e6418e21e9ab8b0cdd
2012-10-18 16:36:57 -07:00
Irfan Sheriff
62fa6de135 Do a clean shutdown of p2p
We were doing a lazy shutdown and stopping supplicant behind p2p's back.
Make sure we stop p2p, before we go ahead with shutting down.

Bug: 7368832
Change-Id: I941e9cd69d6f27532207d3dc00b03c55c0e6335c
2012-10-18 13:35:57 -07:00
Irfan Sheriff
90a80bb8ae Merge "Handle null BSSID" into jb-mr1-dev 2012-10-17 12:48:39 -07:00
Irfan Sheriff
d4a149d9d0 Merge "Frequency conflict handling" into jb-mr1-dev 2012-10-17 11:52:14 -07:00
Irfan Sheriff
9f452d0b5c Frequency conflict handling
We now show a dialog to user and let him handle whether to choose wifi
or p2p when there is a frequency conflict.

If user chooses to disable wifi tempoarily, we disconnect wifi until
p2p connection is established and removed.

Bug: 6590401
Change-Id: I73871ddcb3732ae61997d8771b6aa90ad56270af
2012-10-17 10:35:39 -07:00
Irfan Sheriff
edba852930 Handle null BSSID
The root cause of why bssid needs investigation, but for now,
we can avoid crashing wifiwatchdog.

When bssid is null, just treat it as a good link.

Bug: 7357232
Change-Id: I080dfc990f3412646976cdc6ef75112ab093d326
2012-10-16 18:10:38 -07:00
Irfan Sheriff
939caef712 Fix NPE
Bug: 7357742
Change-Id: I4d12d137b9d5ebf5c6739cbd4405de3f90a3d846
2012-10-16 13:24:19 -07:00
Irfan Sheriff
d86a532c52 Merge "Fix handling of lost device" into jb-mr1-dev 2012-10-15 10:23:23 -07:00
Irfan Sheriff
41de240465 Fix handling of lost device
We did not update a lost device notice to apps properly. This causes incorrect
connection initiation without a discovery which leads to failed invitation
requests to supplicant.

Bug: 7328758
Change-Id: If4b594c737d639d0f553188309319fba4e3ee7b7
2012-10-14 22:41:30 -07:00
Irfan Sheriff
fa3b6258be Cleanup on async disconnect and finalize
Bug: 7326726
Change-Id: I6cca47a70cc0f29c68f922618cdcc181fb919a05
2012-10-11 14:21:34 -07:00
Irfan Sheriff
17cf1f2bbc Fix build
had local changes from b/7318044

Change-Id: Idc6907d648a07d36f93dee859e361e9655cdd8e6
2012-10-09 17:13:37 -07:00
Irfan Sheriff
bbe461b78f Disable poor network avoidance by default
Bug: 7318044
Change-Id: Icf27e823453eeaba901aad6f3f8eedea242794f9
2012-10-09 15:49:33 -07:00
Irfan Sheriff
462ff630e4 Fix handling of hidden access points
We now get raw hex data from the supplicant and we convert it into
printable format.

For hidden access point, we always used to return a single empty string.
We need to make sure we maintain that behavior for apps to not start
displaying empty strings.

Bug: 7310749
Change-Id: I2599b9b5e15be91fc34e9af629ad893b1a0357fc
2012-10-09 10:56:47 -07:00
Irfan Sheriff
0befeb29bc Clear interface address and reset connections
With the broadcom architecture, the p2p interface on a group
was dynamic that would just go away. Clearing addresses
was thus not important before.

It is good to clear up the addresses and reset connections
when the group is removed.

Bug: 7282358
Change-Id: Ia1a94fce90f86b54abcc2d1f78a33524ef8045fa
2012-10-03 15:53:45 -07:00
Irfan Sheriff
17d9f6753a Make rssi state change sticky
NetworkController misses the rssi state at boot. It gets the wifi
connection status because it is sticky. The rssi state will remain
out of sync until the wifi state machine sends another update which may
not happen if rssi does not change significantly.

Make rssi sticky as well to make sure NetworkController has the last known
signal strength on wifi.

Bug: 6916156
Change-Id: Id7dd621c6dbc35d7354757c61aa18a3b1ba90593
2012-09-30 16:25:50 -07:00
Irfan Sheriff
ce6fc8d7a4 Revert setting GO idle time out
GO idle time out causes issues with multi-channel capable client which
can take longer to connect.

Use the supplicant default detection when acting as a GO.

Bug: 7254008
Change-Id: I6c40081cfa83ca0ddbb764640a48c92d69e609fd
2012-09-28 16:53:33 -07:00
Irfan Sheriff
ca1269fcb8 Fail fast on persistent failure
Other fixes

- 20s idle time out was added a work around for an earlier cavium issue. Reduce to 10s
- Reload network fix when supplicant issues an error for a persistent network

Bug: 7248890
Change-Id: I6cea7c88c75aaca40ddcb973404e93ec0f66cbc4
2012-09-27 17:17:24 -07:00
Jeff Sharkey
bdfce2ec05 First step towards cleaning up Global settings.
Remove all @Deprecated @hide settings, and clean up any stragglers.

Bug: 7232125
Change-Id: Ibf67093c728d4a28565129b923edb1701d3b2789
2012-09-26 17:18:49 -07:00
Dave Burke
ca68f4a32f Merge "Remove WifiStateTracker code tracking wifi p2p" into jb-mr1-dev 2012-09-25 23:30:48 -07:00
Irfan Sheriff
0f08b813bb Remove WifiStateTracker code tracking wifi p2p
This code was never supposed to have been there. It just remained
from an old implementation and actually results in
CS getting the wrong network info when both wifi and p2p are connected

Exposing p2p network type to CS needs to be done differently.

Bug: 7233984
Change-Id: I84a6091b8236cf5bdfcef3e7f626163d629e372d
2012-09-25 23:02:47 -07:00
Jeff Brown
b32e221699 Merge changes I332f020f,I632648ac into jb-mr1-dev
* changes:
  Update references to migrated global settings.
  Handle user switched for settings changes.
2012-09-25 17:03:11 -07:00
Irfan Sheriff
e79275a9f6 Merge "P2p fixes" into jb-mr1-dev 2012-09-25 15:54:47 -07:00
Jeff Brown
bf6f6f9de7 Update references to migrated global settings.
Fixed one setting that was migrated but not marked deprecated.

Removed a hidden setting that is no longer used by the new
power manager service.

Bug: 7231172
Change-Id: I332f020f876a18d519a1a20598a172f1c98036f7
2012-09-25 15:27:51 -07:00
Irfan Sheriff
c41096e1b4 P2p fixes
- Add wfdInfo details in group to allow display stack to filter
- Handle provision discovery failure and reset
- Do a discovery after group removal
- Handle failure to reinvoke and fall back to negotiation
- Avoid multiple REMOVE_GROUP calls that lead to removal
 of persisted network

Bug: 7210856
Change-Id: Ia2e613e9b1191b919a185f0411439341e2e151bc
2012-09-25 14:44:00 -07:00
Irfan Sheriff
59358536d2 Update doc on getConfiguredNetworks
BUg: 7223590
Change-Id: Id92699ae48ea75f94638fcc3bd776b863911985b
2012-09-24 17:36:19 -07:00
Irfan Sheriff
d36adc31ce P2p fixes
- NPE fixes
- Remove group on CTRL-EVENT-DISCONNECTED since the supplicant sometimes misses
the group removed event
- Fix the pattern match since we sometimes end up creating group without passphrase

Bug: 7119140
Bug: 7210558
Change-Id: I2cf0be073aaaaa9b931ea9a79b0bf4bd6a2b32ff
2012-09-23 15:27:50 -07:00
Irfan Sheriff
99766cf40e Use min group owner intent for concurrency
Our device only supports STA & GC concurrency

Change-Id: I4f16c959a6f4e7ad5610dcae67be830d741f162c
2012-09-20 17:18:20 -07:00
Irfan Sheriff
7d0882be6d Merge "send connection broadcast on client disconnect" into jb-mr1-dev 2012-09-18 15:26:16 -07:00
Irfan Sheriff
5ef9c59fff send connection broadcast on client disconnect
Bug: 7188646
Change-Id: I69f2c2581004b08730407930fb056cc1fe54feec
2012-09-18 15:17:56 -07:00