217585 Commits

Author SHA1 Message Date
Bartosz Fabianowski
00144e8de3 Remove wifiConfiguration.isVisibleToUser()
This method seemed like a good idea at the time (quickly check whether a
network configuration is visible to a given user). However, once managed
profiles come into play, this simple method is no longer appropriate.
There is a more comprehensive replacement at
com.android.server.wifi.WifiConfigurationUtil.isVisibleToAnyProfile()
now and this method here can go.

BUG:26867426

Change-Id: Ia66aa6f74003a16eca24c5088d3aba8e0c9f8140
2016-02-12 11:12:45 +01:00
Erik Kline
3b74289fdf Duplicate DhcpStateMachine public constants into DhcpClient
This is so we can ultimately delete DhcpStateMachine altogether.

Bug: 24837343
Bug: 26991160
Change-Id: If116639e5f72c97cfc67f748dc5f6433dccd9cf0
2016-02-12 17:10:15 +09:00
Tyler Gunn
989594638a Merge "IMS RAT Reporting in Registration Unsol" into mm-wireless-dev 2016-02-12 03:40:08 +00:00
Omkar Kolangade
d4e44bbdbf IMS RAT Reporting in Registration Unsol
Adding a parameter to the IMS registration complete
and progressing callbacks, allowing frameworks to be
notified of the radio access technology over which
IMS is registered.

Bug: 21902225
Change-Id: I271f2fca299585302a67d0f5476f6fac3e7099dd
2016-02-11 23:51:41 +00:00
Etan Cohen
7d6c389edf NAN: Disable all DBG flags.
Change-Id: Ib60cf3c9fd4c8dbf973e118d94340fbfd890a738
2016-02-11 15:00:57 -08:00
Paul Stewart
be5084b87a Properly map EAP-GTC for TTLS
The "auth=GTC" method was never valid for the TTLS outer
authentication for wpa_supplicant.  Instead, to perform
GTC authentication within TTLS, we should use EAP-GTC.

This CL performs this mapping within WifiEnterpriseConfig.
It accomplishes this by making the EAP Method and Phase 2
Method parameters a part of the internal object state
instead of maintaining this value within the mFields
hashmap.

Further, the problematic "getFields" method is removed
since as this actually provided read/write access to the
entirety of the WifiEnterpriseConfig's internal state.
This was understandably suboptimal.  All callers have
been updated to either use getFieldValue() or to call
a newly added getSupplicantFields() / setSupplicantFields()
methods which make the WifiEnterpriseConfig object a sole
arbiter for the mapping between its internal state and
wpa_supplicant.

In the future it might be good to change this logic to
strip WifiEnterpriseConfig of all of the string hashmap
entirely, leaving WifiEnterpriseConfig as a "struct"
and move supplicant mappings to WifiConfigStore.

Bug:26400915
Test:runtest frameworks-wifi # New unit test in the same topic
Test:cts-tradefed run cts -d --class android.net.wifi.cts.WifiEnterpriseConfigTest
Change-Id: I1e09fb3f1f27b2ba844acbed14ec0f570e915b80
2016-02-11 14:52:58 -08:00
Paul Stewart
4e9e3d02e0 Merge "WifiManager: Return empty scan list on remote exception" into mm-wireless-dev 2016-02-11 20:01:18 +00:00
Paul Stewart
ed9297991a WifiManager: Return empty scan list on remote exception
In the (hopefully rare) situation where there is a remote exception
from a call to getScanResults(), do not pass null back to callers.
Nobody expects this, and failures that occur as a result can distract
from the real problem (e.g., the system server crashing).  This CL
now returns an empty list.

BUG=27139097
TEST=None

Change-Id: I637eae1fa8ac1a1bc2b76dea8628359b5dec06e1
2016-02-11 11:16:17 -08:00
Jeremy Joslin
3d4acbf5fb Merge "New systemapi to mark a wifi network as metered." into mm-wireless-dev 2016-02-11 15:03:52 +00:00
Erik Kline
ef1f39abff Use IpManager.ifname as the tag in log messages.
Bug: 26991160
Change-Id: Idc9231819298b65da3cc3baa88f1f0cd18ab6df7
2016-02-11 21:07:07 +09:00
Jeremy Joslin
7a598d3d80 New systemapi to mark a wifi network as metered.
The implementation will come after the wifi code base has stablized.

BUG:27120794
Change-Id: I6a8140dae45dcd7ec70ac0c51b9513b907a41b63
2016-02-10 17:20:22 -08:00
Sanket Padawe
de0cc7f4d3 Merge "Add OEM specific error code space which can by used to replace Generic errors." into mm-wireless-dev 2016-02-11 00:04:01 +00:00
Mitchell Wills
5a982939d2 Remove REPORT_EVENT_CONTEXT_HUB gscan option
Since all scan results will now be reported to the context hub this flag
is no longer needed.

