1 /* 2 * Copyright (c) 2023 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 WLAN_EXTEND_VDI_CMD_H 16 #define WLAN_EXTEND_VDI_CMD_H 17 18 #include "v1_3/iwlan_interface.h" 19 #include "hdf_load_vdi.h" 20 #include "wifi_hal.h" 21 22 #define WLAN_EXTEND_VDI_LIBNAME "libhdi_wlan_impl.z.so" 23 24 struct WlanExtendInterfaceVdi { 25 int32_t (*startChannelMeas)(struct IWlanInterface *self, const char *ifName, 26 const struct MeasChannelParam *measChannelParam); 27 int32_t (*getChannelMeasResult)(struct IWlanInterface *self, const char *ifName, 28 struct MeasChannelResult *measChannelResult); 29 int32_t (*sendCmdIoctl)(struct IWlanInterface *self, const char *ifName, int32_t cmdId, 30 const int8_t *paramBuf, uint32_t paramBufLen); 31 int32_t (*getCoexChannelList)(struct IWlanInterface *self, const char *ifName, 32 uint8_t *paramBuf, uint32_t *paramBufLen); 33 int32_t (*registerHid2dCallback)(Hid2dCallbackFunc func, const char *ifName); 34 int32_t (*unregisterHid2dCallback)(Hid2dCallbackFunc func, const char *ifName); 35 int32_t (*wifiConstruct)(void); 36 int32_t (*wifiDestruct)(void); 37 }; 38 39 struct VdiWrapperWlanExtend { 40 struct HdfVdiBase base; 41 struct WlanExtendInterfaceVdi *wlanExtendModule; 42 }; 43 #endif 44