1 /* 2 * Copyright (c) 2025 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 #ifndef WPA_COMMON_CMD_H 16 #define WPA_COMMON_CMD_H 17 18 #include <pthread.h> 19 #include <hdf_remote_service.h> 20 #include <stdio.h> 21 #include <stdlib.h> 22 23 #include "../ethernet_impl.h" 24 #include "utils/common.h" 25 26 #define MAX_WPA_MAIN_ARGC_NUM 20 27 #define MAX_WPA_MAIN_ARGV_LEN 128 28 29 struct WpaMainParam { 30 int argc; 31 char argv[MAX_WPA_MAIN_ARGC_NUM][MAX_WPA_MAIN_ARGV_LEN]; 32 }; 33 34 int32_t EthStartEap(struct IEthernet *self, const char *ifName); 35 int32_t EthStopEap(struct IEthernet *self, const char *ifName); 36 int32_t EthRegisterEapEventCallback(struct IEthernet *self, struct IEthernetCallback *cbFunc, const char *ifName); 37 int32_t EthUnregisterEapEventCallback(struct IEthernet *self, struct IEthernetCallback *cbFunc, const char *ifName); 38 int32_t EthEapShellCmd(struct IEthernet *self, const char *ifName, const char *cmd); 39 40 #endif 41