2008-02-27 20:34:43 -05:00
|
|
|
/*
|
|
|
|
* hostapd / VLAN initialization
|
|
|
|
* Copyright 2003, Instant802 Networks, Inc.
|
|
|
|
* Copyright 2005, Devicescape Software, Inc.
|
|
|
|
*
|
2013-12-24 15:59:52 -05:00
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
2008-02-27 20:34:43 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef VLAN_INIT_H
|
|
|
|
#define VLAN_INIT_H
|
|
|
|
|
2009-01-12 14:39:19 -05:00
|
|
|
#ifndef CONFIG_NO_VLAN
|
2008-02-27 20:34:43 -05:00
|
|
|
int vlan_init(struct hostapd_data *hapd);
|
|
|
|
void vlan_deinit(struct hostapd_data *hapd);
|
|
|
|
struct hostapd_vlan * vlan_add_dynamic(struct hostapd_data *hapd,
|
|
|
|
struct hostapd_vlan *vlan,
|
|
|
|
int vlan_id);
|
|
|
|
int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id);
|
|
|
|
int vlan_setup_encryption_dyn(struct hostapd_data *hapd,
|
|
|
|
const char *dyn_vlan);
|
2009-01-12 14:39:19 -05:00
|
|
|
#else /* CONFIG_NO_VLAN */
|
|
|
|
static inline int vlan_init(struct hostapd_data *hapd)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void vlan_deinit(struct hostapd_data *hapd)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline struct hostapd_vlan * vlan_add_dynamic(struct hostapd_data *hapd,
|
|
|
|
struct hostapd_vlan *vlan,
|
|
|
|
int vlan_id)
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id)
|
|
|
|
{
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int vlan_setup_encryption_dyn(struct hostapd_data *hapd,
|
|
|
|
const char *dyn_vlan)
|
|
|
|
{
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
#endif /* CONFIG_NO_VLAN */
|
2008-02-27 20:34:43 -05:00
|
|
|
|
|
|
|
#endif /* VLAN_INIT_H */
|