summaryrefslogtreecommitdiffstats
path: root/wifi
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'android-10.0.0_r37' into ↵Kevin F. Haggerty2020-06-011-0/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | staging/lineage-17.1_merge-android-10.0.0_r37 Android 10.0.0 Release 37 (QQ3A.200605.001) * tag 'android-10.0.0_r37': RESTRICT AUTOMERGE Relax timeout for all operations Don't send brightness to car service inside Emulator Camera: Fix possible ExifUtils heap corruption wifi(implementation): Clear wifi event callback objects while stopping VTS: only assert that IGnssDebug present for non-automotive Change-Id: I8f1ba019d173d22990ca23f1819347280e749744
| * wifi(implementation): Clear wifi event callback objects while stoppingKyounghan Lee2020-01-291-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Merged-In: I441e2f815a0a49c3936615f06a65a6ed5366a628
* | Fix build errors.Daniel Norman2020-04-171-4/+4
| | | | | | | | | | | | | | - wifi_chip: getWlan0IfaceName was replaced with a generic getWlanIfaceName(idx) Change-Id: I4053d183b8ebf6d7b482d3dab034ed9f6a78b4d8
* | wifi: Add logic to create secondary interface for STA mode too.Purushottam Kushwaha2020-04-172-24/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | Previously we introduced dynamic interface create/remove logic for SAP interface where wlan.concurrent.interface was given first preference for SAP interface. Remove this preference and fallback to use the default order of choosing interface names. Also add create/remove logic for secondary interface in STA mode too. Change-Id: Iec5c4492096327a18e67f5129736a9bd3c8533f0 CRs-Fixed: 2268421
* | wifi: Add provision to create/remove dynamic interface(s).Purushottam Kushwaha2020-04-176-15/+111
| | | | | | | | | | | | | | | | | | | | | | | | This commit does following: - Add/Remove softap interface at runtime, if needed. - Use wlan.concurrent.interface as default softap interface. - Add build time support to enable SAP+SAP feature using QC_WIFI_HIDL_FEATURE_DUAL_AP flag. if enabled use wlan.interface as second SAP interface. Change-Id: Icde3d54eda0f142e20f33cdb7ed95152eeee0bec CRs-Fixed: 2257197
* | wifi: Fetch softap interface name for creating ap_iface operations.Purushottam Kushwaha2020-04-171-1/+9
|/ | | | | | | | | | | | | | softap interface name could varry from platform to platform and may need for addiitional features. This commit gets softap interface name by property_get on "persist.vendor.wifi.softap.interface". If not set, it will fall back to use either of available interface in "wifi.interface" or "wifi.concurrent.interface". This property can either be set via .rc files or at runtime by any module. CRs-Fixed: 2243203 Change-Id: Iec1684f6cdf8963e71bc0c40ca296ac6a79472ee
* [AWARE] Protect string copy against buffer overflowEtan Cohen2019-12-181-2/+14
| | | | | | | | 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
* hostapd: Ignore ACS relate vts testcase for hostapd 1.0 and hostapd 1.1lesl2019-08-292-6/+18
| | | | | | | | | | | | | | | | | | If driver doesn't support the hotspot ACS feature. It will cause ACS relate vts testcase failure. Temp disable the vts test case and file b/140172237 to fix in R. Bug: 135975451 Test: build - make vts Test: atest VtsHalWifiHostapdV1_1Target / atest VtsHalWifiHostapdV1_0Target Test: vts-tradefed run commandAndExit vts-hal --skip-all-system-status-check \ --primary-abi-only --skip-preconditions --module \ VtsHalWifiHostapdV1_0Target -l INFO vts-tradefed run commandAndExit vts-hal --skip-all-system-status-check \ --primary-abi-only --skip-preconditions --module \ VtsHalWifiHostapdV1_1Target -l INFO Change-Id: I489d5f5c54f37f3603128e127a6c8b1ee62390d3
* hostapd(vts): Use the correct syntax for vendor propRoshan Pius2019-07-291-1/+2
| | | | | | | Change the prop to add "ro.vendor." prefix for the new vendor prop. Bug: 136645414 Change-Id: I5edfdc98991068eac279975397b6a29313bf31da
* Merge "hostapd(vts): Add a property for SAP interface" into qt-devTreeHugger Robot2019-07-191-0/+2
|\
| * hostapd(vts): Add a property for SAP interfaceRoshan Pius2019-07-181-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Changes to the VTS test to support OEM's who use a separate dedicated SAP interface. Note: This is a VTS test change only. The default implementation does not still support a dedicated SAP interface (OEM's can obviously customize the default implementation for their devices). Bug: 136645414 Test: None (verified by partner OEM) Change-Id: I42b87bf90cfa90c7c218309164ab2b77f3685f9e
* | p2p: skip MAC randomization vts test if not supportedJimmy Chen2019-06-261-0/+8
|/ | | | | | Bug: 135247522 Test: atest VtsHalWifiSupplicantP2pV1_2TargetTest Change-Id: I1aafcdbe88f93dbf73069d24ae90cad0d395df6e
* libhidltransport users user libhidlbaseSteven Moreland2019-06-121-1/+1
| | | | | | | | | | | libhidltransport symbols are being moved into libhidlbase in order to optimize linking/memory usage. libhidltransport will no longer be required in the future (however removing references to it will come separately). Bug: 134961554 Test: boot Change-Id: Ibcc2db32d3bec1a786b60e11d4820ecd0605f403
* [VTS][AWARE]Setting callbacktype type to invalid value before invoking HIDL callNate Jiang2019-05-292-2/+5
| | | | | | | | | Avoid race condition between event callback and wait context. Make callbacktype to invalid before call function to change it. Test: atest VtsHalWifiNanV1_0TargetTest VtsHalWifiNanV1_2TargetTest Bug: 133484330 Change-Id: I9211c3e172727f56d0cceaf91b98f8d5b3c7fc7e
* Merge "Fix so that dual access points (AP) works." into qt-devJames Mattis2019-05-242-3/+13
|\
| * Fix so that dual access points (AP) works.James Mattis2019-05-222-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Devices that only have dual AP setup without an STA were not working. A use case for this would be in a car, having a wifi hotspot active while also projecting to the car head unit from your phone. This was working but a recent change in CL a3e5b7f that forced STA to be on wlan0 and AP to start at wlan1 broke this functionality. This change is to augment the original CL to keep it's function in place while also taking into account devices that have dual AP. Bug: 132268977 Test: Manual boot of hawk device along with testing of tethering and local only hotspot. Change-Id: I8da5dd4f0baea1bf0f22d3275e356936a58fb3d1
* | wifi(tests): Unit tests for iface event cb'sRoshan Pius2019-05-2218-30/+317
| | | | | | | | | | | | | | | | Few class refactors to help with unit tests for ag/7567226. Bug: 132943959 Test: ./hardware/interfaces/wifi/1.3/default/tests/runtests.sh Change-Id: I62909f3f94899bc1593824684b93d29f44954eae
* | wifi(implementation): Send NAN disabled on wlan0 down & upRoshan Pius2019-05-225-6/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | When the iface state is toggled for MAC address change on the underlying interface for NAN operations, send NAN disabled event up to the framework. The iface down/up toggle resets all NAN operations in the firmware. So, this callback should trigger a cleanup of any operations initiated by the framework. Bug: 132943959 Test: Unit tests in the follow-up CL. Test: Will send for regression tests. Change-Id: I760dc5ca3b9276956f5edd40a97c3c13811f442c
* | wifi(implementation): Invalidate NAN iface on STA iface removalRoshan Pius2019-05-175-0/+101
|/ | | | | | | | | | | NAN iface/RTT controllers are sharing the STA iface. When a STA iface is removed, we should remove these dependent modules as well to ensure proper cleanup. Bug: 132837537 Test: ./hardware/interfaces/wifi/1.3/default/tests/runtests.sh Test: Will send for regression tests. Change-Id: Ia2da1dcf66b388f54e916ae69e2f4e26f20ecfad
* Fix VtsHalWifiV1_0Host#WifiStaIfaceHidlTest.SetScanningMacOui fail am: ↵hayun.kim2019-04-231-0/+5
|\ | | | | | | | | | | | | | | eb73bff276 am: 4808395767 Change-Id: I9e4ecfdcda7988725bc2c85703c26d7a38f72f56
| * Fix VtsHalWifiV1_0Host#WifiStaIfaceHidlTest.SetScanningMacOui failhayun.kim2019-04-171-0/+5
| | | | | | | | | | | | | | | | | | | | | | 1. snip the VtsHalWifiV1_0Host#WifiStaIfaceHidlTest.SetScanningMacOui test if SCAN_RAND capability is not supported on dut device Test: execute VtsHalWifiV1_0TargetTest of VTS test Bug: 129735587 Change-Id: I825e1df11c958b3b2476880c6c6f7b8ee7b292bf Signed-off-by: hayun Kim <hayun.kim.lge.corp-partner.google.com>
* | Merge "wifi(implementation): Simplify getFirstActiveWlanIfaceName" into qt-devTreeHugger Robot2019-04-231-6/+3
|\ \
| * | wifi(implementation): Simplify getFirstActiveWlanIfaceNameRoshan Pius2019-04-221-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Get rid of the unnecessary looping inside the method which was causing a bunch of unnecessary selinux denial logs. Bug: 130384921 Test: ./data/android.hardware.wifi@1.0-service-tests Test: Manually verified the property name after wifi on/off & softap on/off. Change-Id: Ia9f61749b2017234851d67b027deb685cb8b539e
* | | Merge "hostapd: fix hostapd vts fail" into qt-devTreeHugger Robot2019-04-204-4/+19
|\ \ \ | |/ / |/| |
| * | hostapd: fix hostapd vts faillesl2019-04-184-4/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If wpa_supplicant is running during hostapd vts and there are some configuration in wpa_supplicant. It will happen both of hostapd and wpa_supplicant are working with wlan0 interface. Stop wpa_supplicant before running hostapd vts. Reproduce step: 1. Connect to Wifi before execute hostapd vts. 2. Run hostapd vts. Bug: 130207248 Test: vts with below commands vts-tradefed run commandAndExit vts-hal --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalWifiHostapdV1_0Target -l INFO vts-tradefed run commandAndExit vts-hal --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalWifiHostapdV1_1Target -l INFO Change-Id: Id91463c2eab3c8c348a91bd978d7ea4aa8d42e85
* | | p2p: fix vts fail due to 5g go init fail with 00 country codelesl2019-04-171-3/+3
|/ / | | | | | | | | | | | | | | | | | | The force 5GHz Go will cause fail when country code is 00 or chip doesn't support 5GHz. Change test parameter to force 0 which means driver decide GO channel. Bug: 130208180 Test: vts-tradefed run commandAndExit vts-hal --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalWifiSupplicantP2pV1_2Target -l INFO Change-Id: I0d2a8fcba4ece616ddeccbae36146329e9043157
* | Merge "wifi(implementation): Set prop with the first active iface"TreeHugger Robot2019-04-021-2/+19
|\ \
| * | wifi(implementation): Set prop with the first active ifaceRoshan Pius2019-04-021-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is updated whenever a new STA or AP iface is created & removed. Also, when the chip is configured. This property can be read by the rest of the system (including vendor specific HAL instances) to retrieve the active iface name. Bug: 129506593 Test: ./data/android.hardware.wifi@1.0-service-tests Test: Manually verified the property name after wifi on/off & softap on/off. Change-Id: Ic1c21fd3a1c6894c797070bf889f705e4cba6dd1
* | | Merge "Wifi: Add ether_type to sending offloaded packet"Ahmed ElArabawy2019-04-023-8/+8
|\ \ \ | |/ / |/| |
| * | Wifi: Add ether_type to sending offloaded packetAhmed ElArabawy2019-03-183-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds the ether_type as an argument to the legacy hal function to send an offloaded packet. Bug: 122487582 Test: Manual Test: Make sure ether_type is passed all the way to vendor hal function Change-Id: I5918088000cc455e7f83feddc1090803ccc04c06
* | | Merge changes I5a617557,Idca8de42Roshan Pius2019-03-295-71/+255
|\ \ \ | | | | | | | | | | | | | | | | | | | | * changes: wifi(implementation): Use the active iface for chip operation wifi(implementation): Pin primary STA iface to wlan0
| * | | wifi(implementation): Use the active iface for chip operationRoshan Pius2019-03-275-38/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For the chip level operations, the actual interface itself does not matter. So, instead of hard-coding these operations to wlan0 interface, find the first active interface to use. This will still return wlan0 if it's active, but if only AP is up (& pinned to wlan1), then it will use wlan1 instead. Bug: 129358937 Test: ./data/android.hardware.wifi@1.0-service-tests Test: Verified manually that SAR commands are now correctly sent down. Change-Id: I5a6175579027cbb45c09d32633ed81b9f72224dd
| * | | wifi(implementation): Pin primary STA iface to wlan0Roshan Pius2019-03-273-34/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The primary STA iface will always be pinned to wlan0. The primary AP iface will be pinned to wlan0 for devices not supporting STA + AP concurrency & wlan1 for devices supporting STA + AP concurrency. All secondary STA or AP ifaces will be allocated on a first come first service basis (the current logic). Also, refactored/renamed some of the iface combo selection logic methods to help check whether concurrency is allowed in the current mode. Bug: 128946563 Test: ./data/android.hardware.wifi@1.0-service-tests Test: Will send for full regression tests. Test: On crosshatch, ensured that STA always comes up on wlan0 & AP comes up on wlan1 regardless of the sequence of toggle followed. Change-Id: Idca8de42ce819240bf0fac2a9039d15ed4bcaf90
* | | | wifi(vts): Don't enforce interface combination in VTS tests am: f638d0a43a ↵Roshan Pius2019-03-271-16/+8
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | am: 1905955baf am: 9f0bb1815c Change-Id: I086016e07ae0d2dd37b11424039ec44f978e58e8
| * | | wifi(vts): Don't enforce interface combination in VTS tests am: f638d0a43aRoshan Pius2019-03-271-16/+8
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | am: 1905955baf Change-Id: I792ae076ad6bb968601972854e7e0e49a388de40
| | * | wifi(vts): Don't enforce interface combination in VTS testsRoshan Pius2019-03-261-16/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Devices are allowed to expose multiple AP or STA interfaces, fix the VTS tests to allow this. Bug: 112123615 Test: Compiles Change-Id: I6cf60b3cb0429ca78fe5a54d9e42ba144d7609e9
* | | | wifi(implementation): Fix unit test failuresRoshan Pius2019-03-252-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ag/6722341 caused some unit test failures. Fixing them. Bug: 127715974 Test: ./data/android.hardware.wifi@1.0-service-tests Change-Id: Ib504cf55b9990dba081eb1b07bc32508e09ad0a6
* | | | Wifi: Update the Latency mode API documentationAhmed ElArabawy2019-03-211-4/+8
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | This commit updates the documentation for the HAL API setLatencyMode(). It also updates the current.txt with the IWifiChip new hash. Bug: 124459516 Test: None Change-Id: I018e0237807aab70f7587d5fd7517d64352140f7
* | | wifi - Add wlan driver/fw version when device boot upchenpaul2019-03-141-0/+10
| | | | | | | | | | | | | | | | | | Bug: 127715974 Test: Property with wlan driver/fw version when device boot up Change-Id: Idf1215ceb2c34502ed5eac6c8900350e511732fc
* | | Merge "wifi: use PLOG rather than LOG strerror." am: fba8a08e6f am: 6d37b594a8Elliott Hughes2019-03-121-22/+16
|\| | | | | | | | | | | | | | | | | am: 9034bf375d Change-Id: I483a457782a441e5b59f7b0b08e7a4cdf4f12949
| * | Merge "wifi: use PLOG rather than LOG strerror."Elliott Hughes2019-03-121-22/+16
| |\ \ | | | | | | | | | | | | | | | | | | | | am: fba8a08e6f Change-Id: Ifdc51d50362da0742cac8b5dcd5272f0be18e803
| | * | wifi: use PLOG rather than LOG strerror.Elliott Hughes2019-03-081-22/+16
| | | | | | | | | | | | | | | | | | | | Test: builds Change-Id: I1a508dbb47fed3a1c1e5166b9b32d33ed0d246fe
* | | | Merge "Update makefies: no 'types' internal"Steven Moreland2019-03-052-11/+0
|\ \ \ \
| * | | | Update makefies: no 'types' internalSteven Moreland2019-03-042-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 123976090 Test: N/A Change-Id: I84b659b163b63d39535b462a3df8a9c19f680976
* | | | | Merge "wifi(implementation): Fix spammy log"TreeHugger Robot2019-03-051-5/+4
|\ \ \ \ \
| * | | | | wifi(implementation): Fix spammy logRoshan Pius2019-03-011-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | wifi.interface.0, etc should only be checked if the primary property used on most devices (wifi.interface & wifi.concurrent.interface) does not exist. wifi.interface.0, etc should only defined on Android auto platforms. Bug: 126925255 Test: Manually verified that the spammy log does not exist Change-Id: Ib5e6a87a7da2d4b26cdd35f668385b503e7c8006
* | | | | | Merge "Update makefies: no 'types'" am: 4ee5ec1469 am: bab622f6a6Steven Moreland2019-03-045-115/+0
|\ \ \ \ \ \ | |_|/ / / / |/| | / / / | | |/ / / | |/| | | | | | | | am: 7224bc9bcf Change-Id: I434939e0770afa436c532a945542fce30a71ef7d
| * | | | Merge "Update makefies: no 'types'"Steven Moreland2019-03-045-115/+0
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | am: 4ee5ec1469 Change-Id: I803f6d2f37093477a46a50f429cb265e92acd144
| | * | | Update makefies: no 'types'Steven Moreland2019-03-045-115/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 123976090 Test: N/A Change-Id: I30fb04c81889b62775e1b764b965fdb0f893de17
| * | | | Merge "pack VTS cc_test binaries as general-tests" am: d6fe421895Keun Soo Yim2018-12-127-0/+9
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4ea1fa9f72 Change-Id: I25d606f401dbf3947fac3ef4c8ae9d71c30cc780