summaryrefslogtreecommitdiff
path: root/wifi
Commit message (Collapse)AuthorAgeFilesLines
* wifi: Add provision to create/remove dynamic interface(s).Purushottam Kushwaha2022-03-122-17/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: Add logic to create secondary interface for STA mode too. 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: Remove dynamic interfaces as part of wifi chip stop/cleanup. During interface initialization for additional SAP/STA request, new interface is created dynamically. This interface is removed during teardown. In cases, where wifi stop request comes before teardown, dynamically created interface(s) are not getting destroyed. This CL is to remove dynamically created interfaces as part of wifi chip stop/cleanup. Additionally, move invalidateAndRemoveDependencies before remove interface. Change-Id: I2df499252670f63ee22223176c71273b33f70679 CRs-Fixed: 2533958 [Pig]: Update to LA.QSSI.11.0.r1-06700-qssi.0 Change-Id: I9d469526965e595d77732913f6607dcafab19a01
* Merge "wifi(vts): Precondition AP tests on existence of hostapd HAL" into ↵Les Lee2021-10-206-4/+45
|\ | | | | | | sc-v2-dev
| * wifi(vts): Precondition AP tests on existence of hostapd HALRoshan Pius2021-10-156-4/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cp: aosp/1428863 to sc-v2-dev branch as b/202788915 mentioned This used to be present on the old host side VTS tests, port the feature to target side since host side VTS tests are deprecated. Also, i) Added a separate test: VtsHalWifiV1_4TargetTest to test the wifi chip methods. Putting them in VtsHalWifiApV1_4TargetTest will prevent these from running on devices without AP feature. ii) Ensured all the non-NAN, non-RTT tests disable framework for testing. NAN/RTT tests uses framework to check if the corresponding package manager feature exists. Bug: 166529516 Bug: 202788915 Test: atest \ VtsHalWifiApV1_0TargetTest \ VtsHalWifiApV1_4TargetTest \ VtsHalWifiV1_0TargetTest \ VtsHalWifiV1_4TargetTest Change-Id: I05aab6992277601633a0f926a8262c4c27402e93 Merged-In: I05aab6992277601633a0f926a8262c4c27402e93
* | Update the p2p device interface name am: 6adbab13eeSunil Ravi2021-10-201-0/+31
|\ \ | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/16087108 Change-Id: I29de6a4bf01101cb32d2aafd8a4dce8fa5f398c0
| * | Update the p2p device interface nameSunil Ravi2021-10-191-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some implementations P2P device interface is created under primary interface(wlan0 by default). In those implementations p2p device name is predefined in system property wifi.direct.interface. And the interface is created by supplicant with primary interface as the parent interface. The naming of p2p device interface is p2p-dev-<parent interface> ("p2p-dev-wlan0"). With STA+STA feature, wlan0 interface gets deleted in certain scenarios and wlan1 becomes the active interface. In such scenarios P2P fails to create the interface as parent interface wlan0 is deleted. To fix the issue update the p2p device interface from system property based on the current active wlan interface. ie First get the p2p parent interface name from p2p device interface name set in property. Check if the parent interface derived from p2p device interface name is the current active interface. If not, get the current active interface and update the name as p2p-dev-<ifname> ("p2p-dev-wlan1"). This helps HIDL/supplicant to get an active wlan interface from p2p device interface name and succeed in creating the p2p interface under the active interface. Bug: 203434193 Test: Manual - Tested STA+STA which ended up deleting wlan0 interface. Then ran p2p tests and confirmed that p2p scan and connection works. Change-Id: I522cec02a662c057e21d434f3ed98c7e7a4ca8f0 Merged-In: I522cec02a662c057e21d434f3ed98c7e7a4ca8f0 (cherry picked from commit 7f2822aff735e3c4f727de0759f867791db129ed)
* | | Merge "wifi: extending framework restart waiting time" into sc-v2-devTreeHugger Robot2021-10-191-1/+1
|\ \ \
| * | | wifi: extending framework restart waiting timeJimmy Chen2021-10-181-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | 10s is not enough for low-end devices, extending waiting time to avoid false alarm for low-end devices. Bug: 201184673 Test: atest VtsHalWifiSupplicantP2pV1_4TargetTest Change-Id: I9baa53a462b97738e6dc471cf06c2b9230b92c1c (cherry picked from commit ef3f77f831445a75636b8dfb2ef4ca29db2d64e5)
* / / wifi: remove disable_framework option to pass the stopWifiFramework procedureRoshan Pius2021-10-181-2/+0
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: 201266536 Bug: 201184673 Test: atest --iterations 10 \ VtsHalWifiSupplicantV1_0TargetTest \ VtsHalWifiSupplicantV1_1TargetTest \ VtsHalWifiSupplicantV1_2TargetTest \ VtsHalWifiSupplicantV1_3TargetTest \ VtsHalWifiSupplicantV1_4TargetTest \ VtsHalWifiSupplicantP2pV1_0TargetTest \ VtsHalWifiSupplicantP2pV1_2TargetTest \ VtsHalWifiSupplicantP2pV1_4TargetTest Change-Id: Ia4a38c2e942681f323cf76941713c429e14870cc (cherry picked from commit 3a5858a7113491ac8964528a78710412933e50fc)
* | WIFI: Add log to debug onSubsystemRestartchenpaul2021-10-081-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | onSubsystemRestart should be triggered by wifi HAL when subsystem restart happened. Add log to debug why this callback function was not trigger at unexpected corner case. Bug: 201330066 Test: Manual test Change-Id: I160adc6006d078fcc72c1768927e87e378fd675e Merged-In: I160adc6006d078fcc72c1768927e87e378fd675e
* | Merge "Fix VtsHalWifiSupplicantV1_3TargetTest fail" into stage-aosp-sc-ts-devTreeHugger Robot2021-09-171-1/+0
|\ \
| * | Fix VtsHalWifiSupplicantV1_3TargetTest failhenry-th.yeh2021-09-161-1/+0
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* / vts(wifi): Stop wifi fully instead of stopping frameworkRoshan Pius2021-09-163-12/+49
|/ | | | | | | | | | | | | | | 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
* wifi: use 1.4 ISupplicant object for 1.4 vts testsJimmy Chen2021-08-051-1/+2
| | | | | | | | | This would ensure that 1.4 vts tests are run with ISupplicant 1.4 support. Bug: 194979754 Test: atest VtsHalWifiSupplicantV1_4TargetTest Change-Id: Ifaa3e1bb27f1df350b83fb7a4c05b6251a7c2d10
* Merge "Clear ringbuffer after dumping to file" into sc-devOscar Shu2021-07-123-2/+9
|\
| * Clear ringbuffer after dumping to filexshu2021-07-113-2/+9
| | | | | | | | | | | | | | | | | | | | 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
* | Merge "WIFI: Set MAC address for bridged interface" into sc-devLes Lee2021-07-023-11/+24
|\ \
| * | WIFI: Set MAC address for bridged interfaceLes Lee2021-07-023-11/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | wifi: add 1.5 HIDL service in lazy rcJimmy Chen2021-07-011-0/+1
|/ / | | | | | | | | | | | | | | 1.5 HIDL service is not declared in lazy init rc. Bug: 191940153 Test: atest VtsHalBaseV1_0TargetTest Change-Id: Idc4d01e9696c35c8fc2390a2639ff8d7ebf0bbf0
* / wifi: Update active iface when bridged AP instance downLes Lee2021-06-211-2/+10
|/ | | | | | | | | | | | 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
* WiFi: Modify OWNERS filesAhmed ElArabawy2021-06-1514-14/+14
| | | | | | | | Replace kumaranand@ with arabawy@ in OWNERS files Bug: 191158491 Test: None Change-Id: I585e95449e0aafdaa9687b363af0418032f41dfa
* Merge "Fix SetCountryCode test when US is not supported" am: 2585f44a6e am: ↵Jonathan Reichert2021-04-221-1/+6
|\ | | | | | | | | | | | | | | 931a68b2e5 am: b6deacd959 Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1662343 Change-Id: Ic21d2b3131ad4e5b610835de4efa29a6e5baf00b
| * Fix SetCountryCode test when US is not supportedHassen KETATNI2021-04-131-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge "wifi: correct WPA cipher GCMP-128 bit" into sc-devJimmy Chen2021-04-181-2/+2
|\ \
| * | wifi: correct WPA cipher GCMP-128 bitJimmy Chen2021-04-141-2/+2
| | | | | | | | | | | | | | | | | | Bug: 185202617 Test: atest VtsHalWifiSupplicantV1_4TargetTest Change-Id: I78fb68d0a4c046759592ceed7089a58c5ea69064
* | | Merge "Wifi: Add argument "WifiHandle" in ↵TreeHugger Robot2021-04-161-1/+1
|\ \ \ | | | | | | | | | | | | "wifi_set_subsystem_restart_handler"" into sc-dev
| * | | Wifi: Add argument "WifiHandle" in "wifi_set_subsystem_restart_handler"chenpaul2021-03-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 178126071 Bug: 183483123 Test: vendor HAL can received API call Change-Id: If9f4f25dcb5e63b43cf098e410aad308fb4edae6
* | | | Merge "Wifi HAL Multi STA: Clarify behavior during single STA" into sc-devDavid Su2021-04-131-5/+17
|\ \ \ \ | |_|/ / |/| | |
| * | | Wifi HAL Multi STA: Clarify behavior during single STADavid Su2021-04-121-5/+17
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | Firmware should maintain the last set multi STA use case & primary connection across periods of single STA. Bug: 183861582 Test: compiles Change-Id: Iab7b9298216a90ddcd792aec794266c9edb397fa
* / / hal(wifi): Replace rpius@ with kumaranand@ in OWNERSRoshan Pius2021-04-0914-14/+14
|/ / | | | | | | | | | | Bug: 184966495 Test: N/A Change-Id: Ib4cc2cc8479317b987edcdbcce0de4f699720cc3
* | Merge "Wifi: Add Radio ID in radiostats" into sc-devSunil Ravi2021-03-243-35/+58
|\ \
| * | Wifi: Add Radio ID in radiostatsSunil Ravi2021-03-223-35/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | Get the radio id from link layer radio stats to framework. Bug: 163103321 Test: VTS test - VtsHalWifiV1_5TargetTest Change-Id: I6958a5b78798edf8529032cd255c61ba6a442633
* | | Merge "wifi: Correct document for SAP 11AX mode" into sc-devLes Lee2021-03-241-1/+1
|\ \ \
| * | | wifi: Correct document for SAP 11AX modelesl2021-03-241-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Add API "startSubsystemRestart" and callback functionchenpaul2021-03-208-2/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Uprev IWifiEventCallback.hal to 1.5chenpaul2021-03-195-6/+66
|/ / | | | | | | | | | | | | Bug: 178126071 Test: atest VtsHalWifiV1_5TargetTest wifi basic function is workable Change-Id: I5f1897b6d4190d80eaf25eccea04ccfdbe4884c7
* | Merge "wifi: Add unit for API doc." into sc-devTreeHugger Robot2021-03-171-2/+2
|\ \
| * | wifi: Add unit for API doc.lesl2021-03-101-2/+2
| | | | | | | | | | | | | | | | | | | | | Bug: 181603380 Bug: 181246414 Test: Manual Test. SAP works normally. Change-Id: If06849ea5ae8a8ffa95abdb8f2d3f2ea337338ab
* | | Wifi: Invalid bandwidth crash handlingKumar Anand2021-03-161-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Treat WIFI_CHAN_WIDTH_INVALID(-1) and any other unknown bandwidth value as invalid. Bug: 182850702 Test: VTS - VtsHalWifiV1_5TargetTest Change-Id: Id25d50af9283b89f135a4f36e1f696f6db4e302e
* | | Merge "wifi: Add WFD R2 HAL API" into sc-devJimmy Chen2021-03-125-0/+220
|\ \ \
| * | | wifi: Add WFD R2 HAL APIJimmy Chen2021-03-125-0/+220
| |/ / | | | | | | | | | | | | | | | Bug: 179342930 Test: atest VtsHalWifiSupplicantP2pV1_4TargetTest Change-Id: I1c991fc6c3698eab1a32f728e9d71323a0103b21
* | | Merge "WiFi: Get peer information (BSS load and rate statistics) from link ↵Mingguang Xu2021-03-116-0/+184
|\ \ \ | | | | | | | | | | | | layer stats" into sc-dev
| * | | WiFi: Get peer information (BSS load and rate statistics) from link layer statsMingguang Xu2021-03-096-0/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 177069641 Test: atest VtsHalWifiV1_5TargetTest Signed-off-by: Mingguang Xu <mingguangxu@google.com> Change-Id: I3373d065a3b04d86f52d5bffe28d5581746cef4a
* | | | Merge "wifi: Wait for driver ready and bring up the interface when ↵Roshan Pius2021-03-1115-35/+58
|\ \ \ \ | |_|/ / |/| | | | | | | setMacAddress fails" into sc-dev
| * | | wifi: Wait for driver ready and bring up the interface when setMacAddress failsRoshan Pius2021-03-0315-35/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "wifi: change H2E mode API arguemnt to tri-state enumeration" into sc-devTreeHugger Robot2021-03-092-17/+40
|\ \ \ \ | |_|/ / |/| | |
| * | | wifi: change H2E mode API arguemnt to tri-state enumerationJimmy Chen2021-03-032-17/+40
| |/ / | | | | | | | | | | | | | | | Bug: 180532458 Test: atest VtsHalWifiSupplicantV1_4TargetTest Change-Id: Ibba7bf26e7bbe45cadc45c0e68d9fd56f4034923
* | | Merge "wifi: add comment for SAE_PK capability" into sc-devJimmy Chen2021-03-031-0/+1
|\ \ \
| * | | wifi: add comment for SAE_PK capabilityJimmy Chen2021-03-021-0/+1
| |/ / | | | | | | | | | | | | | | | Bug: 181603483 Test: atest VtsHalWifiSupplicantV1_4TargetTest Change-Id: If66f1ad0b3c44190beacb48c988c47fe8767bfee
* | | Merge "Wifi: Change the type from long to int for contention time ↵TreeHugger Robot2021-03-021-4/+4
|\ \ \ | |/ / |/| | | | | statistics" into sc-dev
| * | Wifi: Change the type from long to int for contention time statisticsMingguang Xu2021-02-241-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 172412545 Test: atest com.android.server.wifi Signed-off-by: Mingguang Xu <mingguangxu@google.com> Change-Id: I7d64013c63a38b85d4b0ea37cdc260a19049bfce