Also supports assigning a VLAN ID based on the PSK Signed-off-by: Felix Fietkau <nbd@nbd.name>
64 lines
1.4 KiB
C
64 lines
1.4 KiB
C
#ifndef __HOSTAPD_AP_UCODE_H
|
|
#define __HOSTAPD_AP_UCODE_H
|
|
|
|
#include "utils/ucode.h"
|
|
|
|
struct hostapd_data;
|
|
|
|
struct hostapd_ucode_bss {
|
|
#ifdef UCODE_SUPPORT
|
|
int idx;
|
|
#endif
|
|
};
|
|
|
|
struct hostapd_ucode_iface {
|
|
#ifdef UCODE_SUPPORT
|
|
int idx;
|
|
#endif
|
|
};
|
|
|
|
#ifdef UCODE_SUPPORT
|
|
|
|
int hostapd_ucode_init(struct hapd_interfaces *ifaces);
|
|
|
|
void hostapd_ucode_free(void);
|
|
void hostapd_ucode_free_iface(struct hostapd_iface *iface);
|
|
int hostapd_ucode_sta_auth(struct hostapd_data *hapd, struct sta_info *sta);
|
|
void hostapd_ucode_sta_connected(struct hostapd_data *hapd, struct sta_info *sta);
|
|
void hostapd_ucode_add_bss(struct hostapd_data *hapd);
|
|
void hostapd_ucode_free_bss(struct hostapd_data *hapd);
|
|
void hostapd_ucode_reload_bss(struct hostapd_data *hapd);
|
|
|
|
#else
|
|
|
|
static inline int hostapd_ucode_init(struct hapd_interfaces *ifaces)
|
|
{
|
|
return -EINVAL;
|
|
}
|
|
static inline void hostapd_ucode_free(void)
|
|
{
|
|
}
|
|
static inline void hostapd_ucode_free_iface(struct hostapd_iface *iface)
|
|
{
|
|
}
|
|
static inline void hostapd_ucode_reload_bss(struct hostapd_data *hapd)
|
|
{
|
|
}
|
|
static inline int hostapd_ucode_sta_auth(struct hostapd_data *hapd, struct sta_info *sta)
|
|
{
|
|
return 0;
|
|
}
|
|
static inline void hostapd_ucode_sta_connected(struct hostapd_data *hapd, struct sta_info *sta)
|
|
{
|
|
}
|
|
static inline void hostapd_ucode_add_bss(struct hostapd_data *hapd)
|
|
{
|
|
}
|
|
static inline void hostapd_ucode_free_bss(struct hostapd_data *hapd)
|
|
{
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|