• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * hidl interface for wpa_supplicant daemon
3  * Copyright (struct wpa_supplicant* wpa_s, c) 2004-2016, Jouni Malinen
4  * <j@w1.fi>
5  * Copyright (struct wpa_supplicant* wpa_s, c) 2004-2016, Roshan Pius
6  * <rpius@google.com>
7  *
8  * This software may be distributed under the terms of the BSD license.
9  * See README for more details.
10  */
11 
12 #ifndef WPA_SUPPLICANT_HIDL_IFACE_CONFIG_UTILS_H
13 #define WPA_SUPPLICANT_HIDL_IFACE_CONFIG_UTILS_H
14 
15 #include <android-base/macros.h>
16 
17 extern "C"
18 {
19 #include "utils/common.h"
20 #include "utils/includes.h"
21 #include "wpa_supplicant_i.h"
22 #include "config.h"
23 }
24 
25 /**
26  * Utility functions to set various config parameters of an iface via HIDL
27  * methods.
28  */
29 namespace android {
30 namespace hardware {
31 namespace wifi {
32 namespace supplicant {
33 namespace V1_2 {
34 namespace implementation {
35 namespace iface_config_utils {
36 SupplicantStatus setWpsDeviceName(
37     struct wpa_supplicant* wpa_s, const std::string& name);
38 SupplicantStatus setWpsDeviceType(
39     struct wpa_supplicant* wpa_s, const std::array<uint8_t, 8>& type);
40 SupplicantStatus setWpsManufacturer(
41     struct wpa_supplicant* wpa_s, const std::string& manufacturer);
42 SupplicantStatus setWpsModelName(
43     struct wpa_supplicant* wpa_s, const std::string& model_name);
44 SupplicantStatus setWpsModelNumber(
45     struct wpa_supplicant* wpa_s, const std::string& model_number);
46 SupplicantStatus setWpsSerialNumber(
47     struct wpa_supplicant* wpa_s, const std::string& serial_number);
48 SupplicantStatus setWpsConfigMethods(
49     struct wpa_supplicant* wpa_s, uint16_t config_methods);
50 SupplicantStatus setExternalSim(
51     struct wpa_supplicant* wpa_s, bool useExternalSim);
52 }  // namespace iface_config_utils
53 }  // namespace implementation
54 }  // namespace V1_2
55 }  // namespace supplicant
56 }  // namespace wifi
57 }  // namespace hardware
58 }  // namespace android
59 
60 #endif  // WPA_SUPPLICANT_HIDL_IFACE_CONFIG_UTILS_H
61