Commit Graph

23 Commits

Author SHA1 Message Date
Sunil Ravi
33e95b2400 Merge "wifi: Add the connected frequency in the state change event" 2022-12-14 04:55:50 +00:00
Sunil Ravi
29a155c3bd Merge "Send channel change event to framework" 2022-12-13 21:18:53 +00:00
Sunil Ravi
e27eec8c8d Send channel change event to framework
Added a new StaIfaceCallback method to indicate that
the operating frequency of the BSS is changed
due to channel switch announcement from the AP.

Bug: 195617184
Test: Manually triggered channel switch through peer AP hostapd command
      and verified the new frequency in STA logs.
Change-Id: I2b07a5318766c93867d713eae5412046b9e6c295
2022-12-10 23:03:47 +00:00
Sunil Ravi
eb7ec76931 wifi: Add the connected frequency in the state change event
Currently framework gets the connected AP frequency
information by checking the scan cache & through signal
poll command. But these mechanisms doesn't work if framework
scan cache is not updated with the connected AP information
(For example in case of roaming and force connection without scan).
To fix this modified supplicant state change interface
and included the frequency of the connected channel in the
state change event.

Bug: 240299862
Test: Manual - Tested STA - AP connection and verfied the data
      from debug logs.
Change-Id: I5b6b375edea1bc645d0745bb0d718322917ad585
2022-12-10 21:02:48 +00:00
TreeHugger Robot
aea370b334 Merge "notify the AT_PERMANENT_ID_REQ is denied from peer." 2022-12-10 05:21:42 +00:00
Steven Liu
850c2e06fc notify the AT_PERMANENT_ID_REQ is denied from peer.
Bug: 239710602
Test: atest VtsHalWifiSupplicantStaNetworkTargetTest
Change-Id: I02703a8df13c9b1a0be0854c4dbef1a13d3d122a
2022-12-09 23:56:34 +00:00
Sunil Ravi
546a7b5268 Process DPP connection status result
Modified the DPP configuration received callback
function to include the connection status requested
flag.
Added a new callback function to indicate to the
framework that DPP connection status frame is sent

Bug: 235844564
Test: Manual - Ran DPP tests and confirmed that
      connection status frame is processed correctly
Change-Id: I7e4af2e88abc16e32856f19750520d74e7736653
2022-11-30 23:23:52 +00:00
TreeHugger Robot
198d0e8c62 Merge "wifi: implement onStateChangedWithAkm" 2022-11-22 18:50:09 +00:00
Jimmy Chen
702892971b wifi: implement onStateChangedWithAkm
The actual used keymgnt is passed in the association frame
and will update to the current key management.

Bug: 230766005
Test: atest vts
Change-Id: I7e0719c8426bc5ccafff60ea38d49caf93036741
2022-11-16 01:44:35 +00:00
Biswarup Pal
4b63c39b4c Send interface address in GO from supplicant event
Test: manual
Bug: 233912758
Change-Id: Ibff050d8e7294401dbcf67c0d28a5714945dafb5
2022-11-15 23:02:00 +00:00
Biswarup Pal
68f900b74b Send the GO interface MAC address as part of supplicant event in GC
The GO interface MAC address would be used to calculate the link-local
IPv6 address of the GO in the GC side.

Test: m
Bug: 233912758
Change-Id: Ie4178da948c56ea01c96e084d4ff145f74302871
2022-11-15 09:55:41 +00:00
Gabriel Biren
56b62df231 Log interface version during initialization in
the hostapd and supplicant services.

Bug: 202302891
Test: Manual test - check for output
Change-Id: I0b9876829059627566ad80baabee8a56acf5810a
2022-06-16 17:38:54 +00:00
Sunil Ravi
65a724befe Modified frequency changed event to framework
Removed the logic to send frequency
changed event to framework, on receiving
WPA_BSS_FREQ_CHANGED_FLAG attribute change.
This is because, this event is specific to
STA side functionality. Added a new frequency
changed notification handler. Send the new
frequency to framework from this handler.

Bug: 233074707
Test: Manual - Established P2P connection & confirmed from logs
      that channel change event is received correctly on
      framework side(used wpa_cli -i<ifname>
      chan_switch 10 2412 0 2412 2412 to trigger channel switch)
