1/* 2 * Copyright (c) 2023 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 * @addtogroup Hostapd 18 * @{ 19 * 20 * @brief Defines APIs for the upper-layer WLAN service. 21 * 22 * You can use the APIs to enable or disable a WLAN hotspot, scan for hotspots, connect to a WLAN hotspot, 23 * manage WLAN chips, network devices, and power, and apply for, release, and move network data buffers. 24 * 25 * @since 4.1 26 * @version 1.0 27 */ 28 29/** 30 * @file IHostapdCallback.idl 31 * 32 * @brief Provides callbacks to be invoked when the hostapd is restarted, the scan result is returned, 33 * and a Netlink message is received. 34 * 35 * @since 4.1 36 * @version 1.0 37 */ 38 39/** 40 * @brief Defines the package path of the WLAN module interface. 41 * 42 * @since 4.1 43 * @version 1.0 44 */ 45package ohos.hdi.wlan.hostapd.v1_0; 46 47import ohos.hdi.wlan.hostapd.v1_0.HostapdTypes; 48 49/** 50 * @brief Interface for hostapd callback. 51 * 52 * The callback is invoked to continue the subsequent processing when the hostapd restarts, hotspot scan ends, 53 * or a Netlink message is received. 54 * 55 * @since 4.1 56 * @version 1.0 57 */ 58[callback] interface IHostapdCallback { 59 /** 60 * @brief Wi-Fi Hal calls back the STA to join the AP. 61 * 62 * @param staJoinParm Indicates the sta join content. 63 * @param ifName Indicates the NIC name. 64 * 65 * @since 4.1 66 * @version 1.0 67 */ 68 OnEventStaJoin([in] struct HdiApCbParm apCbParm, [in] String ifName); 69 70 /** 71 * @brief Wi-Fi Hal callback AP status. 72 * 73 * @param apStateParm Indicates the ap state content. 74 * @param ifName Indicates the NIC name. 75 * 76 * @since 4.1 77 * @version 1.0 78 */ 79 OnEventApState([in] struct HdiApCbParm apCbParm, [in] String ifName); 80 81 /** 82 * Used to handle Hostapd callback parameters 83 * 84 * @param notifyParam Indicates the paramerter of Hostapd. 85 * @param ifName Indicates the NIC name. 86 * 87 * @since 4.1 88 * @version 1.0 89 */ 90 OnEventHostApdNotify([in] String notifyParam, [in] String ifName); 91} 92