Change-Id: I21c157a31fe26169606f6f53e8e0ce44d57c5ca5
2016-02-10 14:37:27 -08:00
Erik Kline
f94dc18746 Merge "Incorporate historical WifiStateMachine notions of provisioning." into mm-wireless-dev 2016-02-10 21:15:11 +00:00
Ritesh Reddy
d9c4bc0c4d Merge "Enabled Network Policy Backup/Restore." into mm-wireless-dev 2016-02-10 19:37:17 +00:00
Erik Kline
990fc4968d Incorporate historical WifiStateMachine notions of provisioning.
Also: considerably expand logging capabilities.

Bug: 26991160
Change-Id: I36c3c1d2158ffd178e8ce163b8799d62938f39c7
2016-02-11 03:21:48 +09:00
Ritesh Reddy
c4a1188afd Merge "Enabling SoftAP Configuration Backup." into mm-wireless-dev 2016-02-10 17:48:31 +00:00
Erik Kline
106cdf6c94 Expose measurement results to interested callers.
With this it's possible for callers to:

    Network network = ...
    LinkProperties lp = ...

    NetworkDiagnostics netdiag = new NetworkDiagnostics(network, lp, 5000);
    netdiag.startMeasurements();
    netdiag.waitForMeasurements();

    boolean result = true;
    for (Measurement m : netdiag.getMeasurements()) {
        if (!m.checkSucceeded()) {
            result = false;
            // Additional error handling here.
        }
    }

    return result;

Bug: 21832299
Bug: 26780890
Change-Id: Iaf7ff029e2c6a998b574c23d0dcde8d57a467a22
2016-02-11 00:28:27 +09:00
Randy Pan
2750b41d0b Merge "Add RSN Information Element ID" into mm-wireless-dev 2016-02-09 19:13:33 +00:00
Samuel Tan
8629390701 Merge "WifiEnterpriseConfig: allow getting and setting of ca_path" into mm-wireless-dev 2016-02-09 18:18:05 +00:00
Sanket Padawe
ce4f22e84e Add OEM specific error code space which can by used to replace Generic errors.
BUG=27038563

Change-Id: I125e083e0a3145ac09806a84ea8b53864c04dc22
2016-02-09 10:02:02 -08:00
Jan Nordqvist
cf132a1bbc Merge "Fixed bad auto-generated method name." into mm-wireless-dev 2016-02-09 17:24:21 +00:00
Wei Wang
03a6b18350 Merge "Enable RTT Responder Role (1/4)." into mm-wireless-dev 2016-02-09 01:07:34 +00:00
Ritesh Reddy
adca34a0d6 Enabled Network Policy Backup/Restore.
Added Backup Restore specific NetworkPolicySerializer
to NetworkPolicy Class and related classes.

Change-Id: I2a11e2afae8dd9e0ee0c3356e669a73f6a1361af
2016-02-08 10:41:21 +00:00
Ritesh Reddy
aeb4c06013 Enabling SoftAP Configuration Backup.
SoftAp Conf is backed up as a serialized WifiConfiguration
object.

Change-Id: Ib7f4d130600313a67b710b45df274e15f0baad24
2016-02-08 10:33:13 +00:00
Paul Jensen
5f3dec374f Fix FrameworksServicesTests.apk to include libc++.so
libc++.so is no longer accessible to the app, so it must be
bundled in the app. This should get ApfTest passing again.

Change-Id: Ide004cb84f7f50feffb8f5acb46b7001dcffd208
2016-02-07 21:58:09 -05:00
Tyler Gunn
6c4aac0bde Merge "IMS: Constants For Audio Quality, Supp. Services" into mm-wireless-dev 2016-02-05 22:13:32 +00:00
Etan Cohen
02033f800b Merge "NAN: for failed configurations - added configuration which failed." into mm-wireless-dev 2016-02-05 18:27:08 +00:00
Jan Nordqvist
afebe357fb Fixed bad auto-generated method name.
Change-Id: Ic60b0658f0b6a6e06dc9cf82299fe95bbd308972
2016-02-05 17:16:04 +00:00
Randy Pan
c0e86b2e90 Add RSN Information Element ID
Bug: 26908033
Change-Id: I9d7aa7642c51ea59a58e8facc8ad7af681c32b23
2016-02-04 14:56:13 -08:00
Paul Jensen
514a3bfde6 Fix FrameworksServicesTests.apk to include libnativehelper.so
libnativehelper.so is no longer accessible to the app, so it must be
bundled in the app. This should get ApfTest passing again.

