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 #include "utils/common.h" 19 #include "utils/includes.h" 20 #include "wpa_supplicant_i.h" 21 #include "config.h" 22 } 23 24 /** 25 * Utility functions to set various config parameters of an iface via HIDL 26 * methods. 27 */ 28 namespace android { 29 namespace hardware { 30 namespace wifi { 31 namespace supplicant { 32 namespace V1_0 { 33 namespace implementation { 34 namespace iface_config_utils { 35 SupplicantStatus setWpsDeviceName( 36 struct wpa_supplicant* wpa_s, const std::string& name); 37 SupplicantStatus setWpsDeviceType( 38 struct wpa_supplicant* wpa_s, const std::array<uint8_t, 8>& type); 39 SupplicantStatus setWpsManufacturer( 40 struct wpa_supplicant* wpa_s, const std::string& manufacturer); 41 SupplicantStatus setWpsModelName( 42 struct wpa_supplicant* wpa_s, const std::string& model_name); 43 SupplicantStatus setWpsModelNumber( 44 struct wpa_supplicant* wpa_s, const std::string& model_number); 45 SupplicantStatus setWpsSerialNumber( 46 struct wpa_supplicant* wpa_s, const std::string& serial_number); 47 SupplicantStatus setWpsConfigMethods( 48 struct wpa_supplicant* wpa_s, uint16_t config_methods); 49 SupplicantStatus setExternalSim( 50 struct wpa_supplicant* wpa_s, bool useExternalSim); 51 } // namespace iface_config_utils 52 } // namespace implementation 53 } // namespace V1_0 54 } // namespace wifi 55 } // namespace supplicant 56 } // namespace hardware 57 } // namespace android 58 59 #endif // WPA_SUPPLICANT_HIDL_IFACE_CONFIG_UTILS_H 60