Roshan Pius | cc81756 | 2017-12-22 14:45:05 -0800 | [diff] [blame^] | 1 | /* |
| 2 | * hidl interface for wpa_hostapd daemon |
| 3 | * Copyright (c) 2004-2018, Jouni Malinen <j@w1.fi> |
| 4 | * Copyright (c) 2004-2018, Roshan Pius <rpius@google.com> |
| 5 | * |
| 6 | * This software may be distributed under the terms of the BSD license. |
| 7 | * See README for more details. |
| 8 | */ |
| 9 | |
| 10 | #include "hostapd.h" |
| 11 | #include "hidl_return_util.h" |
| 12 | |
| 13 | namespace android { |
| 14 | namespace hardware { |
| 15 | namespace wifi { |
| 16 | namespace hostapd { |
| 17 | namespace V1_0 { |
| 18 | namespace implementation { |
| 19 | using hidl_return_util::call; |
| 20 | |
| 21 | Hostapd::Hostapd(struct hapd_interfaces* interfaces) : interfaces_(interfaces) |
| 22 | {} |
| 23 | |
| 24 | Return<void> Hostapd::addAccessPoint( |
| 25 | const IfaceParams& iface_params, const NetworkParams& nw_params, |
| 26 | addAccessPoint_cb _hidl_cb) |
| 27 | { |
| 28 | return call( |
| 29 | this, &Hostapd::addAccessPointInternal, _hidl_cb, iface_params, |
| 30 | nw_params); |
| 31 | } |
| 32 | |
| 33 | Return<void> Hostapd::removeAccessPoint( |
| 34 | const hidl_string& iface_name, removeAccessPoint_cb _hidl_cb) |
| 35 | { |
| 36 | return call( |
| 37 | this, &Hostapd::removeAccessPointInternal, _hidl_cb, iface_name); |
| 38 | } |
| 39 | |
| 40 | HostapdStatus Hostapd::addAccessPointInternal( |
| 41 | const IfaceParams& iface_params, const NetworkParams& nw_params) |
| 42 | { |
| 43 | return {HostapdStatusCode::SUCCESS, ""}; |
| 44 | } |
| 45 | |
| 46 | HostapdStatus Hostapd::removeAccessPointInternal(const std::string& iface_name) |
| 47 | { |
| 48 | return {HostapdStatusCode::SUCCESS, ""}; |
| 49 | } |
| 50 | } // namespace implementation |
| 51 | } // namespace V1_0 |
| 52 | } // namespace hostapd |
| 53 | } // namespace wifi |
| 54 | } // namespace hardware |
| 55 | } // namespace android |