1094332d3Sopenharmony_ci/* 2094332d3Sopenharmony_ci * Copyright (c) 2021 Huawei Device Co., Ltd. 3094332d3Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4094332d3Sopenharmony_ci * you may not use this file except in compliance with the License. 5094332d3Sopenharmony_ci * You may obtain a copy of the License at 6094332d3Sopenharmony_ci * 7094332d3Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8094332d3Sopenharmony_ci * 9094332d3Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10094332d3Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11094332d3Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12094332d3Sopenharmony_ci * See the License for the specific language governing permissions and 13094332d3Sopenharmony_ci * limitations under the License. 14094332d3Sopenharmony_ci */ 15094332d3Sopenharmony_ci 16094332d3Sopenharmony_ci/** 17094332d3Sopenharmony_ci * @addtogroup WLAN 18094332d3Sopenharmony_ci * @{ 19094332d3Sopenharmony_ci * 20094332d3Sopenharmony_ci * @brief Provides cross-OS migration, component adaptation, and modular assembly and compilation. 21094332d3Sopenharmony_ci * 22094332d3Sopenharmony_ci * Based on the unified APIs provided by the WLAN module, developers of the Hardware Driver Interface 23094332d3Sopenharmony_ci * (HDI) are capable of creating, disabling, scanning for, and connecting to WLAN hotspots, managing WLAN chips, 24094332d3Sopenharmony_ci * network devices, and power, and applying for, releasing, and moving network data buffers. 25094332d3Sopenharmony_ci * 26094332d3Sopenharmony_ci * @since 4.1 27094332d3Sopenharmony_ci * @version 1.2 28094332d3Sopenharmony_ci */ 29094332d3Sopenharmony_ci 30094332d3Sopenharmony_ci/** 31094332d3Sopenharmony_ci * @file wifi_hal_p2p_feature.h 32094332d3Sopenharmony_ci * 33094332d3Sopenharmony_ci * @brief Declares P2P features. 34094332d3Sopenharmony_ci * 35094332d3Sopenharmony_ci * @since 4.1 36094332d3Sopenharmony_ci * @version 1.2 37094332d3Sopenharmony_ci */ 38094332d3Sopenharmony_ci 39094332d3Sopenharmony_ci#ifndef WIFI_HAL_P2P_FEATURE_H 40094332d3Sopenharmony_ci#define WIFI_HAL_P2P_FEATURE_H 41094332d3Sopenharmony_ci 42094332d3Sopenharmony_ci#include "wifi_hal_base_feature.h" 43094332d3Sopenharmony_ci 44094332d3Sopenharmony_ci#ifdef __cplusplus 45094332d3Sopenharmony_ci#if __cplusplus 46094332d3Sopenharmony_ciextern "C" { 47094332d3Sopenharmony_ci#endif 48094332d3Sopenharmony_ci#endif 49094332d3Sopenharmony_ci 50094332d3Sopenharmony_ci/** 51094332d3Sopenharmony_ci * @brief Inherits the basic features of {@link IWiFiBaseFeature} and additionally provides the feature of setting 52094332d3Sopenharmony_ci * scanning for a single MAC address. 53094332d3Sopenharmony_ci * 54094332d3Sopenharmony_ci * @since 4.1 55094332d3Sopenharmony_ci * @version 1.2 56094332d3Sopenharmony_ci */ 57094332d3Sopenharmony_cistruct IWiFiP2p { 58094332d3Sopenharmony_ci struct IWiFiBaseFeature baseFeature; /**< Basic features of {@link IWiFiBaseFeature} */ 59094332d3Sopenharmony_ci}; 60094332d3Sopenharmony_ci 61094332d3Sopenharmony_ci/** 62094332d3Sopenharmony_ci * @brief Initializes a specified P2P feature. This function is called during P2P {@link FeatureType} creation. 63094332d3Sopenharmony_ci * 64094332d3Sopenharmony_ci * @param fe Indicates the double pointer to the P2P feature. 65094332d3Sopenharmony_ci * 66094332d3Sopenharmony_ci * @return Returns <b>0</b> if the operation is successful; returns a negative value representing {@link HDF_STATUS} 67094332d3Sopenharmony_ci * if the operation fails. 68094332d3Sopenharmony_ci * 69094332d3Sopenharmony_ci * @since 4.1 70094332d3Sopenharmony_ci * @version 1.2 71094332d3Sopenharmony_ci */ 72094332d3Sopenharmony_ciint32_t InitP2pFeature(struct IWiFiP2p **fe); 73094332d3Sopenharmony_ci 74094332d3Sopenharmony_ci#ifdef __cplusplus 75094332d3Sopenharmony_ci#if __cplusplus 76094332d3Sopenharmony_ci} 77094332d3Sopenharmony_ci#endif 78094332d3Sopenharmony_ci#endif 79094332d3Sopenharmony_ci 80094332d3Sopenharmony_ci#endif 81094332d3Sopenharmony_ci/** @} */ 82