Commit Graph

12 Commits

Author SHA1 Message Date
Sam Gao
eeb9e9dff4 Allow compilation without HS20/INTERWORKING
CONFIG_HS20 and CONFIG_INTERWORKING are used in wpa_supplicant
to enable or disable HotSpot 2.0 or ANQP respectively. These
defines were not checked in AIDL code, which assumed that
HS20 and INTERWORKING were enabled, and fails to compile when
they are disabled.

This patch compiles out the functions that require HS20 and
INTERWORKING when they are not enabled in android.config.

Upstream from Meta.

Test: Modify android.config and build for all configurations of
CONFIG_HS20 and CONFIG_INTERWORKING. WiFi continues to work fine.

Bug: 280661640

Signed-off-by: Sam Gao <ssgao@meta.com>

Change-Id: Ib95b798ea80c375f6922b4b46576578ad7c112c2
2023-05-04 12:15:05 +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