1 /* 2 * Copyright (c) 2022 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 #include "lnn_lane_score.h" 17 #include "lnn_log.h" 18 #include "softbus_errcode.h" 19 20 #define VIRTUAL_DEFAULT_SCORE 60 21 LnnInitScore(void)22int32_t LnnInitScore(void) 23 { 24 LNN_LOGI(LNN_INIT, "init laneScore virtual"); 25 return SOFTBUS_OK; 26 } 27 LnnDeinitScore(void)28void LnnDeinitScore(void) 29 { 30 return; 31 } 32 LnnGetWlanLinkedInfo(LnnWlanLinkedInfo * info)33int32_t LnnGetWlanLinkedInfo(LnnWlanLinkedInfo *info) 34 { 35 (void)info; 36 return SOFTBUS_LANE_SELECT_FAIL; 37 } 38 LnnGetCurrChannelScore(int32_t channelId)39int32_t LnnGetCurrChannelScore(int32_t channelId) 40 { 41 (void)channelId; 42 return VIRTUAL_DEFAULT_SCORE; 43 } 44 LnnStartScoring(int32_t interval)45int32_t LnnStartScoring(int32_t interval) 46 { 47 (void)interval; 48 return SOFTBUS_OK; 49 } 50 LnnStopScoring(void)51int32_t LnnStopScoring(void) 52 { 53 return SOFTBUS_OK; 54 } 55 LnnGetAllChannelScore(LnnChannelScore ** scoreList,uint32_t * listSize)56int32_t LnnGetAllChannelScore(LnnChannelScore **scoreList, uint32_t *listSize) 57 { 58 (void)scoreList; 59 (void)listSize; 60 return SOFTBUS_OK; 61 }