• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * WPA Supplicant - Iface configuration methods
3  * Copyright (c) 2021, Google Inc. All rights reserved.
4  *
5  * This software may be distributed under the terms of the BSD license.
6  * See README for more details.
7  */
8 
9 #ifndef WPA_SUPPLICANT_AIDL_IFACE_CONFIG_UTILS_H
10 #define WPA_SUPPLICANT_AIDL_IFACE_CONFIG_UTILS_H
11 
12 #include <android-base/macros.h>
13 
14 extern "C"
15 {
16 #include "utils/common.h"
17 #include "utils/includes.h"
18 #include "wpa_supplicant_i.h"
19 #include "config.h"
20 }
21 
22 /**
23  * Utility functions to set various config parameters of an iface via AIDL
24  * methods.
25  */
26 namespace aidl {
27 namespace android {
28 namespace hardware {
29 namespace wifi {
30 namespace supplicant {
31 namespace iface_config_utils {
32 ndk::ScopedAStatus setWpsDeviceName(
33 	struct wpa_supplicant* wpa_s, const std::string& name);
34 ndk::ScopedAStatus setWpsDeviceType(
35 	struct wpa_supplicant* wpa_s, const std::array<uint8_t, 8>& type);
36 ndk::ScopedAStatus setWpsManufacturer(
37 	struct wpa_supplicant* wpa_s, const std::string& manufacturer);
38 ndk::ScopedAStatus setWpsModelName(
39 	struct wpa_supplicant* wpa_s, const std::string& model_name);
40 ndk::ScopedAStatus setWpsModelNumber(
41 	struct wpa_supplicant* wpa_s, const std::string& model_number);
42 ndk::ScopedAStatus setWpsSerialNumber(
43 	struct wpa_supplicant* wpa_s, const std::string& serial_number);
44 ndk::ScopedAStatus setWpsConfigMethods(
45 	struct wpa_supplicant* wpa_s, uint16_t config_methods);
46 ndk::ScopedAStatus setExternalSim(
47 	struct wpa_supplicant* wpa_s, bool useExternalSim);
48 }  // namespace iface_config_utils
49 }  // namespace supplicant
50 }  // namespace wifi
51 }  // namespace hardware
52 }  // namespace android
53 }  // namespace aidl
54 
55 #endif  // WPA_SUPPLICANT_AIDL_IFACE_CONFIG_UTILS_H
56