1 /* 2 * Copyright (c) 2020 Huawei Device Co., Ltd. 3 * 4 * This software may be distributed under the terms of the BSD license. 5 * See README for more details. 6 */ 7 #ifndef _WPA_MAGICLINK_H 8 #define _WPA_MAGICLINK_H 9 10 #include "includes.h" 11 #include "common.h" 12 #include "utils/list.h" 13 #include "wpa_supplicant_i.h" 14 #include "bss.h" 15 #include "drivers/driver.h" 16 #include "driver_i.h" 17 #include "scan.h" 18 #include "eap_peer/eap_i.h" 19 20 #ifdef __cplusplus 21 extern "C" { 22 #endif 23 24 #ifdef CONFIG_MAGICLINK 25 /* 26 * hw_magiclink_p2p_ctrl_connect is for magic link connect 27 * connect AP with cmd indicated. 28 */ 29 int hw_magiclink_p2p_ctrl_connect(struct wpa_supplicant *wpa_s, char *cmd); 30 void magiclink_prepare_scan(struct wpa_supplicant *wpas, int *timeout_usec); 31 int hw_wpas_p2p_group_add(struct wpa_supplicant *wpa_s, int network_id, int persistent, int freq, int max_oper_chwidth); 32 #endif /* CONFIG_MAGICLINK */ 33 34 #ifdef __cplusplus 35 } 36 #endif 37 #endif /* _WPA_MAGICLINK_H */ 38