Change-Id: Ie4fe66e44d46ddb12b3c7ac5c91118a69a8ebe2e
2016-02-04 09:11:40 -05:00
Jan Nordqvist
7a504417f2 Fixed bad serialization code in ScanResult.
Bug: 26964162
Change-Id: Ie9ad65936ab5173533773e5a711bcb81799acfb5
2016-02-03 15:00:57 -08:00
Omkar Kolangade
66742f217e IMS: Constants For Audio Quality, Supp. Services
Adding:
1. Constants for audio quality (EVS standard).
2. Service class memeber to CallForwardInfo.
3. Call Fail Cause for emergency call and handover
   scenarios, and supplementary services.

Change-Id: I7cc23acd01144def0bb725c4f6312318421027c8
2016-02-03 14:24:45 -08:00
Jan Nordqvist
fd600b1113 Merge "New System APIs for Passpoint r2 app." into mm-wireless-dev 2016-02-03 19:57:00 +00:00
Wei Wang
564527dc5a Enable RTT Responder Role (1/4).
Change-Id: Ic1cd9056b3ebc67759d628a45b34287e5b0320b6
2016-02-03 11:32:50 -08:00
Vinit Deshpande
a772f0cf34 New System APIs for Passpoint r2 app.
Change-Id: I09428e9a393999f43aefe5efd77cffe4b1b17da5
2016-02-03 11:28:21 -08:00
Paul Jensen
44307adcf3 Merge "Android packet filtering program interpreter test & program generator" into mm-wireless-dev 2016-02-03 16:48:43 +00:00
Paul Jensen
d38fb7662d Android packet filtering program interpreter test & program generator
Change-Id: I17951bd6320b9eb3b6c43f2ae37f62c2025705c1
2016-02-03 10:19:13 -05:00
Erik Kline
6076cb0b85 Ignore link properties updates when nothing actually changed.
Change-Id: Ia3c0a652cb3b67707a5c5a0bb40f991ef1e6f777
2016-02-03 22:42:54 +09:00
Erik Kline
8deac7793c Partial unification of DHCPv4 and static IPv4 configuration codepaths
Change-Id: Ic796f9b7bb853a332175c34e0f557588efb6247a
2016-02-03 22:42:53 +09:00
Erik Kline
8afa558c52 Move DHCPv4 mechanics into IpManager
Bug: 17345682
Change-Id: I2c3d9d665ff3c38f02084c0cf86cd76035e7b0aa
2016-02-03 17:23:45 +09:00
Etan Cohen
8340beca62 NAN: for failed configurations - added configuration which failed.
Bug: 26880665
Change-Id: I3c43edfc1a6ba43d7cc393a00c4f41fd2e245f2d
2016-02-02 16:30:16 -08:00
Samuel Tan
c136cf9539 WifiEnterpriseConfig: allow getting and setting of ca_path
Add getters and setters for WPA supplicant's ca_path directive.

BUG: 26879191
Change-Id: Iad2857ddf7f09dd918637f99f740932e1fb7187c
TEST: WifiEnterpriseConfigTest CTS test
2016-02-02 15:57:31 -08:00
Nathan Harold
c0e87a55f2 Update RILConstants errors to match ril.h
-Mirror changes from I997da9a15225716786c53b7457b498d4628e76be
-Add an error code for rate-limited requests

Bug: 26767732
Change-Id: Ic094fdf39d33a702e1799e099c86af5238deb226
2016-02-02 13:37:59 -08:00
Tyler Gunn
8562fb281c Merge "Add new telephony disconnect cause for video calls when tty enabled." into mm-wireless-dev 2016-02-02 17:42:39 +00:00
Erik Kline
1e91e4ebb6 Support static IP configuration internally
Also, stop passing around "reason" for IPv4 provision success
or failure.

Bug: 17345682
Change-Id: I4c4b22977a93048e0b291206721d0ccc77cfaaf2
2016-02-01 22:32:21 +09:00
Erik Kline
a636761bd6 Initial refactoring to group IP-related elements into an IpManager
Bug: 17345682
Change-Id: I88f3f4bd32d18cd8d4f1404493648c8bcc1deeec
2016-02-01 17:59:47 +09:00
Mitchell Wills
934b3b9c6c Merge "Add a hidden anqp field to ScanResult" into mm-wireless-dev 2016-01-29 23:33:50 +00:00
Tyler Gunn
0384c53c4e Add new telephony disconnect cause for video calls when tty enabled.
Due to the way the radio works, it isn't possible to make a video call
when tty is enabled.  Adding a new telephony disconnect cause to handle
this case.
Note: This was previously handled directly in Telecom which is not
correct.

Bug: 20090652
Change-Id: I90b7d6486fe00c84efe7bb1c0f30edf33a1502bc
2016-01-29 08:52:29 -08:00
Mitchell Wills
9eeba37851 Add a hidden anqp field to ScanResult
This allows ScanResults from WifiScanner to contain anqp data

Bug: 26525037
Change-Id: I54beb3c4e0b8bff06a8255d2dc53439941be3c66
2016-01-28 23:10:30 -08:00