From e858b980734ea2a553dd97d78f6a035936594793 Mon Sep 17 00:00:00 2001 From: Seppo Takalo Date: Tue, 19 Jun 2018 13:41:22 +0300 Subject: [PATCH] Provide default WiFI interface for REALTEK_RTL8195AM --- .../TARGET_AMEBA/default_wifi_interface.cpp | 24 +++++++++++++++++++ targets/targets.json | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 targets/TARGET_Realtek/TARGET_AMEBA/default_wifi_interface.cpp diff --git a/targets/TARGET_Realtek/TARGET_AMEBA/default_wifi_interface.cpp b/targets/TARGET_Realtek/TARGET_AMEBA/default_wifi_interface.cpp new file mode 100644 index 0000000000..9ad995a69d --- /dev/null +++ b/targets/TARGET_Realtek/TARGET_AMEBA/default_wifi_interface.cpp @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2018, Arm Limited and affiliates. + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "RTWInterface.h" + +WiFiInterface *WiFiInterface::get_target_default_instance() +{ + static RTWInterface wifi; + return &wifi; +} diff --git a/targets/targets.json b/targets/targets.json index e440a29c32..6a1f766a30 100755 --- a/targets/targets.json +++ b/targets/targets.json @@ -3994,7 +3994,7 @@ }, "release_versions": ["5"], "overrides": { - "network-default-interface-type": "ETHERNET" + "network-default-interface-type": "WIFI" } }, "VBLUNO51_LEGACY": {