1/*
2 * Copyright (c) 2024 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * @brief Defines the callbacks of the Wpa module.
18 *
19 * The callback is invoked to continue the subsequent processing when the wpa supplicant restarts, hotspot scan ends,
20 * or a Netlink message is received.
21 *
22 * @since 5.0
23 * @version 1.0
24 */
25
26package ohos.hdi.wlan.wpa.v1_1;
27
28import ohos.hdi.wlan.wpa.v1_0.IWpaCallback;
29import ohos.hdi.wlan.wpa.v1_1.WpaTypes;
30
31[callback] interface IWpaCallback extends ohos.hdi.wlan.wpa.v1_0.IWpaCallback {
32   /**
33   * Used to indicate the start of a P2P group.
34   *
35   * @param groupStartedParam  Indicates the paramerter of Group Started.
36   * @param ifName Indicates the NIC name.
37   * @param ranmdomMac Indicates p2p-p2p0-x mac.
38   *
39   * @since 5.0
40   * @version 1.0
41   */
42   OnEventGroupInfoStarted([in] struct HdiP2pGroupInfoStartedParam groupStartedParam, [in] String ifName);
43
44   /**
45    * Used to indicate the timeout of a authentication connection attempt from the currently wifi
46    * network on this iface.
47    *
48    * @param ifName Indicates the NIC name.
49    *
50    * @since 5.0
51    * @version 1.0
52    */
53   OnEventAuthTimeout([in] String ifName);
54}
55