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 LNN_LANE_VAP_INFO_STRUCT_H 16 #define LNN_LANE_VAP_INFO_STRUCT_H 17 18 #include "stdbool.h" 19 #include "stdint.h" 20 21 #ifdef __cplusplus 22 extern "C" { 23 #endif 24 25 #define LNN_INVALID_CHANNEL_ID (-1) 26 27 typedef enum { 28 LNN_VAP_UNKNOWN = -1, 29 LNN_VAP_HML = 0, 30 LNN_VAP_STA, 31 LNN_VAP_P2P, 32 LNN_VAP_AP, 33 LNN_VAP_BUTT, 34 } LnnVapType; 35 36 typedef struct { 37 bool isEnable; 38 int32_t channelId; 39 uint32_t availableLinkNums; /* reserved */ 40 } LnnVapAttr; 41 42 typedef struct { 43 int32_t staChannel; 44 int32_t apChannel; 45 int32_t p2pChannel; 46 int32_t hmlChannel; 47 } VapChannelInfo; 48 49 #ifdef __cplusplus 50 } 51 #endif 52 #endif