blob: 7149b72254fd46e7f120624aa51f91067037be6f [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 */
Roshan Pius30b452e2017-12-27 13:36:21 -08009#include <iomanip>
10#include <sstream>
11#include <string>
12#include <vector>
13
14#include <android-base/file.h>
15#include <android-base/stringprintf.h>
Roshan Piuscc817562017-12-22 14:45:05 -080016
17#include "hostapd.h"
18#include "hidl_return_util.h"
19
Roshan Pius3455af42018-02-01 09:19:49 -080020extern "C"
21{
22#include "utils/eloop.h"
23}
24
Roshan Pius30b452e2017-12-27 13:36:21 -080025// The HIDL implementation for hostapd creates a hostapd.conf dynamically for
26// each interface. This file can then be used to hook onto the normal config
27// file parsing logic in hostapd code. Helps us to avoid duplication of code
28// in the HIDL interface.
29// TOOD(b/71872409): Add unit tests for this.
30namespace {
31constexpr char kConfFileNameFmt[] = "/data/vendor/wifi/hostapd/hostapd_%s.conf";
32
33using android::base::RemoveFileIfExists;
34using android::base::StringPrintf;
35using android::base::WriteStringToFile;
lesl1a842e62019-12-02 19:00:37 +080036using android::hardware::wifi::hostapd::V1_2::IHostapd;
Roshan Pius30b452e2017-12-27 13:36:21 -080037
38std::string WriteHostapdConfig(
39 const std::string& interface_name, const std::string& config)
40{
41 const std::string file_path =
42 StringPrintf(kConfFileNameFmt, interface_name.c_str());
43 if (WriteStringToFile(
44 config, file_path, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP,
45 getuid(), getgid())) {
46 return file_path;
47 }
48 // Diagnose failure
49 int error = errno;
50 wpa_printf(
51 MSG_ERROR, "Cannot write hostapd config to %s, error: %s",
52 file_path.c_str(), strerror(error));
53 struct stat st;
54 int result = stat(file_path.c_str(), &st);
55 if (result == 0) {
56 wpa_printf(
57 MSG_ERROR, "hostapd config file uid: %d, gid: %d, mode: %d",
58 st.st_uid, st.st_gid, st.st_mode);
59 } else {
60 wpa_printf(
61 MSG_ERROR,
62 "Error calling stat() on hostapd config file: %s",
63 strerror(errno));
64 }
65 return "";
66}
67
68std::string CreateHostapdConfig(
69 const IHostapd::IfaceParams& iface_params,
70 const IHostapd::NetworkParams& nw_params)
71{
72 if (nw_params.ssid.size() >
73 static_cast<uint32_t>(
74 IHostapd::ParamSizeLimits::SSID_MAX_LEN_IN_BYTES)) {
75 wpa_printf(
76 MSG_ERROR, "Invalid SSID size: %zu", nw_params.ssid.size());
77 return "";
78 }
Roshan Pius0b8a64f2018-01-23 11:42:34 -080079 if ((nw_params.encryptionType != IHostapd::EncryptionType::NONE) &&
80 (nw_params.pskPassphrase.size() <
81 static_cast<uint32_t>(
82 IHostapd::ParamSizeLimits::
83 WPA2_PSK_PASSPHRASE_MIN_LEN_IN_BYTES) ||
84 nw_params.pskPassphrase.size() >
85 static_cast<uint32_t>(
86 IHostapd::ParamSizeLimits::
87 WPA2_PSK_PASSPHRASE_MAX_LEN_IN_BYTES))) {
Roshan Pius30b452e2017-12-27 13:36:21 -080088 wpa_printf(
89 MSG_ERROR, "Invalid psk passphrase size: %zu",
90 nw_params.pskPassphrase.size());
91 return "";
92 }
93
94 // SSID string
95 std::stringstream ss;
96 ss << std::hex;
97 ss << std::setfill('0');
98 for (uint8_t b : nw_params.ssid) {
99 ss << std::setw(2) << static_cast<unsigned int>(b);
100 }
101 const std::string ssid_as_string = ss.str();
102
103 // Encryption config string
104 std::string encryption_config_as_string;
105 switch (nw_params.encryptionType) {
106 case IHostapd::EncryptionType::NONE:
107 // no security params
108 break;
109 case IHostapd::EncryptionType::WPA:
110 encryption_config_as_string = StringPrintf(
111 "wpa=3\n"
112 "wpa_pairwise=TKIP CCMP\n"
113 "wpa_passphrase=%s",
114 nw_params.pskPassphrase.c_str());
115 break;
116 case IHostapd::EncryptionType::WPA2:
117 encryption_config_as_string = StringPrintf(
118 "wpa=2\n"
119 "rsn_pairwise=CCMP\n"
120 "wpa_passphrase=%s",
121 nw_params.pskPassphrase.c_str());
122 break;
123 default:
124 wpa_printf(MSG_ERROR, "Unknown encryption type");
125 return "";
126 }
127
128 std::string channel_config_as_string;
Ahmed ElArabawy34982672019-12-06 10:10:17 -0800129 if (iface_params.V1_1.V1_0.channelParams.enableAcs) {
Daisuke Niwac1bd20f2019-01-09 13:51:02 +0900130 std::string chanlist_as_string;
131 for (const auto &range :
Ahmed ElArabawy34982672019-12-06 10:10:17 -0800132 iface_params.V1_1.channelParams.acsChannelRanges) {
Daisuke Niwac1bd20f2019-01-09 13:51:02 +0900133 if (range.start != range.end) {
134 chanlist_as_string +=
Ahmed ElArabawy34982672019-12-06 10:10:17 -0800135 StringPrintf("%d-%d ", range.start, range.end);
Daisuke Niwac1bd20f2019-01-09 13:51:02 +0900136 } else {
137 chanlist_as_string += StringPrintf("%d ", range.start);
138 }
139 }
Roshan Pius30b452e2017-12-27 13:36:21 -0800140 channel_config_as_string = StringPrintf(
141 "channel=0\n"
Daisuke Niwac1bd20f2019-01-09 13:51:02 +0900142 "acs_exclude_dfs=%d\n"
143 "chanlist=%s",
Ahmed ElArabawy34982672019-12-06 10:10:17 -0800144 iface_params.V1_1.V1_0.channelParams.acsShouldExcludeDfs,
Daisuke Niwac1bd20f2019-01-09 13:51:02 +0900145 chanlist_as_string.c_str());
Roshan Pius30b452e2017-12-27 13:36:21 -0800146 } else {
147 channel_config_as_string = StringPrintf(
Ahmed ElArabawy34982672019-12-06 10:10:17 -0800148 "channel=%d", iface_params.V1_1.V1_0.channelParams.channel);
Roshan Pius30b452e2017-12-27 13:36:21 -0800149 }
150
151 // Hw Mode String
Ahmed ElArabawy34982672019-12-06 10:10:17 -0800152 // TODO: b/146186687 Still missing the handling when 6GHz band is included
Roshan Pius30b452e2017-12-27 13:36:21 -0800153 std::string hw_mode_as_string;
Roshan Pius49446472018-03-07 10:23:46 -0800154 std::string ht_cap_vht_oper_chwidth_as_string;
Ahmed ElArabawy34982672019-12-06 10:10:17 -0800155 unsigned int band = 0;
156 if (iface_params.V1_1.V1_0.channelParams.enableAcs) {
157 band |= iface_params.channelParams.bandMask;
158 } else {
159 band |= iface_params.V1_1.V1_0.channelParams.band;
160 }
161
162 if ((band & IHostapd::BandMask::BAND_2_GHZ) != 0) {
163 if ((band & IHostapd::BandMask::BAND_5_GHZ) != 0) {
164 hw_mode_as_string = "hw_mode=any";
165 if (iface_params.V1_1.V1_0.channelParams.enableAcs) {
166 ht_cap_vht_oper_chwidth_as_string =
167 "ht_capab=[HT40+]\n"
168 "vht_oper_chwidth=1";
169 }
170 } else {
171 hw_mode_as_string = "hw_mode=g";
Roshan Pius49446472018-03-07 10:23:46 -0800172 }
Ahmed ElArabawy34982672019-12-06 10:10:17 -0800173 } else {
174 if ((band & IHostapd::BandMask::BAND_5_GHZ) != 0) {
175 hw_mode_as_string = "hw_mode=a";
176 if (iface_params.V1_1.V1_0.channelParams.enableAcs) {
177 ht_cap_vht_oper_chwidth_as_string =
178 "ht_capab=[HT40+]\n"
179 "vht_oper_chwidth=1";
180 }
181 } else {
182 wpa_printf(MSG_ERROR, "Invalid band");
183 return "";
Roshan Pius49446472018-03-07 10:23:46 -0800184 }
Roshan Pius30b452e2017-12-27 13:36:21 -0800185 }
186
187 return StringPrintf(
188 "interface=%s\n"
189 "driver=nl80211\n"
Daichi Ueuracaa74a82018-02-14 22:25:39 +0900190 "ctrl_interface=/data/vendor/wifi/hostapd/ctrl\n"
Roshan Pius30b452e2017-12-27 13:36:21 -0800191 // ssid2 signals to hostapd that the value is not a literal value
192 // for use as a SSID. In this case, we're giving it a hex
193 // std::string and hostapd needs to expect that.
194 "ssid2=%s\n"
195 "%s\n"
196 "ieee80211n=%d\n"
197 "ieee80211ac=%d\n"
Ahmed ElArabawy34982672019-12-06 10:10:17 -0800198 "ieee80211ax=%d\n"
Roshan Piuse453f712018-02-09 15:49:57 -0800199 "%s\n"
Roshan Pius49446472018-03-07 10:23:46 -0800200 "%s\n"
Roshan Pius30b452e2017-12-27 13:36:21 -0800201 "ignore_broadcast_ssid=%d\n"
202 "wowlan_triggers=any\n"
203 "%s\n",
Ahmed ElArabawy34982672019-12-06 10:10:17 -0800204 iface_params.V1_1.V1_0.ifaceName.c_str(), ssid_as_string.c_str(),
Roshan Pius30b452e2017-12-27 13:36:21 -0800205 channel_config_as_string.c_str(),
Ahmed ElArabawy34982672019-12-06 10:10:17 -0800206 iface_params.V1_1.V1_0.hwModeParams.enable80211N ? 1 : 0,
207 iface_params.V1_1.V1_0.hwModeParams.enable80211AC ? 1 : 0,
208 iface_params.hwModeParams.enable80211AX ? 1 : 0,
Roshan Pius49446472018-03-07 10:23:46 -0800209 hw_mode_as_string.c_str(), ht_cap_vht_oper_chwidth_as_string.c_str(),
210 nw_params.isHidden ? 1 : 0, encryption_config_as_string.c_str());
Roshan Pius30b452e2017-12-27 13:36:21 -0800211}
Roshan Piuse2d21012018-08-17 11:22:06 -0700212
213// hostapd core functions accept "C" style function pointers, so use global
214// functions to pass to the hostapd core function and store the corresponding
215// std::function methods to be invoked.
216//
217// NOTE: Using the pattern from the vendor HAL (wifi_legacy_hal.cpp).
218//
219// Callback to be invoked once setup is complete
220std::function<void(struct hostapd_data*)> on_setup_complete_internal_callback;
221void onAsyncSetupCompleteCb(void* ctx)
222{
223 struct hostapd_data* iface_hapd = (struct hostapd_data*)ctx;
224 if (on_setup_complete_internal_callback) {
225 on_setup_complete_internal_callback(iface_hapd);
226 // Invalidate this callback since we don't want this firing
227 // again.
228 on_setup_complete_internal_callback = nullptr;
229 }
230}
Roshan Pius30b452e2017-12-27 13:36:21 -0800231} // namespace
232
Roshan Piuscc817562017-12-22 14:45:05 -0800233namespace android {
234namespace hardware {
235namespace wifi {
236namespace hostapd {
lesl1a842e62019-12-02 19:00:37 +0800237namespace V1_2 {
Roshan Piuscc817562017-12-22 14:45:05 -0800238namespace implementation {
239using hidl_return_util::call;
Roshan Piuse2d21012018-08-17 11:22:06 -0700240using namespace android::hardware::wifi::hostapd::V1_0;
Roshan Piuscc817562017-12-22 14:45:05 -0800241
242Hostapd::Hostapd(struct hapd_interfaces* interfaces) : interfaces_(interfaces)
243{}
244
245Return<void> Hostapd::addAccessPoint(
Daisuke Niwac1bd20f2019-01-09 13:51:02 +0900246 const V1_0::IHostapd::IfaceParams& iface_params,
247 const NetworkParams& nw_params, addAccessPoint_cb _hidl_cb)
248{
249 return call(
250 this, &Hostapd::addAccessPointInternal, _hidl_cb, iface_params,
251 nw_params);
252}
253
254Return<void> Hostapd::addAccessPoint_1_1(
Ahmed ElArabawy34982672019-12-06 10:10:17 -0800255 const V1_1::IHostapd::IfaceParams& iface_params,
256 const NetworkParams& nw_params, addAccessPoint_cb _hidl_cb)
Roshan Piuscc817562017-12-22 14:45:05 -0800257{
258 return call(
Daisuke Niwac1bd20f2019-01-09 13:51:02 +0900259 this, &Hostapd::addAccessPointInternal_1_1, _hidl_cb, iface_params,
Roshan Piuscc817562017-12-22 14:45:05 -0800260 nw_params);
261}
262
Ahmed ElArabawy34982672019-12-06 10:10:17 -0800263Return<void> Hostapd::addAccessPoint_1_2(
264 const IfaceParams& iface_params, const NetworkParams& nw_params,
265 addAccessPoint_1_2_cb _hidl_cb)
266{
267 return call(
268 this, &Hostapd::addAccessPointInternal_1_2, _hidl_cb, iface_params,
269 nw_params);
270}
271
Roshan Piuscc817562017-12-22 14:45:05 -0800272Return<void> Hostapd::removeAccessPoint(
273 const hidl_string& iface_name, removeAccessPoint_cb _hidl_cb)
274{
275 return call(
276 this, &Hostapd::removeAccessPointInternal, _hidl_cb, iface_name);
277}
278
Roshan Piuse2d21012018-08-17 11:22:06 -0700279Return<void> Hostapd::terminate()
280{
Roshan Pius3455af42018-02-01 09:19:49 -0800281 wpa_printf(MSG_INFO, "Terminating...");
282 eloop_terminate();
283 return Void();
284}
285
Roshan Piuse2d21012018-08-17 11:22:06 -0700286Return<void> Hostapd::registerCallback(
lesl1a842e62019-12-02 19:00:37 +0800287 const sp<V1_1::IHostapdCallback>& callback, registerCallback_cb _hidl_cb)
Roshan Piuse2d21012018-08-17 11:22:06 -0700288{
289 return call(
290 this, &Hostapd::registerCallbackInternal, _hidl_cb, callback);
291}
292
lesl1a842e62019-12-02 19:00:37 +0800293Return<void> Hostapd::forceClientDisconnect(
294 const hidl_string& iface_name, const hidl_array<uint8_t, 6>& client_address,
295 V1_2::Ieee80211ReasonCode reason_code, forceClientDisconnect_cb _hidl_cb)
296{
297 return call(
298 this, &Hostapd::forceClientDisconnectInternal, _hidl_cb, iface_name,
299 client_address, reason_code);
300}
301
Roger Wangcede5062019-12-30 12:56:28 +0800302Return<void> Hostapd::setDebugParams(
303 DebugLevel level, setDebugParams_cb _hidl_cb)
304{
305 return call(
306 this, &Hostapd::setDebugParamsInternal, _hidl_cb, level);
307}
lesl1a842e62019-12-02 19:00:37 +0800308
309V1_0::HostapdStatus Hostapd::addAccessPointInternal(
Daisuke Niwac1bd20f2019-01-09 13:51:02 +0900310 const V1_0::IHostapd::IfaceParams& iface_params,
311 const NetworkParams& nw_params)
312{
lesl1a842e62019-12-02 19:00:37 +0800313 return {V1_0::HostapdStatusCode::FAILURE_UNKNOWN, ""};
Daisuke Niwac1bd20f2019-01-09 13:51:02 +0900314}
315
lesl1a842e62019-12-02 19:00:37 +0800316V1_0::HostapdStatus Hostapd::addAccessPointInternal_1_1(
Ahmed ElArabawy34982672019-12-06 10:10:17 -0800317 const V1_1::IHostapd::IfaceParams& iface_params,
318 const NetworkParams& nw_params)
319{
320 return {V1_0::HostapdStatusCode::FAILURE_UNKNOWN, ""};
321}
322
323HostapdStatus Hostapd::addAccessPointInternal_1_2(
Roshan Piuscc817562017-12-22 14:45:05 -0800324 const IfaceParams& iface_params, const NetworkParams& nw_params)
325{
Ahmed ElArabawy34982672019-12-06 10:10:17 -0800326 if (hostapd_get_iface(interfaces_, iface_params.V1_1.V1_0.ifaceName.c_str())) {
Roshan Pius087d8692017-12-27 14:11:44 -0800327 wpa_printf(
328 MSG_ERROR, "Interface %s already present",
Ahmed ElArabawy34982672019-12-06 10:10:17 -0800329 iface_params.V1_1.V1_0.ifaceName.c_str());
330 return {HostapdStatusCode::FAILURE_IFACE_EXISTS, ""};
Roshan Pius087d8692017-12-27 14:11:44 -0800331 }
332 const auto conf_params = CreateHostapdConfig(iface_params, nw_params);
333 if (conf_params.empty()) {
334 wpa_printf(MSG_ERROR, "Failed to create config params");
Ahmed ElArabawy34982672019-12-06 10:10:17 -0800335 return {HostapdStatusCode::FAILURE_ARGS_INVALID, ""};
Roshan Pius087d8692017-12-27 14:11:44 -0800336 }
337 const auto conf_file_path =
Ahmed ElArabawy34982672019-12-06 10:10:17 -0800338 WriteHostapdConfig(iface_params.V1_1.V1_0.ifaceName, conf_params);
Roshan Pius087d8692017-12-27 14:11:44 -0800339 if (conf_file_path.empty()) {
340 wpa_printf(MSG_ERROR, "Failed to write config file");
Ahmed ElArabawy34982672019-12-06 10:10:17 -0800341 return {HostapdStatusCode::FAILURE_UNKNOWN, ""};
Roshan Pius087d8692017-12-27 14:11:44 -0800342 }
343 std::string add_iface_param_str = StringPrintf(
Ahmed ElArabawy34982672019-12-06 10:10:17 -0800344 "%s config=%s", iface_params.V1_1.V1_0.ifaceName.c_str(),
Roshan Pius087d8692017-12-27 14:11:44 -0800345 conf_file_path.c_str());
346 std::vector<char> add_iface_param_vec(
347 add_iface_param_str.begin(), add_iface_param_str.end() + 1);
348 if (hostapd_add_iface(interfaces_, add_iface_param_vec.data()) < 0) {
349 wpa_printf(
350 MSG_ERROR, "Adding interface %s failed",
351 add_iface_param_str.c_str());
Ahmed ElArabawy34982672019-12-06 10:10:17 -0800352 return {HostapdStatusCode::FAILURE_UNKNOWN, ""};
Roshan Pius087d8692017-12-27 14:11:44 -0800353 }
354 struct hostapd_data* iface_hapd =
Ahmed ElArabawy34982672019-12-06 10:10:17 -0800355 hostapd_get_iface(interfaces_, iface_params.V1_1.V1_0.ifaceName.c_str());
Roshan Pius087d8692017-12-27 14:11:44 -0800356 WPA_ASSERT(iface_hapd != nullptr && iface_hapd->iface != nullptr);
Roshan Piuse2d21012018-08-17 11:22:06 -0700357 // Register the setup complete callbacks
358 on_setup_complete_internal_callback =
359 [this](struct hostapd_data* iface_hapd) {
360 wpa_printf(
361 MSG_DEBUG, "AP interface setup completed - state %s",
362 hostapd_state_text(iface_hapd->iface->state));
363 if (iface_hapd->iface->state == HAPD_IFACE_DISABLED) {
364 // Invoke the failure callback on all registered
365 // clients.
366 for (const auto& callback : callbacks_) {
367 callback->onFailure(
368 iface_hapd->conf->iface);
369 }
370 }
371 };
372 iface_hapd->setup_complete_cb = onAsyncSetupCompleteCb;
373 iface_hapd->setup_complete_cb_ctx = iface_hapd;
Roshan Pius087d8692017-12-27 14:11:44 -0800374 if (hostapd_enable_iface(iface_hapd->iface) < 0) {
375 wpa_printf(
376 MSG_ERROR, "Enabling interface %s failed",
Ahmed ElArabawy34982672019-12-06 10:10:17 -0800377 iface_params.V1_1.V1_0.ifaceName.c_str());
378 return {HostapdStatusCode::FAILURE_UNKNOWN, ""};
Roshan Pius087d8692017-12-27 14:11:44 -0800379 }
Ahmed ElArabawy34982672019-12-06 10:10:17 -0800380 return {HostapdStatusCode::SUCCESS, ""};
Roshan Piuscc817562017-12-22 14:45:05 -0800381}
382
lesl1a842e62019-12-02 19:00:37 +0800383V1_0::HostapdStatus Hostapd::removeAccessPointInternal(const std::string& iface_name)
Roshan Piuscc817562017-12-22 14:45:05 -0800384{
Roshan Pius087d8692017-12-27 14:11:44 -0800385 std::vector<char> remove_iface_param_vec(
386 iface_name.begin(), iface_name.end() + 1);
387 if (hostapd_remove_iface(interfaces_, remove_iface_param_vec.data()) <
388 0) {
389 wpa_printf(
390 MSG_ERROR, "Removing interface %s failed",
391 iface_name.c_str());
lesl1a842e62019-12-02 19:00:37 +0800392 return {V1_0::HostapdStatusCode::FAILURE_UNKNOWN, ""};
Roshan Pius087d8692017-12-27 14:11:44 -0800393 }
lesl1a842e62019-12-02 19:00:37 +0800394 return {V1_0::HostapdStatusCode::SUCCESS, ""};
Roshan Piuscc817562017-12-22 14:45:05 -0800395}
Roshan Piuse2d21012018-08-17 11:22:06 -0700396
lesl1a842e62019-12-02 19:00:37 +0800397V1_0::HostapdStatus Hostapd::registerCallbackInternal(
398 const sp<V1_1::IHostapdCallback>& callback)
Roshan Piuse2d21012018-08-17 11:22:06 -0700399{
400 callbacks_.push_back(callback);
lesl1a842e62019-12-02 19:00:37 +0800401 return {V1_0::HostapdStatusCode::SUCCESS, ""};
402}
403
404V1_2::HostapdStatus Hostapd::forceClientDisconnectInternal(const std::string& iface_name,
405 const std::array<uint8_t, 6>& client_address, V1_2::Ieee80211ReasonCode reason_code)
406{
407 struct hostapd_data *hapd = hostapd_get_iface(interfaces_, iface_name.c_str());
408 struct sta_info *sta;
409 if (!hapd) {
410 wpa_printf(MSG_ERROR, "Interface %s doesn't exist", iface_name.c_str());
411 return {V1_2::HostapdStatusCode::FAILURE_IFACE_UNKNOWN, ""};
412 }
413 for (sta = hapd->sta_list; sta; sta = sta->next) {
414 int res;
415 res = memcmp(sta->addr, client_address.data(), ETH_ALEN);
416 if (res == 0) {
417 wpa_printf(MSG_INFO, "Force client:" MACSTR " disconnect with reason: %d",
418 MAC2STR(client_address.data()), (uint16_t) reason_code);
419 ap_sta_disconnect(hapd, sta, sta->addr, (uint16_t) reason_code);
420 return {V1_2::HostapdStatusCode::SUCCESS, ""};
421 }
422 }
423 return {V1_2::HostapdStatusCode::FAILURE_CLIENT_UNKNOWN, ""};
Roshan Piuse2d21012018-08-17 11:22:06 -0700424}
425
Roger Wangcede5062019-12-30 12:56:28 +0800426V1_2::HostapdStatus Hostapd::setDebugParamsInternal(DebugLevel level)
427{
428 wpa_debug_level = static_cast<uint32_t>(level);
429 return {V1_2::HostapdStatusCode::SUCCESS, ""};
430}
431
Roshan Piuscc817562017-12-22 14:45:05 -0800432} // namespace implementation
lesl1a842e62019-12-02 19:00:37 +0800433} // namespace V1_2
Roshan Piuscc817562017-12-22 14:45:05 -0800434} // namespace hostapd
435} // namespace wifi
436} // namespace hardware
437} // namespace android