• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021 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 "wifi_hal_base_interface.h"
17 #include "wifi_log.h"
18 
19 #undef LOG_TAG
20 #define LOG_TAG "WifiHalBaseInterface"
21 
GetName(char * ifname,int32_t size)22 WifiErrorNo GetName(char *ifname, int32_t size)
23 {
24     LOGD("GetName() size: %{public}d", size);
25     if (ifname != NULL) {
26         *ifname = '\0'; /* fixed compile error, -Werror,-Wunused-parameter */
27     }
28     return WIFI_HAL_SUCCESS;
29 }
30 
GetType(int32_t * type)31 WifiErrorNo GetType(int32_t *type)
32 {
33     LOGD("GetType()");
34     if (type != NULL) {
35         *type = 0; /* fixed compile error, -Werror,-Wunused-parameter */
36     }
37     return WIFI_HAL_SUCCESS;
38 }
39