Commit graph

13 commits

Author SHA1 Message Date
Jimmy Chen
5cbf6276f5 Wifi: support 60GHz (Wigig) band
Update WifiBand enum with new bands to support 60GHz band:
BAND_60GHZ - 60GHz band
BAND_24GHZ_5GHZ_6GHZ_60GHZ -
  2.4 GHz + 5 GHz (no DFS) + 6GHz + 60GHz
BAND_24GHZ_5GHZ_WITH_DFS_6GHZ_60GHZ -
  2.4 GHz + 5 GHz with DFS + 6GHz + 60GHz

Bug: 147495506
Test: atest VtsHalWifiV1_0TargetTest VtsHalWifiNanV1_0TargetTest VtsHalWifiApV1_0TargetTest \
            VtsHalWifiV1_1TargetTest \
            VtsHalWifiV1_2TargetTest VtsHalWifiNanV1_2TargetTest \
            VtsHalWifiV1_3TargetTest \
            VtsHalWifiApV1_4TargetTest VtsHalWifiNanV1_4TargetTest VtsHalWifiRttV1_4TargetTest
Change-Id: I7c7cc514b88b999cc33e9573ac65910c0c53417a
2020-09-02 10:56:56 +08:00
Jimmy Chen
1bdf1a79f4 Wifi: add new chip capability WIGIG
Add a new chip capability WIGIG, for chips that
can operate on the 60GHz band. This capability is
mapped to the vendor HAL feature WIFI_FEATURE_INFRA_60G.

Bug: 147522435
Test: atest VtsHalWifiV1_0TargetTest VtsHalWifiNanV1_0TargetTest VtsHalWifiApV1_0TargetTest \
            VtsHalWifiV1_1TargetTest \
            VtsHalWifiV1_2TargetTest VtsHalWifiNanV1_2TargetTest \
            VtsHalWifiV1_3TargetTest \
            VtsHalWifiApV1_4TargetTest VtsHalWifiNanV1_4TargetTest VtsHalWifiRttV1_4TargetTest
Change-Id: I37b1121c62acadb621dca5e38671c78817f592e1
2020-09-02 10:56:56 +08:00
TreeHugger Robot
30f8aa988b Merge "Make wifi hidl interfaces available to the platform" 2020-08-29 19:22:48 +00:00
Colin Cross
81dec9cfc4 Make wifi hidl interfaces available to the platform
The wifi hidl interfaces need apex_available: ["com.android.wifi"]
because the generated java interfaces are needed by the
com.android.wifi apex, but that causes the C interfaces to not
be available to the platform.  The unavailability was hidden
by b/154888298.  Explicitly mark them with "//apex_available:platform".

Bug: 154888298
Test: m checkbuild
Change-Id: I8959ec1454cce6817802bcc1785a34ba56adc99c
2020-08-28 15:05:59 -07:00
Nate Jiang
adce22ea9d resolve merge conflicts of 0bb061f863 to master
Change-Id: I0b13f3fc6edcfb2d5982ec13728753906f158c30
2020-08-27 20:46:32 +00:00
Oscar Shu
7f5630a638 Merge "Attach timestamp to ringbuffer generated files" 2020-08-18 20:03:18 +00:00
Paul Chen
70edf3aa19 Merge "resolve merge conflicts of c9b0df94dd to master" 2020-08-18 04:57:10 +00:00
xshu
f392fb4688 Attach timestamp to ringbuffer generated files
The file last modified time expressed in seconds from epoch is
attached to only the archived version of the file that is passed
to dumpstate.
Files stored on the device will still have no timestamp in their name.

Bug: 159808285
Test: manual verification
adb root
adb shell lshal debug android.hardware.wifi@1.5::IWifi >> archive.cpio
cpio -iv < archive.cpio
Verify that a timestamp is attached to the filename at the end:
connectivity_events_rbhOVjYpDdNY-1597364258

