Skip to content

Commit

Permalink
hostap: Add needed include files to fix compilation
Browse files Browse the repository at this point in the history
The "enum wpa_msg_type" was not found by default so add needed
include files to get the definitions.

modules/hostap/src/supp_main.h:61:57: warning: ‘enum wpa_msg_type’
   declared inside parameter list will not be visible outside of
   this definition or declaration
   61 | void wpa_supplicant_msg_send(void *ctx, int level,
                                     enum wpa_msg_type type,
                                     const char *txt,

Signed-off-by: Jukka Rissanen <[email protected]>
  • Loading branch information
jukkar authored and henrikbrixandersen committed Oct 23, 2024
1 parent 6ac4e9c commit c9b8365
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/hostap/src/supp_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,17 @@ static inline void net_dhcpv4_stop(struct net_if *iface)

struct wpa_global *zephyr_get_default_supplicant_context(void);
struct wpa_supplicant *zephyr_get_handle_by_ifname(const char *ifname);

#ifdef CONFIG_WIFI_NM_HOSTAPD_AP
#include "common.h"
#include "wpa_debug_zephyr.h"

struct hostapd_iface *zephyr_get_hapd_handle_by_ifname(const char *ifname);
void wpa_supplicant_msg_send(void *ctx, int level, enum wpa_msg_type type, const char *txt,
size_t len);
void hostapd_msg_send(void *ctx, int level, enum wpa_msg_type type, const char *buf, size_t len);
#endif

struct wpa_supplicant_event_msg {
#ifdef CONFIG_WIFI_NM_HOSTAPD_AP
int hostapd;
Expand Down

0 comments on commit c9b8365

Please sign in to comment.