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 #ifndef SOFTAPHDI_WIFI_HDI_WPA_AP_IMPL_H 17 #define SOFTAPHDI_WIFI_HDI_WPA_AP_IMPL_H 18 #ifdef HDI_WPA_INTERFACE_SUPPORT 19 20 #include "wifi_hdi_wpa_proxy.h" 21 #include "i_wifi_struct.h" 22 #include "wifi_hdi_define.h" 23 24 #ifdef __cplusplus 25 extern "C" { 26 #endif 27 28 WifiErrorNo HdiStartAp(const char *ifaceName, int id); 29 WifiErrorNo HdiStopAp(int id); 30 WifiErrorNo HdiRegisterApEventCallback(struct IHostapdCallback *callback); 31 WifiErrorNo HdiReloadApConfigInfo(int id); 32 WifiErrorNo HdiEnableAp(int id); 33 WifiErrorNo HdiDisableAp(int id); 34 WifiErrorNo HdiSetApPasswd(const char *pass, int id); 35 WifiErrorNo HdiSetApName(const char *name, int id); 36 WifiErrorNo HdiSetApWpaValue(int securityType, int id); 37 WifiErrorNo HdiSetApBand(int band, int id); 38 WifiErrorNo HdiSetAp80211n(int value, int id); 39 WifiErrorNo HdiSetApWmm(int value, int id); 40 WifiErrorNo HdiSetApChannel(int channel, int id); 41 WifiErrorNo HdiSetApMaxConn(int maxConn, int id); 42 WifiErrorNo HdiSetMacFilter(const char *mac, int id); 43 WifiErrorNo HdiDelMacFilter(const char *mac, int id); 44 WifiErrorNo HdiGetStaInfos(char *buf, int size, int id); 45 WifiErrorNo HdiDisassociateSta(const char *mac, int id); 46 47 #ifdef __cplusplus 48 } 49 #endif 50 #endif // HDI_WPA_INTERFACE_SUPPORT 51 #endif // SOFTAPHDI_WIFI_HDI_WPA_AP_IMPL_H 52