Commit graph

1258 commits

Author SHA1 Message Date
TreeHugger Robot
09a3f19711 Merge "Fix VtsHalWifiSupplicantV1_3TargetTest fail" into stage-aosp-sc-ts-dev am: 3dedd1a0fe am: dc8303b4ae
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15847170

Change-Id: I4d04523646e2a801b6aeebdd9c58eb805d55781f
2021-09-17 23:31:58 +00:00
Roshan Pius
eff16962db vts(wifi): Stop wifi fully instead of stopping framework am: 874239047a am: 356437d474
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15847168

Change-Id: Id0ff57dbbe32367a1b27d8b88ed9f324c361babe
2021-09-17 23:31:57 +00:00
TreeHugger Robot
3dedd1a0fe Merge "Fix VtsHalWifiSupplicantV1_3TargetTest fail" into stage-aosp-sc-ts-dev 2021-09-17 23:05:25 +00:00
henry-th.yeh
12ab21813b Fix VtsHalWifiSupplicantV1_3TargetTest fail
Remove disable_framework option to pass the
stopWifiFramework procedure.

Bug: 173081502
Bug: 199444489
Test: Build VTS
Test: run vts -m VtsHalWifiSupplicantV1_3TargetTest
-t PerInstance/SupplicantStaIfaceHidlTest#RegisterC
allback_1_3/default_default_0 --abi armeabi-v7a

Change-Id: I6813905b6c804c1c93ea59db9d8c255c2f7c45d9
2021-09-16 21:15:16 +00:00
Roshan Pius
874239047a vts(wifi): Stop wifi fully instead of stopping framework
Stopping entire framework can cause other essential services to be
stopped. When wifi is stopped, it does not interact with any of the
wifi HAL's.

Bug: 168278011
Bug: 199444489
Test: atest --iterations 10
VtsHalWifiSupplicantP2pV1_0TargetTest
VtsHalWifiSupplicantP2pV1_1TargetTest
VtsHalWifiSupplicantP2pV1_2TargetTest
VtsHalWifiSupplicantP2pV1_3TargetTest
Change-Id: Ia93e78cf4c147e42dd3d68e24a582c0c1af15899
2021-09-16 21:15:01 +00:00
Treehugger Robot
09d0934bcb Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces" am: 60ac26c3e0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1822478

