This commit adds a constant WIFI_BAND_ALL to refer to bit mask
for all bands.
It also adds a method to check on if previous scan covers all
supported bands.
Bug: 156053158
Test: atest android.net.wifi
Change-Id: I426dd3940b7efd67eaf6e12f862a1e3f0ebc177a
Channel frequency ranges for the three bands (2.4G, 5G, and 6G) are used
in different places with separate definitions or via literal numbers.
Also, the values are not accurate and sometimes not consistent.
This commit defines those ranges in a single place for use of other
classes. It also adds some utility methods that use those definitions.
Bug: 153896822
Test: atest android.net.wifi
Change-Id: Ifd19e245fd808c06d48d7557e30be3e92a9e7ec5
Revert "opt/net/wifi/tests: Run mts-wifi on AOSP builds"
Revert submission 10814415-mts-wifi-com-androi-wifi
Reason for revert: Workaround no longer necessary: b/152559881#comment2
Reverted Changes:
I11baae67e:frameworks/base/wifi/tests: Run mts-wifi on AOSP b...
I66febcbb2:opt/net/wifi/tests: Run mts-wifi on AOSP builds
Bug: 152559881
Test: in continuous runs
Change-Id: I1d5f4d312f4e15ae5e2e56965b3fc76fdefcdcea
This adds checking of module api compatibility to the individual module
api rules. Until now, this checking has been done via the monolithic
metalava runs which we are aiming to get rid of.
Now is a good time to do this because we can compare them to the just
finalized version 30 API, which we have no diffs with. Baseline the
existing wifi failures that metalava fails to find in the previous API.
Bug: 144149403
Test: m checkapi
Change-Id: Id222895daa3a769c265965b052a17d5a1ca18462
These were previously being suppressed by doclava but with this change,
all failures are fixed and the suppression logic has been removed.
To fix the issues, there were a few possible changes made:
- broken reference to a public API (such as incorrect parameters): fixed
- unnecessary @link inside an @see tag: fixed
- @see referring to an @hide or @SystemApi: reference removed
- broken references to inner class constructors
- worked around by fully qualifying the constructor
Bug: 6963924
Test: make doc-comment-check-docs
Exempt-From-Owner-Approval: cherry-picked from master
Change-Id: Ifbdce2de96cdffa560bd90f549fa7184d1f9af85
Merged-In: Ifbdce2de96cdffa560bd90f549fa7184d1f9af85
(cherry picked from commit e0624c7a40)
This makes the filenames of the disted artifacts (api txts and stubs)
match the module name of the modules they're from. This matches the
naming scheme used by java_sdk_library, which should make the future
transition to this build rule easier.
Bug: 149293194
Test: lunch sdk_phone_armv7 && m sdk dist && find out/dist/apistubs
Change-Id: I076f30931bf2524d57703873cd7de25b3f23b457
Reason code used to send out a disconnect when SAP is being shutdown.
Bug: 154286607
Test: Compiles
Change-Id: I3cb9b97960c1c9002435f23ba72ed14005a2d814
This was the last set of wifi dependencies that were
not jarjar'ed.
Bug: 153596226
Test: Device boots up and connects to wifi networks
Test: Both the commands below return empty list:
a) dexdump service-wifi.jar | grep 'Class descriptor' |
grep -v -e "com/android/server/wifi" -e "com/android/wifi/x/"
b) dexdump framework-wifi.jar | grep 'Class descriptor' |
grep -v -e "android/net/wifi" -e "com/android/wifi/x/"
Change-Id: Ib214b130a740c1840890d5183ab8be594d3af7c8
Differentiation between framework-wifi & service-wifi included static
dependencies were getting a little hard to manage. Also, use
com.androd.wifi.x@0 to preserve the original package name.
Bug: 153697614
Test: Device boots up and connects to wifi networks
Test: Manual inspection using dexdump on both framework-wifi.jar & service-wifi.jar
Change-Id: Ifa1efaa772a708c0d40d2d9be415d0c42b71b332
Renaming android.hardware.wifi package also renames the various wifi
PackageManager feature flags. So, refine it to only match the HIDL
stubs.
Bug: 153697614
Test: Manual
a) Added a log to check for rtt, p2p, aware feature flags in Wifiservice
b) Returns false before the change.
c) Returns true with the change.
Test: Manual
dexdump and ensured that all the HIDL stubs are renamed.
Test: Device boots up and connects to wifi networks.
Test: Cts-Verifier aware RTT test does not fail immediately.
Wi-Fi Aware test --> Discovery with ranging --> Publish.
Change-Id: I43ac3195304a4bd2d8e725a4302eb4239290396f
Bug: 153596226
Test: Device boots up and connects to wifi networks.
Test: Manual inspection of classes included in framework-wifi &
service-wifi using dexdump
Change-Id: Ic31cdae62761110eeb4834a588b36328de19adb8
This is statically linked by the wifi service, so should be jar-jar'ed
out to a separate namespace to avoid other components in system_server
calling our copy of the stubs.
Bug: 151475926
Test: Device boots up and connects to wifi networks.
Change-Id: I79247b72a3b5f6dabf38c3cb9705fb5ca0aa729f
In Android 10, ClientModeImpl would always attach a
WifiNetworkAgentSpecifier for all wifi network agents created
(regardless of whether it was created in response to a specific request
or not). In Android 11, we changed that behavior to ensure that we
attach the WifiNetworkAgentSpecifier only for agents created in response
to a specific request. However, that is exposing a bug in
WifiNetworkSpecifier matching. WifiNetworkSpecifier attached requests
should not satisfy a generic wifi network agent. Fix the
canSatisfiedBy() matching to ensure that it only matches
WifiNetworkAgentSpecifier (or itself which cannot happen during network
matching)
Bug: 149500993
Test: Add a saved network manually while running the failing ACTS test:
act.py -c wifi_manager_cross.config -tb dut-name -tc WifiNetworkRequestTest:
test_match_failure_with_invalid_ssid_pattern
Test: atest android.net.wifi
Change-Id: I38d154bd0a5685fcc38de891256a8e1d4b8cfbb5
Since Telephony is no longer a module, `framework-telephony-stubs`
is already part of `module_current`. Only stubs from other modules
need to be explicitly included.
Bug: 151092414
Test: compiles
Change-Id: Iedf05a82dea9e6831b6253dfcb213162d2b9e127
Also, explictitly mark OVERRIDE_NOT_METERED in WifiConfiguration
when suggestion is not metered.
Bug: 153127005
Test: Compiles
Change-Id: I917de747406167fc38faa05e15d98a9b867a6ce8
It is not needed anymore, and is replaced by "unsupportedappusage" library.
Bug: 145132366
Test: m
Change-Id: I589b3f80979e38ff81ff5f0ad2de1ae8df9c9f00
Merged-In: I589b3f80979e38ff81ff5f0ad2de1ae8df9c9f00
Exempt-From-Owner-Approval: clean up
Makes it convenient to change all stubs from a central place.
Bug: 149293194
Test: m framework-wifi-stubs{public,system,module_libs_}api
Change-Id: Ie857558b507c90dd46a7777c82f14d7d45422222
PS: Remove BSSID convert to WifiConfiguration since BSSID field doesn't
use in WifiConfiguration usage on SoftAp.
Bug: 152180102
Test: atest frameworks/base/wifi/test/
Change-Id: Id781ff6af222fe1d557560feaa44b5d2761c3a81
Bug: 151888061
Test: Manual verification (ensured that this method returns null after
first reboot)
Change-Id: Ie8ad397c7b68e35cfa7b696ef22d84f376cf3fe7
This is a temporary workaround for mts-wifi to
run on AOSP builds, since on those devices the
Wifi package name is `com.android.wifi` and not
`com.google.android.wifi`.
Bug: 151836001
Test: continuous runs
Change-Id: I11baae67e10638acd8c24ae0fab92e5b2bfca6e4