summaryrefslogtreecommitdiff
path: root/wifi/1.4/default
AgeCommit message (Collapse)Author
2020-07-22wifi: upgrade wifi interface to 1.5Jimmy Chen
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-14wlan: add supported interfaces in rc fileTF Huang
Service vendor.wifi_hal_legacy should add all supported interface into relevant .rc files. Bug: 160377428 Test: Wifi presubmit tests Change-Id: I68e8d3e7ddb1470a92c5ccd30f6d4d5f90ad9e37
2020-07-02Wifi: Handle subsystem restart notificationAhmed ElArabawy
This commit adds the logic to handle a notification of a wifi subsystem restart to trigger the callback to the framework for self recovery. Bug: 159367026 Test: force a firmware restart and make sure Wifi is recovered. Change-Id: If6b5863d1d7473917088ec5be1910fa0db5dd6ae
2020-05-21Fix NAN validate interface existenceNate Jiang
Bug: 156879576 Test: atest android.hardware.wifi@1.0-service-tests Change-Id: I8505e343f5b2ea5ea522cbb2ea344ff8914aea3d
2020-05-19IWifi: Validate dedicated NAN discovery interface.Nate Jiang
Bug: 156879576 Test: atest android.hardware.wifi@1.0-service-tests Change-Id: I9150b683ceb5631139eab6e0c6c8edb4209c9493
2020-05-01Merge "Wifi: Optionally avoid interface down/up when doing setMacAddress" ↵Ahmed ElArabawy
into rvc-dev
2020-04-30Wifi: Optionally avoid interface down/up when doing setMacAddressAhmed ElArabawy
Some vendors implementation will reset wifi chip when doing interface down. Accordingly, We need to avoid the interface down/up when doing setMacAddress to avoid loss of sync between framework and firmware. This commit uses a BOARD_WIFI_AVOID_IFACE_RESET_MAC_CHANGE macro to check if it is needed to avoid interface down/up at setMacAddress. Bug: 153771961 Test: VTS Test Test: atest VtsHalWifiV1_2TargetTest Change-Id: I971764f1c272ebfd245959974fa0d1b10ba7c39b
2020-04-30Allow tethering name configRoshan Pius
Test: manual Bug: 155110247 Test: Compiles Test: Verified that SAP is working Change-Id: I6f0fd5b891dd6e6c2f0ceab05f6830b56f6474b1
2020-04-17Merge "wifi_sta_iface: Deprecate setScanningMacOui" into rvc-devRoshan Pius
2020-04-16wifi_sta_iface: Deprecate setScanningMacOuiRoshan Pius
Bug: 154267383 Test: Device boots up and connects to wifi networks. Change-Id: I70206e2c25d90ebd5ac35938af9ca2ebffefa318
2020-04-15Synchronize on_ring_buffer_data_callback and writeRingbufferFilesVeerendranath Jakkam
on_ring_buffer_data_callback callback is invoked on getting the corresponding driver/firmware ringbuffer logs. This callback further stores the ringbuffer data locally in cur_buffer. While the data is getting updated through this callback, writeRingbufferFilesInternal can get triggered from a different context which accesses the same buffer -cur_buffer. Synchronization is missing between these two contexts while accessing the buffer and this commit attempts the same. Bug: 153970986 Test: Manual - collect the bugreport and check the ring buffer logs. Change-Id: Id99a517f4d72872b84b48c3df75dd29743f3e9b2
2020-04-14Use additional interface for the WiFi Aware Discovery operations.Roshan Pius
NAN operations are currently done on the STA interface.This resulted in the NAN sessions getting terminated in all the instances where the STA interface is restarted (IFF DOWN/UP), due to connected MAC randomization. Hence, remove the dependency of NAN over STA interface. This change expects the driver to create a dedicated interface for the NAN operations. The iface name needs to be set in "wifi.aware.interface" property. Bug: 1636219 Test: HAL unit tests Test: Device boots up and connects to wifi network. Change-Id: I1b6d64eb94334172a8cd621d0b15ed8c8dc87f91
2020-04-08Adds IWifi 1.3 and 1.4 as interfaces provided by vendor.wifi_hal_legacy.Daniel Norman
Bug: 150474819 Bug: 152173671 Test: vts_ibase_test Change-Id: Ie5462d41177ec6dd56e6de266157e7d4ac28b388 Merged-In: Ie5462d41177ec6dd56e6de266157e7d4ac28b388 (cherry picked from commit f58ff069ee8866fa7b3e931fcbd80cb1bb4f835c) Change-Id: Ie5462d41177ec6dd56e6de266157e7d4ac28b388
2020-02-19Wifi: Add support for mapping DSCP to Wifi ACAhmed ElArabawy
This commit adds the needed enum and methods to handle the mapping of DSCP into wifi access categories. Bug: 141500691 Bug: 141550272 Test: Builds successfully Change-Id: I3a85c211057907c2363f7f349d0075e6b4a1b152
2020-02-03wifi: Add provision to create/delete dynamic interface(s)Sunil Ravi
This commit does following: create/delete softap interface at runtime, if needed. create/delete station interface at runtime, if needed. Bug: 146539882 Bug: 121156971 Test: Manual - Basic wifi sanity test. Change-Id: I6ab9c9e134d2f09e27283c9e60df885392834de4 Signed-off-by: Vinay Gannevaram <quic_vganneva@quicinc.com>
2020-01-29wifi(implementation): Clear wifi event callback objects while stoppingKyounghan Lee
This fixes a deadlock between WifiNative and HalDeviceManager because it removes about 30 times callbacks of IWifiEventCallback#onFailure() or onStop(). Such excessive callbacks within a short period tend to make high probabilities of the deadlock. Note: This is a side effect of how the framework is registering multiple callbacks. But, unfortunately there is no HAL API to unregister callback. So, this is somewhat of a workaround fix. Bug: 144137870 Test: Verified that the HAL no longer accumulates callbacks from framework. Test: Device boots up and connects to wifi networks. Change-Id: I441e2f815a0a49c3936615f06a65a6ed5366a628
2020-01-23wifi: thermal hal apiKumar Anand
Use global handle instead of interface handle as thermal mitigation is not interface specific. Bug: 112471991 Test: atest FrameworksWifiTests Change-Id: Ia8aadec7794bd2dbd5954ec0225caa349b31070c
2020-01-07Merge "wifi: Legacy HAL Thermal API stub"Kumar Anand
2019-12-29Wifi: Fix VTS testsAhmed ElArabawy
This commit fixes VTS tests resulting from upgrading APIs and stopping support for old APIs. Bug: 144926452 Test: atest VtsHalWifiV1_0TargetTest Test: atest VtsHalWifiV1_3TargetTest Change-Id: I73140be1dfb969da24c802e658e97d4040837243
2019-12-20wifi: Legacy HAL Thermal API stubKumar Anand
Add the stub implementation for Wifi thermal API Bug: 140311866 Test: Manual, on device Change-Id: I401bf7a38fa52d160ae45cd519a225c07360cd3c
2019-12-12Remove 6GHz capability query through HALAhmed ElArabawy
It was decided to perform the check on the device support of 6GHz through overlay configs instead of through HAL. This commit removes the Hidl API changes that were used for that check. Bug: 145936758 Bug: 139354972 Test: Manual Test: VTS test Test: Unit test: hardware/interfaces/wifi/1.4/default/tests/runtests.sh Change-Id: I81fdf603a668a71e3e875211367111fffee20e54
2019-12-12Fix 6GHz support for NANNate(Qiang) Jiang
add NAN 6Ghz support in 1.4, size of bandSpecificConfig should be 3. Bug: 146062988 Test: unit test Test: acts AttachTest DiscoveryTest DataPathTest Change-Id: I3bd0a4f32d804eae848bc15d9813d5ccb3e5fc62
2019-12-06Wifi: Add 6GHz band to NAN structures and methodsAhmed ElArabawy
This commit adds 6GHz band to NAN related structures and methods. Bug: 139354972 Test: Manual Test: VTS test Test: Unit test: Test: ./hardware/interfaces/wifi/1.4/default/tests/runtests.sh Change-Id: I33f63fde67d5a839678076fdb7c76d5eb8645131
2019-12-04Wifi: Add 6GHz bands to WifiBandAhmed ElArabawy
This commit adds 6GHz band to WifiBand and update the impacted structures and methods in Wifi HAL. Note that Background scar related HAL API will not be using the new band, and will continue with the legacy set of bands. Bug: 139354972 Test: Manual Test: VTS test Test: Unit test: ./hardware/interfaces/wifi/1.4/default/tests/runtests.sh Change-Id: I54662251034806338ad64d4622ade259ca260a79
2019-12-02Merge "hal(wifi): Set HAL logd severity based on ringbuffer verbosity"TreeHugger Robot
2019-11-26[AWARE] Protect string copy against buffer overflowEtan Cohen
Fixes: 143789898 Test: (Unit) atest com.android.server.wifi Test: ACTS ThroughputTest:test_iperf_single_ndp_aware_only_ib Test: (VTS) atest VtsHalWifiApV1_4TargetTest Change-Id: I5b8aa1d9a6388fe20cb7e1cd6a76d5e59e14d099
2019-11-18hal(wifi): Set HAL logd severity based on ringbuffer verbosityRoshan Pius
This avoid the framework from setting the HAL daemon's log severity when verbose logging is enabled by the user. Bug: 144695435 Test: Manually verified log level change Change-Id: I71777bb5f7cb8216bc0ecee27fbaa410c39a6a16
2019-11-15Revert "Revert "Wifi: Support check on device capability for 6GHZ""Ahmed ElArabawy
This reverts commit ad2b44760de163e4d2104c74ec64e37f37723ff3. Reason for revert: Fix is ready Change-Id: I16e30afe843e048429eae430a82aa5e90e591c2e
2019-11-15Revert "Wifi: Support check on device capability for 6GHZ"Zongheng Wang
This reverts commit 046257fd2e916ced9a16596d66e003402b90dce2. Reason for revert: b/144576287 broke git_master Change-Id: I357df4a242a3ae22c793f8f4120199f04cbcdfa2
2019-11-12Wifi: Support check on device capability for 6GHZAhmed ElArabawy
This commit adds the HAL APIs and implementation to support checking whether device supports 6GHz band or not. VTS test has been added for the new api. Bug: 139354972 Test: Manual: Make sure capability is read correctly. Test: VTS test. Change-Id: I03b0c6017666ffd3663d5979d6e6a2bd93043c48
2019-11-06Wifi: Add 802.11ax support to RTTAhmed ElArabawy
This CL makes modidfication to support Wifi 802.11ax to RTT procedures. Bug: 139354972 Test: vts test Change-Id: I79fba504e7c7380a254a0b8c175a13e8b993fc8e
2019-10-24Wifi: Handle invalid error values from vendor HALAhmed ElArabawy
The HAL shim (default implementation) expects all vendor hal functions to return valid wifi_error values. In case the vendor hal returning a value outside this range of values, the HAL service crashes. This commit is to handle this type of error by defaulting to WIFI_ERROR_UNKNOWN. Bug: 143317834 Test: Manual Test: Pass an invalid error code, and make sure it is properly handled Change-Id: Ifaba8a7e4e866a2be154c9dcaeb521cd758010ee
2019-10-16Wifi AP: Remove HAL-level MAC randomizationPatrik Fimml
Randomization will be handled by framework code instead. This also means WIFI_HIDL_FEATURE_DISABLE_AP_MAC_RANDOMIZATION is replaced with a framework config option (config_wifi_ap_mac_randomization_supported), which can be set from device overlays. Bug: 142387520 Test: atest android.hardware.wifi@1.0-service-tests; adb shell LD_LIBRARY_PATH=:/system/lib64/vndk-R /data/local/tmp/android.hardware.wifi@1.0-service-tests/x86_64/android.hardware.wifi@1.0-service-tests Test: vts-tradefed run vts --primary-abi-only --skip-device-info -l DEBUG --include-filter VtsHalWifiApV1_4Target Test: lunch hawk-userdebug; m (uses DISABLE_AP_MAC_RANDOMIZATION) Change-Id: I2dbf1158368ce3c39980501f892c6de1ffb3f748
2019-10-15Merge "[hardware][interfaces][wifi] fix -Wreorder-init-list" am: d1785cb7f6 ↵Nick Desaulniers
am: 7d36ef505c am: d654bac57d am: d7b13d4f69 Change-Id: I836a4beefc5117cb4c8c019ce00e56a02665a41b
2019-10-08Add IWifiApIface@1.4 (configurable MAC address)Patrik Fimml
Mirrors the methods and tests introduced in IWifiStaIface@1.2 and @1.3. Android.bp generated with $ hidl-gen -o . -Landroidbp -randroid.hardware:hardware/interfaces android.hardware.wifi@1.4 Bug: 132705022 Test: make vts && vts-tradefed run vts-host --skip-preconditions --primary-abi-only --module VtsHalWifiV1_4Host Change-Id: Iddacd2770c59522001673d10daafd3bbed3844f6
2019-09-24Revert "Revert "Wifi: Move LOCAL_VINTF_FRAGMENTS to executables""Ahmed ElArabawy
This reverts commit 1ab2fac7dee5f1bac811995bac1d1e5ecc6afc9f. Reason for revert: I fixed the cause for the build breakage, so no need to revert this change any more. Change-Id: I8c174116b3a9fcfbf4944b531f957a7ae72b4025
2019-09-24Revert "Wifi: Move LOCAL_VINTF_FRAGMENTS to executables"Jim Tang
This reverts commit 0d653ad82c147cee7c02c7869980421344751f26. Reason for revert: cannot be added: HAL "android.hardware.wifi" has a conflict. Change-Id: I33780dcca99015cb97b4f2240d1dfc6c3ebf9638
2019-09-23Wifi: Move LOCAL_VINTF_FRAGMENTS to executablesAhmed ElArabawy
Current codebase has the LOCAL_VINTF_FRAGMENTS defined in the static library definition in Android.mk. This line is skipped and does not take effect, and hence the Wifi hal service does not start. Moving the definition to the executable definitions, so it takes effect. Bug: 141447327 Test: Verify that wifi starts at boot Change-Id: I9e01483eec4017444689509ea90f761305ae471b
2019-09-19Wifi: Uprev Wifi HAL to 1.4Ahmed ElArabawy
Move Wifi HAL from 1.3 to 1.4 This commit also include adding the VINTF fragment definition for IWifi hal. Bug: 138243400 Test: Builds and wifi works Change-Id: I5ec9b21f8d6b7e1b5b5e47e26681dd4ed3ffcc2d