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 * @file IWpaInterface.idl 18 * 19 * @brief Provides APIs to enable or disable a WLAN hotspot, scan for hotspots, connect to or disconnect from a WLAN hotspot, 20 * set the country code, and manage network devices. 21 * 22 * @since 5.1 23 * @version 1.2 24 */ 25 26package ohos.hdi.wlan.wpa.v1_2; 27 28import ohos.hdi.wlan.wpa.v1_1.IWpaInterface; 29 30interface IWpaInterface extends ohos.hdi.wlan.wpa.v1_1.IWpaInterface { 31 /** 32 * @brief Get Sta data from wpa_supplicant 33 * 34 * @param ifName Indicates the NIC name. 35 * @param staParam Indicates the param of sta to get data. 36 * @param staData Indicates the data obtained. 37 * 38 * @return Returns <b>0</b> if the operation is successful. 39 * @return Returns a negative value if the operation fails. 40 * 41 * @since 5.1 42 * @version 1.0 43 */ 44 GetWpaStaData([in] String ifName, [in] String staParam, [out] String staData); 45} 46