Change-Id: I75d3c9ad3ab357ee0d8d9e58bf38870bb3a21e98
2022-05-24 12:36:54 -07:00
Shivani Baranwal
84940f8482 wpa_supplicant: Add changes to support QoS policy AIDL APIs
Add implementation for the QoS policies AIDL API requests and callbacks.

Bug: 191426881
Test: m
Change-Id: Id282577a23408e2297626b0f259d31fa30975f64
2022-05-04 23:25:53 +00:00
Purushottam Kushwaha
083fd59340 AIDL: DPP-AKM configuration support in configurator/enrollee roles.
This CL adds DPP-AKM based configurator intiator, enrollee responder
and network connection support.

Bug: 207732665
Test: Manual - connect/disconnect to DPP-AKM AP
Test: Manual - STA connect/disconnect to WPA2 & SAE AP
Test: DPP acts tests - act.py -c config_dpp.txt -tc WifiDppTest
Change-Id: Ifecae094263a57257269ec26c5ed19c9e4b1f982
Signed-off-by: Purushottam Kushwaha <quic_pkushwah@quicinc.com>
2022-04-11 19:01:35 -07:00
Gabriel Biren
3a2ec2ce7c Notify the framework when an auxiliary event
occurs in wpa_supplicant.

Auxiliary events include:
  - EAP_METHOD_SELECTED
  - SSID_TEMP_DISABLED
  - OPEN_SSL_FAILURE

Bug: 226140098
Bug: 165342942
Test: Manual test - trigger events and check that
      onAuxilliaryEvent callback was called.
Change-Id: Ia1f137ddc1a4d91049668d6436652a0ad749c74f
2022-03-23 15:26:09 +00:00
Gabriel Biren
0b255145a4 Update supplicant service to call onEapFailure with the
new bssid argument.

Bug: 165342942
Test: atest VtsHalWifiSupplicantStaIfaceTargetTest
Change-Id: I9f6d7f9c2a38c8b397d3f5c933ff19f8db20bf75
2022-02-23 17:08:29 +00:00
Sunil Ravi
ea6690a3ec Merge "DPP [AIDL]: Add support for DPP-AKM based profile configuration." 2022-02-12 02:26:02 +00:00
Purushottam Kushwaha
219c5ae75f DPP [AIDL]: Add support for DPP-AKM based profile configuration.
This CL adds Configurator mode, Enrollee mode and connection setup
with DPP-AKM profile.

Bug: 207732665
Test: Manual - Basic wifi functional testing
Change-Id: Iebc7ae02664643b3e9fcdd8bab61ba151b9f1ac6
Signed-off-by: Purushottam Kushwaha <quic_pkushwah@quicinc.com>
2022-02-10 20:22:08 -08:00
Jimmy Chen
d148c62736 p2p: implement new HAL API to pass vendor extras
Bug: 197695047
Test: atest VtsHalWifiSupplicantStaIfaceTargetTest \
            VtsHalWifiSupplicantStaNetworkTargetTest \
            VtsHalWifiSupplicantP2pIfaceTargetTest
Change-Id: I8d3905a48b1f8ec0cbee4657d2824275d55537a5
2022-01-28 16:56:32 +08:00
Jimmy Chen
429daf91c6 wifi: implement certificate HAL callback for Trust On First Use support
Bug: 196180536
Test: atest VtsHalWifiSupplicantStaIfaceTargetTest \
            VtsHalWifiSupplicantStaNetworkTargetTest \
            VtsHalWifiSupplicantP2pIfaceTargetTest

Change-Id: Ifdba307dee9003054f897db57a9f207ebc198cb4
2022-01-13 10:59:45 +08:00
Sunil Ravi
23087aade7 Send frequency changed event to framework
When supplicant receives the channel change event
(NL80211_CMD_CH_SWITCH_NOTIFY) from driver, send
the new operating frequency information to framework.

Bug: 202758240
Test: Manually triggered channel switch through hostapd command
    and verified the new frequency in p2p group info logs
Change-Id: I05f10077ac497b934eb2c0560e179cdf4ed1497f
2022-01-06 14:21:31 -08:00
Gabriel Biren
57ededa148 Convert supplicant service to use new AIDL interface.
Bug: 196235436
Test: Pass AIDL VTS tests and regression tests.
Change-Id: I0d7b75f526c13fc655a023d7dca088339b06b28e
2021-12-23 00:37:40 +00:00