aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-12-06Update the scan results immediately after adding the interfaceandroid-12.1.0_r9android-12.1.0_r8android-12.1.0_r7android-12.1.0_r22android-12.1.0_r21android-12.1.0_r20android-12.1.0_r19android-12.1.0_r11android-12.1.0_r10android12L-devandroid12-qpr3-s7-releaseandroid12-qpr3-s6-releaseandroid12-qpr3-s5-releaseandroid12-qpr3-s4-releaseandroid12-qpr3-s3-releaseandroid12-qpr3-s2-releaseandroid12-qpr3-s1-releaseandroid12-qpr3-releaseSunil Ravi
After adding the newly created interface, request the current scan results from the driver and updates the local BSS list wpa_s->bss. This is to avoid a full scan while processing the connect request on the newly created interface. Bug: 202249262 Test: Ran Nearby hotspot test and confirmed that STA is able to connect with in 500ms. Test command is ./testing/mobile/devicewhisperer/tests/nearby/connections/run.sh E2E_P2P_POINT_TO_POINT_WIFI_HOTSPOT_UPGRADE Change-Id: I5a74975fcfed7bbbff7a16acbecafd0a6570609d Merged-In: I5a74975fcfed7bbbff7a16acbecafd0a6570609d (cherry picked from commit d3bdd9ed62546437d1e717a6e7f718780ae1b537)
2021-10-27wifi: Inform framework HAPD_IFACE_DISABLED when AP iface unavailableYu Ouyang
This change adds callback to inform framework AP interface HAPD_IFACE_DISABLED when driver event INTERFACE_UNAVAILABLE. Bug: 197292709 Test: Local build & manual test disable/enable Wi-Fi Change-Id: I8b6bad1a6444737e7cdbaaedb1eb0c85a86eb240 Merged-In: I8b6bad1a6444737e7cdbaaedb1eb0c85a86eb240
2021-10-05Prefer channel from P2P Preferred channel list for P2P Group formation am: ↵Vinayak Yadawad
70e5f9dcf6 Original change: https://googleplex-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/15978169 Change-Id: I576b6d7e6eecd16b164153feabfb642302c20784
2021-10-05Prefer channel from P2P Preferred channel list for P2P Group formationVinayak Yadawad
In a STA connected case, the P2P prefers STA channel over the channel from Preferred frequency list mentioned in config file during P2P group formation. The current change prioritizes usage of preferred frequency list over STA channel. Bug: 197360994 Test: Tested P2P connection in STA disconnected, STA connected to 2G and STA connected to 5G cases. Signed-off-by: Vinayak Yadawad <vinayak.yadawad@broadcom.com> Change-Id: I3325a060b5975aedc247ee5eb8c01831a245efc4 Merged-In: I3325a060b5975aedc247ee5eb8c01831a245efc4 (cherry picked from commit 8db34573537efdb1c811e19c7b93ed4f3bb01d4a)
2021-09-24wifi: Fix incorrect iface when handling interface init failure am: f0def8fc18Les Lee
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/15888531 Change-Id: Ib19a5f0c46b280f467890457ca83391dce75b22c
2021-09-23wifi: Fix incorrect iface when handling interface init failureLes Lee
The hostapd should report bridged AP iface failure to the frameworks in bridged AP use case. Bug: 200272186 Test: Manual Test, simulate interface init failure and check the result. Change-Id: I32e88fd6beca0aeb81c89648c6a950b69e65cef7
2021-08-25p2p: remove all p2p groups when p2p dev interface is removed. am: 7a3f120155Jimmy Chen
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/15659827 Change-Id: I1cdc491e3dc9269610353f59b42998eda228c9a7
2021-08-25p2p: remove all p2p groups when p2p dev interface is removed.Jimmy Chen
The p2p dev interface is not a top interface, but a child of the global interface. When this interface is removed, p2p groups will not be removed. To avoid leaking p2p groups, p2p groups should be removed when p2p dev interface is removed. Bug: 195618672 Test: create a group and remove the top interface by wpa_cli command. Change-Id: Ia3e0c0512314ae55dee9a81661f51eee6e8e3428 Merged-In: Ia3e0c0512314ae55dee9a81661f51eee6e8e3428 (cherry picked from commit 0e73c009c960899568be5976bffdd77d836e959a)
2021-08-06keystore: Fix PEM certs handling am: 7ad2a87249Hai Shalom
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/15433405 Change-Id: I2a4c61c38ce1be82ecbd0aed0b19b7b4d4ecf880
2021-08-06keystore: Fix PEM certs handlingandroid12-devHai Shalom
Remove the DER encoding processing since keystore is guaranteed to provide PEM encoded certificates. Clean up hard-coded strings/values, and use better variable names. Bug: 190223327 Test: Connect to enterprise networks using EAP-TTLS and EAP-TLS to verify that both Root CA and client certificates are parsed correctly, and verify logs. Test: Regression test passed (b/195536535) Change-Id: I79ca980599fa753392b5192e9d5872d435c815b0
2021-06-30Update GO operating frequency after interface setup is completed. am: 236f0f571dSunil Ravi
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/15139488 Change-Id: I7e6e4a1d716d86ecf5c4bd2987e8b690f948a219
2021-06-29Update GO operating frequency after interface setup is completed.Sunil Ravi
Once the GO/AP interface initialization is completed, check if the operating frequency set in wpa_supplicant group interface structure is different than the one set in hostapd interface structure associated with the group interface. If yes, update frequency in wpa_supplicant group interface and Network configuration to the frequency set in hostapd interface structure. The frequency set in hostapd interface is the correct/final frequency supplicant configured in kernel/driver. This is done because supplicant may switch the initially requested primary and seconday frequencies to get secondary frequency with no beacons (To avoid interference or 20/40 coex logic). And the updated frequency is informed by driver only after the interface setup is completed through channel switch event - EVENT_CH_SWITCH. But supplicant update the frequency to applications through P2P_GROUP_STARTED event which is triggered before EVENT_CH_SWITCH event. To send the correct frequency to applications the frequency must be updated before sending P2P_GROUP_STARTED event. Bug: 191272346 Test: Manual - Verified that GO frequency is updated and reported correctly to Nearby application. Change-Id: I70910365b8acebfbefdd853e7a6cd3f9f6ec6a5c
2021-06-22Added changes to handle Legacy FT test cases. am: eaaf04ea4fMir Ali
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/15066394 Change-Id: Ia0788ebfb2650f7806a0ec586561785ea7621010
2021-06-22Added changes to handle Legacy FT test cases.Mir Ali
1. Current checks included only SAE_FT AKM for state machine handling.Added additional checks for legacy FT AKM's. 2. As part of GTK rekey, the keys generated in the DHD post FT roam should be updated to the supplicant. Added support for private command to fetch these keys Bug: 187705876 Test: Validated on Android S slider Signed-off-by: Mir Ali <mir-khizer.ali@broadcom.com> Change-Id: I84499c1692538593b50b15cd53a7a9fd770f4f0c
2021-06-22Merge "Use a shorter wait time for p2p connect with operating frequency" ↵TreeHugger Robot
into sc-dev am: ca924c1648 Original change: https://googleplex-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/15057013 Change-Id: I089a75230a93de58bfbbd07146c028e972c9157f
2021-06-22Merge "Use a shorter wait time for p2p connect with operating frequency" ↵TreeHugger Robot
into sc-dev
2021-06-21Use a shorter wait time for p2p connect with operating frequencySunil Ravi
If supplicant is receiving the connect request with GO operating frequency, then application(caller) must be already knowing and sure that GO is operating on that frequency. So if the GO is not seen in the first scan attempt, it is not worth waiting for 1 second to trigger the next scan. It's better to finish scans quickly and report the Join failure to application. This will help applications to trigger another Join attempt with a band information or without band or frequency information. To speed up the scan, reduced the scan interval for single channel scan from 1 sec to 200 milli seconds. Bug: 191718156 Test: Manual - Triggered P2P join request with channel, band, no channel/band and verified the scan times. Change-Id: I44e22f8e3a4d7460466b3e102f2d0c92038914d1
2021-06-17Merge "Fix for dropping p2p group remove event in HIDL" into sc-dev am: ↵Sunil Ravi
fac34aee1d Original change: https://googleplex-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/15005119 Change-Id: Ib5712594d3c84d3807dfe2ed5de1db14fe05b7d6
2021-06-17Merge "Fix for dropping p2p group remove event in HIDL" into sc-devSunil Ravi
2021-06-16Fix for dropping p2p group remove event in HIDLSunil Ravi
On implemetations where p2p device interface's parent is sta interface(wlan0), p2p supplicant HIDL fails to find the p2p device interface to notify the p2p group event. This happens when p2p client fails to find the auto GO to connect. In this particular case p2p group interface is not created. So supplicant HIDL calls wpas_notify_p2p_group_removed() by passing p2p device interface. Function getTargetP2pIfaceForGroup() which finds the device interface is not taking care of the implementations where p2p device interface is created under wlan0 interface. So to fix this issue added a case to check if received interface is a p2p device interface. Bug: 191155391 Test: Manual - Triggered p2p connect failure and confirmed that p2p group removed event is sent to framework. Change-Id: I6fb6bbb89a329d2fb641dfcbcc6f128e3827a3b0
2021-06-15WiFi: Modify OWNERS files am: a9478a90f9Ahmed ElArabawy
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/14984553 Change-Id: I66e853a00bb3cf522a1505826e204b3ebc432094
2021-06-15WiFi: Modify OWNERS filesAhmed ElArabawy
Replace kumaranand@ with arabawy@ in OWNERS files Bug: 191158491 Test: None Change-Id: Ib1fec05b55c8ae2cf29c44d49530c684e97840a8
2021-06-11Decouple btm_offload feature from MBO feature am: 84bb3e1228Sunil Ravi
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/14937871 Change-Id: I3b5151dc782b61c1ec5cc6d474a5616750be1a00
2021-06-10Decouple btm_offload feature from MBO featureSunil Ravi
btm_offload feature is not tied to MBO feature. So if btm_offload feature is enabled, skip the roaming algorithm even if there are no MBO IEs in BTM frame. Bug: 190231636 Test: Manual - Roaming test Change-Id: Ib6e76ca11e93f0fff74ed5bd836346b1e1446a5f
2021-06-08P2P: Try fast associate if p2p GO is found in external scan am: b3986b859dSunil Ravi
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/14782089 Change-Id: Ibf7a77d19590c41bf348d818de7bfcab4279a08b
2021-06-04P2P: Try fast associate if p2p GO is found in external scanSunil Ravi
Before supplicant issues a scan to driver, check if p2p GO was found in external scan. If yes, try to do a fast associate. Bug:187543099 Test: Manual-File transfer using Nearby APP and check the connection latency. Change-Id: Idf91d51c08023c4b7a09484cfcce1d271f032589
2021-06-01HIDL: set he_oper_chwidth=1 to allow 80Mhz bandwidth. am: 33dcaa5b0dPurushottam Kushwaha
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/14735895 Change-Id: I1189cd2d660f7a6bba639b402e2855f88b09d122
2021-05-31HIDL: set he_oper_chwidth=1 to allow 80Mhz bandwidth.Purushottam Kushwaha
For targets where CONFIG_IEEE80211AX is enabled, 80/160/80+80 bandwidth is decided based on he_oper_chwidth. This commit is to enable 80MHz by default. Bug: 189297518 Test: Manual - Turn on Hotspot and check BW settings in logs Change-Id: If76030681e71014f9df073e9c28ec43a6d6a75b2 Signed-off-by: Purushottam Kushwaha <quic_pkushwah@quicinc.com>
2021-05-08[automerger skipped] Merge "DO NOT MERGE - Mark RQ2A.210105.001 as merged." ↵Xin Li
am: 70cf7b1a4b -s ours am: 6f668cc08d -s ours am: 79b3c1bed7 -s ours am skip reason: subject contains skip directive Original change: https://android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/1699956 Change-Id: I8551a032be19c11f18cacea4df4d79c7f0306ea8
2021-05-08[automerger skipped] Merge "DO NOT MERGE - Mark RQ2A.210105.001 as merged." ↵Xin Li
am: 70cf7b1a4b -s ours am: 6f668cc08d -s ours am skip reason: Merged-In I362a580824bf8feea87ea4ed2895af279b3fbc36 with SHA-1 5697f3dc40 is already in history Original change: https://android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/1699956 Change-Id: I761a23aebf90e04b600eb917112b390a0dc75705
2021-05-08[automerger skipped] Merge "DO NOT MERGE - Mark RQ2A.210105.001 as merged." ↵Xin Li
am: 70cf7b1a4b -s ours am skip reason: Merged-In I362a580824bf8feea87ea4ed2895af279b3fbc36 with SHA-1 5697f3dc40 is already in history Original change: https://android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/1699956 Change-Id: Ie3178133719ba40a0769186d5e2c4b86b6314944
2021-05-08Merge "DO NOT MERGE - Mark RQ2A.210105.001 as merged."android-s-beta-2android-s-beta-1Xin Li
2021-05-07DO NOT MERGE - Mark RQ2A.210105.001 as merged.Xin Li
Bug: 180401296 Merged-In: I362a580824bf8feea87ea4ed2895af279b3fbc36 Change-Id: Ib684ac390a44dd95cc96f8a112e82b2876c352bd
2021-05-05optimize the p2p client scan timeSunil Ravi
1. Reduced the total number of scans to find an auto GO from 10 to 3. 2. Optimized the overall scan duration for band scan, ie, a. In the first two scans, include all the channels except DFS channels. c. In the third attempt, include all the channels. 3. When framework gives a specific frequency to connect, no need to check if the frequency is allowed for p2p operation. Instead check the frequency is allowed as per the regulatory. If the channel is not allowed to operate, return failure to application. This is to allow devices to scan passive channel and connect(GO takes the master responsibilities). Bug: 186675298 Test: File transfer using nearby APP Change-Id: Icf3494d4c655d85ce9f67e4f90632022303a7e75
2021-05-03wifi: enfoce H2E for 6Ghz BSSJimmy Chen
Bug: 167634062 Test: atest VtsHalWifiSupplicantV1_4TargetTest Change-Id: I83a46c299d69c71e0595bb30ef93193bf58fe813
2021-04-14Merge "optimize p2p scan time in finding auto GO" into sc-devSunil Ravi
2021-04-13optimize p2p scan time in finding auto GOSunil Ravi
When populating the scan params frequency list, get the channel list from p2p supported channels instead of getting all the channels corresponding to a band. Bug: 185079998 Test: Manual - Establish P2P connection Change-Id: I922621ce7eab3ac7630c322d3ef70e7181700947
2021-04-12supplicant: Remove rpius@ from OWNERSRoshan Pius
Add hai & kumar to the owner's list. Bug: 184966495 Test: N/A Change-Id: Id92399fa7fb966e2ecde806c95d6acdf88275fe4
2021-04-03Merge "[wpa_supplicant] Read certificates from keystore in DER format" into ↵Hai Shalom
sc-dev
2021-04-03[wpa_supplicant] Read certificates from keystore in DER formatHai Shalom
Read Root CA and user certificates from keystore in DER format. Only if it fails, try to use PEM format for backward compatibility. Bug: 184298873 Test: Connect to Wi-Fi networks with EAP-TLS and EAP-TTLS and verify logs. Change-Id: I599e55485a89b2d18e29df0f347cfe4c1d9dba15
2021-04-02Merge "Revert "Wifi: Support NVT-ASCII in passphrase"" into sc-devIsaac Chiou
2021-04-02Revert "Wifi: Support NVT-ASCII in passphrase"Isaac Chiou
This reverts commit 8ba146cefb5bcb30c82228870ca1ee06b78d8743. Reason for revert: Based on 802.11i specification, this patch is not necessary. Bug: 129974610 Test: Build pass. WiFi connection works. Change-Id: I0046bb67bf2a3c1f265bc72f75e59ab1c43a4842
2021-03-31[automerger skipped] Merge "P2P: Fix a corner case in peer addition based on ↵Hai Shalom
PD Request" into pi-dev am: 47afebf11e -s ours am: b897a71946 -s ours am: 5a7b49e449 -s ours am: 687ceb1bd2 -s ours am: fc5f237fcf -s ours am skip reason: skip tag Change-Id Ief7781491bd545fc1028b9b386fe7a4564102848 with SHA-1 61dece6d28 is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/13856735 Change-Id: I9ea3cb99205be635bf385501e24e243378591857
2021-03-31[automerger skipped] P2P: Fix a corner case in peer addition based on PD ↵Hai Shalom
Request am: 61dece6d28 am: 3d4eb0e32c am: 45e9e4223b am: 8c2db50b5d am: a3aff44978 am: 5e0845cf63 -s ours am skip reason: skip tag Change-Id Ief7781491bd545fc1028b9b386fe7a4564102848 with SHA-1 61dece6d28 is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/13875752 Change-Id: I744a3a06e9dfac4a3a80f1b9eda8e110df9f6b95
2021-03-31[automerger skipped] Merge "P2P: Fix a corner case in peer addition based on ↵Hai Shalom
PD Request" into pi-dev am: 47afebf11e -s ours am: b897a71946 -s ours am: 5a7b49e449 -s ours am: 687ceb1bd2 -s ours am: fa28000fe6 -s ours am: f0a2208e5a -s ours am skip reason: skip tag Change-Id Ief7781491bd545fc1028b9b386fe7a4564102848 with SHA-1 61dece6d28 is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/13856735 Change-Id: I8b278756ec767fb4dfb681f3a89dbd4e1ed7f29b
2021-03-31[automerger skipped] P2P: Fix a corner case in peer addition based on PD ↵Hai Shalom
Request am: 61dece6d28 am: 3d4eb0e32c am: 45e9e4223b am: 8c2db50b5d am: a3aff44978 am: 4d9d73f395 am: a33c302abf -s ours am skip reason: skip tag Change-Id Ief7781491bd545fc1028b9b386fe7a4564102848 with SHA-1 c09ec81589 is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/13875752 Change-Id: I88f4ca93ad1ef63a6d47f4d29f85dc0ffd666f63
2021-03-31[automerger skipped] P2P: Fix a corner case in peer addition based on PD ↵Hai Shalom
Request am: 8b68d7983c am: 112b4b26fc am: 98b18db49a am: b6d0694d7a am: 978c85494d -s ours am skip reason: skip tag Change-Id Ief7781491bd545fc1028b9b386fe7a4564102848 with SHA-1 c09ec81589 is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/13856733 Change-Id: I472a3df0725d368e5fc2a9f20a6821589ee94acc
2021-03-31[automerger skipped] P2P: Fix a corner case in peer addition based on PD ↵Hai Shalom
Request am: 8b68d7983c am: 112b4b26fc am: 98b18db49a am: d3788476a6 -s ours am skip reason: skip tag Change-Id Ief7781491bd545fc1028b9b386fe7a4564102848 with SHA-1 c09ec81589 is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/13856733 Change-Id: Ia6d641f6d851292fe05df47a16ef4603b214700d
2021-03-31[automerger skipped] Merge "P2P: Fix a corner case in peer addition based on ↵temp_ab_7272582Hai Shalom
PD Request" into pi-dev am: 47afebf11e -s ours am: b897a71946 -s ours am: 5a7b49e449 -s ours am: 687ceb1bd2 -s ours am: fa28000fe6 -s ours am skip reason: skip tag Change-Id Ief7781491bd545fc1028b9b386fe7a4564102848 with SHA-1 61dece6d28 is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/13856735 Change-Id: I5b1d6989e769ac7e412fa5d74747267ff4936d74
2021-03-31P2P: Fix a corner case in peer addition based on PD Request am: 61dece6d28 ↵Hai Shalom
am: 3d4eb0e32c am: 45e9e4223b am: 8c2db50b5d am: a3aff44978 am: 4d9d73f395 Original change: https://googleplex-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/13875752 Change-Id: I39153c7f6eb9ddb912f2884941d845f3dda81e8a