| // Copyright 2018 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #include <wlan/async/dispatcher.h> |
| #include <wlan/protocol/phy-impl.h> |
| #include <fuchsia/wlan/device/cpp/fidl.h> |
| class Device : public ::fuchsia::wlan::device::Phy { |
| Device(zx_device_t* device, wlanphy_impl_protocol_t wlanphy_impl_proto); |
| zx_status_t Ioctl(uint32_t op, const void* in_buf, size_t in_len, void* out_buf, size_t out_len, |
| // wlanphy_protocol_t from ::fuchsia::wlan::device::Phy |
| virtual void Query(QueryCallback callback) override; |
| virtual void CreateIface(::fuchsia::wlan::device::CreateIfaceRequest req, |
| CreateIfaceCallback callback) override; |
| virtual void DestroyIface(::fuchsia::wlan::device::DestroyIfaceRequest req, |
| DestroyIfaceCallback callback) override; |
| zx_status_t Connect(const void* buf, size_t len); |
| wlanphy_impl_protocol_t wlanphy_impl_; |
| wlan::async::Dispatcher<::fuchsia::wlan::device::Phy> dispatcher_; |