1/*
2 * Copyright 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.hardware.wifi.supplicant@1.2;
18
19import @1.1::ISupplicantStaIfaceCallback;
20import @1.0::Ssid;
21
22/**
23 * Callback Interface exposed by the supplicant service
24 * for each station mode interface (ISupplicantStaIface).
25 *
26 * Clients need to host an instance of this HIDL interface object and
27 * pass a reference of the object to the supplicant via the
28 * corresponding |ISupplicantStaIface.registerCallback_1_2| method.
29 */
30interface ISupplicantStaIfaceCallback extends @1.1::ISupplicantStaIfaceCallback {
31    /**
32     * Indicates DPP configuration received success event (Enrolee mode).
33     */
34    oneway onDppSuccessConfigReceived(Ssid ssid, string password, uint8_t[32] psk,
35        DppAkm securityAkm);
36
37    /**
38     * Indicates DPP configuration sent success event (Configurator mode).
39     */
40    oneway onDppSuccessConfigSent();
41
42    /**
43     * Indicates a DPP progress event.
44     */
45    oneway onDppProgress(DppProgressCode code);
46
47    /**
48     * Indicates a DPP failure event.
49     */
50    oneway onDppFailure(DppFailureCode code);
51};
52