Change-Id: I479d92e02e2bcf14194aee5b2506c51b0a2f2b10
2021-09-09 20:44:48 +00:00
Bob Badour
8ad43c4e7a [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  wifi/hostapd/aidl/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I0178f1f02cee7046256a3e4425e5c1fbabe6da85
2021-09-08 14:04:16 -07:00
Linzhao Ye
279105a643 Merge "Add Wifi HAL hostapd AIDL interface definitions." am: 7218fea0eb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1811377

Change-Id: Ib9671d914729a0494d3483e46a47fa79da1fd83e
2021-09-07 17:35:53 +00:00
Chris Ye
d13f7b5495 Add Wifi HAL hostapd AIDL interface definitions.
Add AIDL version of Wifi HAL hostapd interfaces, converted from
android.hardware.wifi.hostapd@1.3 HIDL interfaces.

Bug: 194806512
Test: m android.hardware.wifi.hostapd-update-api
Change-Id: I1035f8bc9171e59967448fa438f2cc79ad53c066
2021-09-01 23:17:16 -07:00
Prabir Pradhan
2dd55590fd Undefine NAN after including it in Looper.h
Looper.h needs to include the header for unordered_map, which itself
includes math.h, which defines the macro NAN. Some HALs use enums called
NAN, which causes a build error if the NAN macro is defined. We need to
undef NAN in these cases after including Looper.h.

Bug: 195020232
Test: presubmit: checkbuild
Merged-In: I63bba8ea809a12571ddc88cd1d20f2adeedf0b30
Change-Id: I63bba8ea809a12571ddc88cd1d20f2adeedf0b30
(cherry picked from commit dda604440b)
(cherry picked from commit 84a19f64f5)
2021-08-27 11:04:36 +00:00
Prabir Pradhan
b99a3ccddf Undefine NAN after including it in Looper.h
Looper.h needs to include the header for unordered_map, which itself
includes math.h, which defines the macro NAN. Some HALs use enums called
NAN, which causes a build error if the NAN macro is defined. We need to
undef NAN in these cases after including Looper.h.

Bug: 195020232
Test: presubmit: checkbuild
Merged-In: I63bba8ea809a12571ddc88cd1d20f2adeedf0b30
Change-Id: I63bba8ea809a12571ddc88cd1d20f2adeedf0b30
2021-08-18 10:24:55 -07:00
Jimmy Chen
237a6ea5ea wifi: use 1.4 ISupplicant object for 1.4 vts tests
This would ensure that 1.4 vts tests are run with
ISupplicant 1.4 support.

Bug: 194979754
Test: atest VtsHalWifiSupplicantV1_4TargetTest
Change-Id: Ifaa3e1bb27f1df350b83fb7a4c05b6251a7c2d10
2021-08-05 11:32:17 +08:00
Oscar Shu
45cb33bf7a Merge "Clear ringbuffer after dumping to file" into sc-dev 2021-07-12 16:48:43 +00:00
xshu
c905ea66d4 Clear ringbuffer after dumping to file
Clear the in-memory ringbuffer after writing to file.

Bug: 193007899
Test: Manually verified ringbuffers are cleared with command "adb shell
lshal debug android.hardware.wifi@1.5::IWifi"

Change-Id: Icfa08634e948d7155e231458edd394a4d699fbaa
2021-07-11 22:39:29 -07:00
Les Lee
53bd75df19 Merge "WIFI: Set MAC address for bridged interface" into sc-dev 2021-07-02 09:43:13 +00:00
Les Lee
da9f5fe137 WIFI: Set MAC address for bridged interface
The MAC address of the bridged interface will be dynamically generated
by kernel when any bridged iface is changed. This means that the
bridged interface MAC address will be changed when we remove one of the
instances from the bridged interface (shutdown unused interface case).
The MAC change will break operation of bpf and it may cause the SAP
client to send wrong ns packets because the tethering module is
still using the old MAC in the ra packet.

Always set MAC address so the bridged interface can avoid MAC changing.

Bug: 191611764
Bug: 192315721
Test: Manual test with IPv6 tethering. Make sure client won't disconnect
because it doesn't get na response.
Test: Manual test in two scenarios: 1. MAC randomization 2. reset to factory MAC.

Change-Id: I854fc74b6532824b7d7b5a1aa4bc20a3cf9fd588
2021-07-02 12:05:57 +08:00
Jimmy Chen
f5a84a2322 wifi: add 1.5 HIDL service in lazy rc
1.5 HIDL service is not declared in lazy init rc.

Bug: 191940153
Test: atest VtsHalBaseV1_0TargetTest
Change-Id: Idc4d01e9696c35c8fc2390a2639ff8d7ebf0bbf0
2021-07-01 16:26:06 +08:00
Les Lee
03d642f6d9 wifi: Update active iface when bridged AP instance down
The active interface need to be updated when any of interface changecd.

Also fix the local cache bridged_ap_instances value incorrect
when erasing.

Bug: 191625124
Test: Manual check property "wifi.active.interface" after wlan2 down
Test: Manual test with command "halutil -sar enable 0" after wlan2 down
Change-Id: I40150c231313505ca355228e711c2448088f41ad
2021-06-21 17:05:07 +00:00
Ahmed ElArabawy
7e8409bb51 WiFi: Modify OWNERS files
Replace kumaranand@ with arabawy@ in OWNERS files

Bug: 191158491
Test: None
Change-Id: I585e95449e0aafdaa9687b363af0418032f41dfa
2021-06-15 10:20:29 -07:00
Jonathan Reichert
de90f67120 Merge "Fix SetCountryCode test when US is not supported" am: 2585f44a6e am: 931a68b2e5 am: b6deacd959
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1662343

Change-Id: Ic21d2b3131ad4e5b610835de4efa29a6e5baf00b
2021-04-22 13:42:15 +00:00
Jimmy Chen
2906d566ec Merge "wifi: correct WPA cipher GCMP-128 bit" into sc-dev 2021-04-18 06:22:40 +00:00
TreeHugger Robot
9a66d724f1 Merge "Wifi: Add argument "WifiHandle" in "wifi_set_subsystem_restart_handler"" into sc-dev 2021-04-16 01:18:41 +00:00
Jimmy Chen
b2da76d64b wifi: correct WPA cipher GCMP-128 bit
Bug: 185202617
Test: atest VtsHalWifiSupplicantV1_4TargetTest
Change-Id: I78fb68d0a4c046759592ceed7089a58c5ea69064
2021-04-14 10:18:17 +08:00
David Su
95e37e1dd8 Merge "Wifi HAL Multi STA: Clarify behavior during single STA" into sc-dev 2021-04-13 19:23:42 +00:00
Hassen KETATNI
521e69e069 Fix SetCountryCode test when US is not supported
SupplicantStaIfaceHidlTest.SetCountryCode(default,default)_32bit fails
when US countrycode is not supported on the device. The test will
read the value of "ro.boot.wificountrycode" and set it to the
countrycode. When the property is not defined on the device, US will
be set by default.

Bug: SupplicantStaIfaceHidlTest.SetCountryCode(default,default)_32bit fails
Bug id https://issuetracker.google.com/182296217
Test: Module VtsHalWifiSupplicantV1_0Host passes successfully

Change-Id: Iec2991223c6857d65b2ecc4337e920d5b823dd3d
Signed-off-by: Hassen KETATNI <hassen.ketatni@sagemcom.com>
2021-04-13 09:28:20 +00:00
David Su
8baf600058 Wifi HAL Multi STA: Clarify behavior during single STA
Firmware should maintain the last set multi STA
use case & primary connection across periods of
single STA.

Bug: 183861582
Test: compiles
Change-Id: Iab7b9298216a90ddcd792aec794266c9edb397fa
2021-04-12 11:56:17 -07:00
Roshan Pius
f10451b8fc hal(wifi): Replace rpius@ with kumaranand@ in OWNERS
Bug: 184966495
Test: N/A
Change-Id: Ib4cc2cc8479317b987edcdbcce0de4f699720cc3
2021-04-09 12:51:00 -07:00
chenpaul
9d432bd3fc Wifi: Add argument "WifiHandle" in "wifi_set_subsystem_restart_handler"
Bug: 178126071
Bug: 183483123
Test: vendor HAL can received API call
Change-Id: If9f4f25dcb5e63b43cf098e410aad308fb4edae6
2021-03-30 14:08:38 +08:00
Sunil Ravi
806f09f112 Merge "Wifi: Add Radio ID in radiostats" into sc-dev 2021-03-24 06:36:20 +00:00
Les Lee
a42f20168d Merge "wifi: Correct document for SAP 11AX mode" into sc-dev 2021-03-24 01:11:55 +00:00
lesl
a2f3e4bab9 wifi: Correct document for SAP 11AX mode
Current hostapd doesn't support mode: HOSTAPD_MODE_IEEE80211AX.
Using he_capabilies->he_supported to identify if the current mode is
AX.
BYPASS_INCLUSIVE_LANGUAGE_REASON : The HE is a abbreviation
which is High-Efficiency.

Bug: 162484222
Test: Enable SAP on P21 (supported AX) and check the wifistandard is
AX mode.
BYPASS_INCLUSIVE_LANGUAGE_REASON=The HE is a abbreviation
which is High-Efficiency.
Change-Id: I1f40f2e2e5a0d1a862810d19899a6d968d8c29b2
2021-03-24 01:10:53 +00:00
Sunil Ravi
83f7907233 Wifi: Add Radio ID in radiostats
Get the radio id from link layer radio stats
to framework.

Bug: 163103321
Test: VTS test - VtsHalWifiV1_5TargetTest
Change-Id: I6958a5b78798edf8529032cd255c61ba6a442633
2021-03-22 17:52:54 -07:00
chenpaul
c6f570378b Add API "startSubsystemRestart" and callback function
In order to trigger subsystem restart to reload wlan firmware,
this change adds an API for framework and vendor HAL.
Meanwhile, create new callback function for subsystem restart instead of
 general callback "onFailure()".

Bug: 178126071
Test: vendor HAL can received API call
      subsystem restart will callback "onSubsystemRestart()"

Change-Id: If3dc84049a9171677ad281c9bcc67a44dc722bdb
2021-03-20 09:29:46 +08:00
chenpaul
b690fb822e Uprev IWifiEventCallback.hal to 1.5
Bug: 178126071
Test: atest VtsHalWifiV1_5TargetTest
      wifi basic function is workable
Change-Id: I5f1897b6d4190d80eaf25eccea04ccfdbe4884c7
2021-03-19 15:21:29 +08:00
TreeHugger Robot
c7e7546d20 Merge "wifi: Add unit for API doc." into sc-dev 2021-03-17 06:38:45 +00:00
Kumar Anand
ea0d50167b Wifi: Invalid bandwidth crash handling
Treat WIFI_CHAN_WIDTH_INVALID(-1) and any other unknown
bandwidth value as invalid.

Bug: 182850702
Test: VTS - VtsHalWifiV1_5TargetTest
Change-Id: Id25d50af9283b89f135a4f36e1f696f6db4e302e
2021-03-16 12:17:47 -07:00
Jimmy Chen
d7fcfd7795 Merge "wifi: Add WFD R2 HAL API" into sc-dev 2021-03-12 06:11:19 +00:00
Mingguang Xu
a2d1efb403 Merge "WiFi: Get peer information (BSS load and rate statistics) from link layer stats" into sc-dev 2021-03-11 19:23:48 +00:00
Jimmy Chen
e162c6cd3f wifi: Add WFD R2 HAL API
Bug: 179342930
Test: atest VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: I1c991fc6c3698eab1a32f728e9d71323a0103b21
2021-03-12 01:11:53 +08:00
Roshan Pius
72a30a0f99 Merge "wifi: Wait for driver ready and bring up the interface when setMacAddress fails" into sc-dev 2021-03-11 01:27:40 +00:00
lesl
ed3d8cb87f wifi: Add unit for API doc.
Bug: 181603380
Bug: 181246414
Test: Manual Test. SAP works normally.
Change-Id: If06849ea5ae8a8ffa95abdb8f2d3f2ea337338ab
2021-03-10 02:20:35 +00:00
Mingguang Xu
41242be732 WiFi: Get peer information (BSS load and rate statistics) from link layer stats
Bug: 177069641

Test: atest VtsHalWifiV1_5TargetTest

Signed-off-by: Mingguang Xu <mingguangxu@google.com>
Change-Id: I3373d065a3b04d86f52d5bffe28d5581746cef4a
2021-03-09 12:28:32 -08:00
TreeHugger Robot
2cc3611879 Merge "wifi: change H2E mode API arguemnt to tri-state enumeration" into sc-dev 2021-03-09 05:08:36 +00:00
Jimmy Chen
52d0565fc1 Merge "wifi: add comment for SAE_PK capability" into sc-dev 2021-03-03 19:13:21 +00:00
Roshan Pius
8c1a67b7af wifi: Wait for driver ready and bring up the interface when setMacAddress fails
setMacAddress may fail in some scenarios like SSR inprogress. In such
case framework is not bringing up the iface again if it was brought down
to set random MAC address. Due to this subsequent operations like scans
are failing with "Network Down" error and Wi-Fi can't recover until
Wi-Fi restarts. To avoid this bring up the iface irrespective of
setMacAddress status.

Modified the original CL to move the WifiIfaceUtil creation to inside
Wifi object since that is where the legacy HAL instance is created for
the corresponding chip. This helps keeping the setMacAddress logic still
inside WifiIfaceUtil. Modified the iface_util lifetime - no longer a
singleton, one instance created per wifi chip instance.

Bug: 174183763
Test: Wifi can be enabled when back-to-back SSR and wifi on
Change-Id: I926b59f5da126aba222e05d1e570c0c19de739ed
2021-03-03 09:00:00 -08:00
Jimmy Chen
1fd7bc3283 wifi: change H2E mode API arguemnt to tri-state enumeration
Bug: 180532458
Test: atest VtsHalWifiSupplicantV1_4TargetTest
Change-Id: Ibba7bf26e7bbe45cadc45c0e68d9fd56f4034923
2021-03-03 13:13:44 +08:00
Jimmy Chen
b471a062f9 wifi: add comment for SAE_PK capability
Bug: 181603483
Test: atest VtsHalWifiSupplicantV1_4TargetTest
Change-Id: If66f1ad0b3c44190beacb48c988c47fe8767bfee
2021-03-02 16:03:11 +08:00
TreeHugger Robot
4f8dbd55b0 Merge "Wifi: Change the type from long to int for contention time statistics" into sc-dev 2021-03-02 07:57:13 +00:00
Mingguang Xu
bfb5adeff0 Wifi: Change the type from long to int for contention time statistics
Bug: 172412545

Test: atest com.android.server.wifi

Signed-off-by: Mingguang Xu <mingguangxu@google.com>
Change-Id: I7d64013c63a38b85d4b0ea37cdc260a19049bfce
2021-02-24 23:04:00 -08:00
TreeHugger Robot
1c3453c344 Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces" into sc-dev 2021-02-24 14:18:27 +00:00