Change-Id: Iee0c2b37fc1d27cb979ec9125461416cd2d02549
2020-08-13 17:39:37 -07:00
Paul Chen
c15cc159d1 resolve merge conflicts of c9b0df94dd to master
Change-Id: Ifa847c55bafb9f268df08f009688398670a800f7
2020-08-12 05:51:22 +00:00
Jimmy Chen
2dddd79e16 Wifi: support multiple WIFI chips
The WIFI HAL API has support for multiple WIFI chips
(IWifiChip instances) however the implementation
is hard-coded to support only a single WIFI chip.
This change reworks the implementation so multiple
WIFI chips will be supported.
Support for multiple chips is based on the concept
that each chip is represented by its own vendor HAL
library.
The implementation will look for descriptor
files for vendor HAL libraries under
/vendor/etc/wifi/vendor_hals. It will parse
descriptors, dynamically load vendor HAL libraries
and create WifiLegacyHal and WifiChip objects for
each loaded vendor HAL library.
One of the descriptors should be marked with "primary"
flag. The implementation will create the first WifiChip
object for this library. Typically it is the one
providing the best WIFI functionality, which was
previously used as the only WIFI chip.
Additional support is added inside WifiChip and
WifiLegacyHal for getting available chip modes
and concurrency combinations from the vendor HAL
if available, and allowing the chip to override
network interface name when creating interfaces.
The mechanism for getting chip capabilities is
improved to allow getting chip-global capabilities,
which are independent of any created interfaces.
For example, if the framework needs to start
a SoftAP on the 60GHz band, it needs to find a
chip which supports this band, but before creating
any interface on the chip. The new mechanism allows
this.

Bug: 146922967
Test: atest VtsHalWifiV1_0TargetTest VtsHalWifiNanV1_0TargetTest VtsHalWifiApV1_0TargetTest \
            VtsHalWifiV1_1TargetTest \
            VtsHalWifiV1_2TargetTest VtsHalWifiNanV1_2TargetTest \
            VtsHalWifiV1_3TargetTest \
            VtsHalWifiApV1_4TargetTest VtsHalWifiNanV1_4TargetTest VtsHalWifiRttV1_4TargetTest
Change-Id: Ibdff93ea56aff186d4b5361ac77f6f448a0dfd45
2020-08-11 14:58:07 +08:00
Jimmy Chen
7a82ad8c6a Wifi: fix bug during WIFI HAL stop
In WifiChip::invalidateAndRemoveDependencies, the
iterator was not implemented correctly as it was
deleting objects while iterating. This could cause
the entire WIFI HAL to be restarted when disabling
WIFI.

Bug: 146922967
Test: atest VtsHalWifiV1_0TargetTest VtsHalWifiNanV1_0TargetTest VtsHalWifiApV1_0TargetTest \
            VtsHalWifiV1_1TargetTest \
            VtsHalWifiV1_2TargetTest VtsHalWifiNanV1_2TargetTest \
            VtsHalWifiV1_3TargetTest \
            VtsHalWifiApV1_4TargetTest VtsHalWifiNanV1_4TargetTest VtsHalWifiRttV1_4TargetTest
Change-Id: Id86f1a662684467d3b86a79b271144ac3055d0a0
2020-08-11 14:18:59 +08:00
xshu
0a0fe51a6a Ringbuffer stops logging after wifi toggle
Forces ringbuffer updates before writing zipped files to bugreport.
Also properly resets the ringbuffer callback when it's deregistered.

Bug: 161307741
Test: make vts -j64 && vts-tradefed run commandAndExit vts --module VtsHalWifiV1_0Target
Test: manual verification with triggering a bugreport
Test: manual verification with wifi toggles
Change-Id: I74deffda917054e20cfcf4f0dd90d778626c89d3
2020-07-23 19:24:35 -07:00
Jimmy Chen
d460df3f3b wifi: upgrade wifi interface to 1.5
Only a root interface is added and update relevant code.

Bug: 160834354
Test: atest VtsHalWifiV1_0TargetTest VtsHalWifiNanV1_0TargetTest VtsHalWifiApV1_0TargetTest \
            VtsHalWifiV1_1TargetTest \
            VtsHalWifiV1_2TargetTest VtsHalWifiNanV1_2TargetTest \
            VtsHalWifiV1_3TargetTest \
            VtsHalWifiApV1_4TargetTest VtsHalWifiNanV1_4TargetTest VtsHalWifiRttV1_4TargetTest
Change-Id: Ifdffa3a6996eca1d3c4b499258896cdfe5eb9c87
2020-07-22 13:20:39 +08:00