zephyr/modules/hostap/src/supp_main.h
Jukka Rissanen 7fad50fe4c hostap: Avoid DHCPv4 related warnings if DHCPv4 is disabled
If the DHCPv4 is disabled, then avoid linking warning about
missing DHCPv4 functions. Also include dhcpv4.h so that the
DHCPv4 function prototypes are found by the zephyr supplicant
driver.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-01-26 15:52:54 +00:00

32 lines
716 B
C

/*
* Copyright (c) 2023 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __SUPP_MAIN_H_
#define __SUPP_MAIN_H_
#if !defined(CONFIG_NET_DHCPV4)
static inline void net_dhcpv4_start(struct net_if *iface)
{
ARG_UNUSED(iface);
}
static inline void net_dhcpv4_stop(struct net_if *iface)
{
ARG_UNUSED(iface);
}
#else
#include <zephyr/net/dhcpv4.h>
#endif
struct wpa_global *zephyr_get_default_supplicant_context(void);
struct wpa_supplicant *zephyr_get_handle_by_ifname(const char *ifname);
struct wpa_supplicant_event_msg {
bool global;
void *ctx;
unsigned int event;
void *data;
};
int zephyr_wifi_send_event(const struct wpa_supplicant_event_msg *msg);
#endif /* __SUPP_MAIN_H_ */