Commit Graph

18 Commits

Author SHA1 Message Date
Sunil Ravi
8bae4256a8 wifi: Added group interface name in P2pProvisionDiscoveryCompleted event
Added group interface name in the notification of provision discovery
frame. A group interface name will be added if the provision discovery
request contains P2P Group ID attribute. i.e.,  when the Peer device tries
to join the existing P2P group owner.

Bug: 296063280
Test: vts test
Test: Ran P2P negotiated connection tests via Wi-Fi Direct settings
      window.
Change-Id: I89c6d64b6d4095ac95cef1fbcd041f7c2dd74647
2023-11-20 20:51:42 +00:00
Sunil Ravi
d8128a2963 Notify the IP address of connected client
When the wpa_supplicant assigns the IP address
(WFA EAPOL IP address allocation feature),
the assigned IP address of the client on the GO side
is notified in the AP-STA-CONNECTED event.
So to obtain the IP info to framework , modified the
AIDL SupplicantP2pIfaceCallback#onStaAuthorized to
include group interface name and the assigned IP of client.

Bug: 291202830
Test: Establish P2P connection and verified from the logs that
      the P2P Client IP address is received to framework via new
      HAL API.
Change-Id: I5f9f9362d5942c9c29d5dbc020eb93ba7a69ba1a
2023-11-10 00:16:52 +00:00
Veerendranath Jakkam
bc2fa4992e Add support to indicate link info changes to framework
Add support to notify link reconfiguration and TID-to-link mapping
changes to framework.

Bug: 259710591
Test: Regression test (b/289297084)
Change-Id: Ie4e286dd89990c08fdf0be43efeb192770d480e6
2023-08-04 16:50:23 +00:00
Xinyue Ling
1629ad8e9f Add callback path from wpa_supplicant core to AidlManager::listAliases.
Order of calls is:
1. wpas_list_aliases (notify.c)
2. wpas_aidl_list_aliases (aidl.cpp)
3. listAliases (aidl_manager.cpp)

Bug: 281566895
Test: m
Change-Id: If9b97f8cf1088ac001891e1722871761601c61a7
2023-05-11 21:06:06 +00:00
Swarn Singh
c450e7b5d8 AIDL: Implement QoS SCS policy stub APIs
Add implementation for QoS SCS policy APIs and callbacks:
 - addQosPolicyRequestForScs
 - removeQosPolicyForScs
 - removeAllQosPoliciesForScs
 - onQosPolicyResponseForScs

Bug: 236182432
Test: m
Change-Id: Ie6c66e2e6783c20c8754ce9e7bfdd31eacc4f29e
2023-04-14 16:53:54 +00:00
Sunil Ravi
68c25c259b IP Address Allocation in EAPOL-Key Frames
Implementation of Wi-Fi P2P Technical Specification v1.7 - Section  4.2.8
"IP Address Allocation in EAPOL-Key Frames (4-Way Handshake)".

Changes includes,
1. Configure the IP addresses in supplicant for P2P GO to provide the IP address to
client in EAPOL handshake.
2. Send the received IP address information to framework.

Bug: 170056953
Test: Manual - Establish P2P connection & confirmed from sniffer logs
      and logcat logs that IP addresse is allocated via EAPOL exchange.
      Ping works after connection.
Change-Id: I5978708b098e57e48db52dae14f9bbba28199f2d
2023-02-10 22:07:36 +00:00
Gabriel Biren
75efb07d29 Fix typo in wpas_aidl_notify_p2p_device_found.
Bug: 263433038
Test: m
Change-Id: Iddcf013c0dabe83c418a5714ffba77f25bcf8ed3
2023-02-02 18:10:52 +00:00
Shivani Baranwal
c58b609e59 Add Aidl changes to support enable/disable CONFIG_CTRL_IFACE_AIDL flag
Implementation to make compatible with both enabled and disabled
CONFIG_CTRL_IFACE_AIDL flag.

Bug: 263433038
Test: make   # tested with flag enabled and disabled
Change-Id: If88de5d3d9302d97b7236ce9aa321f8337312cc8
2023-01-25 20:56:20 +00:00
Gabriel Biren
933982327f Add callback path from wpa_supplicant core to
AidlManager::getCertificate.

Order of calls is:
1. eapol_sm_get_certificate (eapol_supp_sm.c)
2. wpa_supplicant_get_certificate_cb (wpas_glue.c)
3. wpas_get_certificate (notify.c)
4. wpas_aidl_get_certificate (aidl.cpp)
5. getCertificate (aidl_manager.cpp)

Bug: 205764502
Test: Manual test - store a key-value pair to
      legacy Keystore. Check that we can retrieve
      the value in supplicant using the new callbacks.
Change-Id: Ibe1fc5a2c50b818101c194bf739632d4c2a302a4
2022-12-20 01:01:27 +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
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
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
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