MCUXpresso_MIMXRT1021xxxxx/middleware/wireless/wpa_supplicant-rtos/freertos/src/supp_main.h
Yilin Sun 763d32be90
Updated SDK to v2.15.000
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-03-15 22:23:36 +08:00

42 lines
803 B
C

/** @file supp_main.h
*
* @brief This file provides wpa supplicant init APIs.
*
* Copyright 2023 NXP
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#ifndef __SUPP_MAIN_H_
#define __SUPP_MAIN_H_
#include "drivers/driver.h"
typedef enum __wpa_supp_event
{
DUMMY = 0U,
EVENT = 1U,
} wpa_supp_event_t;
struct wpa_supplicant_event_msg
{
int hostapd;
#ifdef CONFIG_ZEPHYR
bool ignore_msg;
#endif
void *ctx;
enum wpa_event_type event;
void *data;
};
int send_wpa_supplicant_dummy_event();
int send_wpa_supplicant_event(struct wpa_supplicant_event_msg *msg);
void process_wpa_supplicant_event();
int start_wpa_supplicant(char *iface_name);
int stop_wpa_supplicant(void);
struct hostapd_iface *hostapd_get_interface(const char *ifname);
#endif /* __SUPP_MAIN_H_ */