diff options
author | Hai Shalom <haishalom@google.com> | 2019-12-04 15:49:43 -0800 |
---|---|---|
committer | Hai Shalom <haishalom@google.com> | 2019-12-17 16:48:04 -0800 |
commit | 0676811be5ab5ef5c8f2b81bff8e0bb956fc7570 (patch) | |
tree | d826e62b850166d56182dd19a0349eae735c2e81 /wpa_supplicant/hidl/1.3/hidl_manager.h | |
parent | 115730a4a71190c2a3b619c3ca40f9e33e64eb9c (diff) | |
download | wpa_supplicant_8-0676811be5ab5ef5c8f2b81bff8e0bb956fc7570.tar.gz |
[DPP R2] Added support for DPP R2 events
Added support for DPP R2 events that provide additional
details about the onboarding process of a remote enrollee.
Specifically, DPP R2 configurator waits for response from
the enrollee, which reports back the SSID, tried channels
and band support in case it cannot find the AP. When it
reports success, then it means that it is acutally connected.
Bug: 139381558
Test: Manual tests with DPP R1 and R2 enrollees
Test: atest DppManagerTest
Test: act.py -c ../WifiDppConfig.json -tc WifiDppTest
Change-Id: I0eba7fcca016ebbdbbd1bd5b44f02837fd982466
Diffstat (limited to 'wpa_supplicant/hidl/1.3/hidl_manager.h')
-rw-r--r-- | wpa_supplicant/hidl/1.3/hidl_manager.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/wpa_supplicant/hidl/1.3/hidl_manager.h b/wpa_supplicant/hidl/1.3/hidl_manager.h index 1040b0cf..3394e4b0 100644 --- a/wpa_supplicant/hidl/1.3/hidl_manager.h +++ b/wpa_supplicant/hidl/1.3/hidl_manager.h @@ -133,8 +133,15 @@ public: void notifyDppConfigReceived(struct wpa_supplicant *wpa_s, struct wpa_ssid *config); void notifyDppConfigSent(struct wpa_supplicant *wpa_s); - void notifyDppFailure(struct wpa_supplicant *wpa_s, DppFailureCode code); - void notifyDppProgress(struct wpa_supplicant *wpa_s, DppProgressCode code); + void notifyDppSuccess(struct wpa_supplicant *wpa_s, DppSuccessCode code); + void notifyDppFailure(struct wpa_supplicant *wpa_s, + android::hardware::wifi::supplicant::V1_3::DppFailureCode code); + void notifyDppFailure(struct wpa_supplicant *wpa_s, + android::hardware::wifi::supplicant::V1_3::DppFailureCode code, + const char *ssid, const char *channel_list, unsigned short band_list[], + int size); + void notifyDppProgress(struct wpa_supplicant *wpa_s, + android::hardware::wifi::supplicant::V1_3::DppProgressCode code); void notifyPmkCacheAdded(struct wpa_supplicant *wpa_s, struct rsn_pmksa_cache_entry *pmksa_entry); @@ -210,6 +217,10 @@ private: const std::string &ifname, const std::function<android::hardware::Return<void>( android::sp<V1_2::ISupplicantStaIfaceCallback>)> &method); + void callWithEachStaIfaceCallback_1_3( + const std::string &ifname, + const std::function<android::hardware::Return<void>( + android::sp<V1_3::ISupplicantStaIfaceCallback>)> &method); template <class CallbackTypeDerived> void callWithEachStaIfaceCallbackDerived( const std::string &ifname, |