blob: 8834a82b11a20bf0c218e44a2bf6f133934e9553 [file] [log] [blame]
Roshan Piuscc817562017-12-22 14:45:05 -08001/*
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
13namespace android {
14namespace hardware {
15namespace wifi {
16namespace hostapd {
17namespace V1_0 {
18namespace implementation {
19using hidl_return_util::call;
20
21Hostapd::Hostapd(struct hapd_interfaces* interfaces) : interfaces_(interfaces)
22{}
23
24Return<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
33Return<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
40HostapdStatus Hostapd::addAccessPointInternal(
41 const IfaceParams& iface_params, const NetworkParams& nw_params)
42{
43 return {HostapdStatusCode::SUCCESS, ""};
44}
45
46HostapdStatus 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