1 /* 2 * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. 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 * Description: SoftAP适配层接口(此文件为DEMO,需集成方适配修改) 15 */ 16 #ifndef HILINK_SOFTAP_ADAPTER_H 17 #define HILINK_SOFTAP_ADAPTER_H 18 19 #ifdef __cplusplus 20 extern "C" { 21 #endif 22 23 /* 24 * 描述: 将网卡切为AP模式并开启SoftAP热点 25 * 参数: ssid,用于创建SoftAP的ssid 26 * ssidLen,ssid长度,最大为64 27 * 返回: 0表示成功,其他表示失败 28 */ 29 int HILINK_StartSoftAp(const char *ssid, unsigned int ssidLen); 30 31 /* 32 * 描述: 关闭SoftAP热点并将网卡切回station模式 33 * 返回: 0表示成功,其他表示失败 34 */ 35 int HILINK_StopSoftAp(void); 36 37 #ifdef __cplusplus 38 } 39 #endif 40 #endif /* HILINK_SOFTAP_ADAPTER_H */ 41