1e5b75505Sopenharmony_ci/*
2e5b75505Sopenharmony_ci * hostapd / VLAN initialization
3e5b75505Sopenharmony_ci * Copyright 2003, Instant802 Networks, Inc.
4e5b75505Sopenharmony_ci * Copyright 2005, Devicescape Software, Inc.
5e5b75505Sopenharmony_ci *
6e5b75505Sopenharmony_ci * This software may be distributed under the terms of the BSD license.
7e5b75505Sopenharmony_ci * See README for more details.
8e5b75505Sopenharmony_ci */
9e5b75505Sopenharmony_ci
10e5b75505Sopenharmony_ci#ifndef VLAN_INIT_H
11e5b75505Sopenharmony_ci#define VLAN_INIT_H
12e5b75505Sopenharmony_ci
13e5b75505Sopenharmony_ci#ifndef CONFIG_NO_VLAN
14e5b75505Sopenharmony_ciint vlan_init(struct hostapd_data *hapd);
15e5b75505Sopenharmony_civoid vlan_deinit(struct hostapd_data *hapd);
16e5b75505Sopenharmony_cistruct hostapd_vlan * vlan_add_dynamic(struct hostapd_data *hapd,
17e5b75505Sopenharmony_ci				       struct hostapd_vlan *vlan,
18e5b75505Sopenharmony_ci				       int vlan_id,
19e5b75505Sopenharmony_ci				       struct vlan_description *vlan_desc);
20e5b75505Sopenharmony_ciint vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id);
21e5b75505Sopenharmony_ci#else /* CONFIG_NO_VLAN */
22e5b75505Sopenharmony_cistatic inline int vlan_init(struct hostapd_data *hapd)
23e5b75505Sopenharmony_ci{
24e5b75505Sopenharmony_ci	return 0;
25e5b75505Sopenharmony_ci}
26e5b75505Sopenharmony_ci
27e5b75505Sopenharmony_cistatic inline void vlan_deinit(struct hostapd_data *hapd)
28e5b75505Sopenharmony_ci{
29e5b75505Sopenharmony_ci}
30e5b75505Sopenharmony_ci
31e5b75505Sopenharmony_cistatic inline struct hostapd_vlan *
32e5b75505Sopenharmony_civlan_add_dynamic(struct hostapd_data *hapd, struct hostapd_vlan *vlan,
33e5b75505Sopenharmony_ci		 int vlan_id, struct vlan_description *vlan_desc)
34e5b75505Sopenharmony_ci{
35e5b75505Sopenharmony_ci	return NULL;
36e5b75505Sopenharmony_ci}
37e5b75505Sopenharmony_ci
38e5b75505Sopenharmony_cistatic inline int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id)
39e5b75505Sopenharmony_ci{
40e5b75505Sopenharmony_ci	return -1;
41e5b75505Sopenharmony_ci}
42e5b75505Sopenharmony_ci#endif /* CONFIG_NO_VLAN */
43e5b75505Sopenharmony_ci
44e5b75505Sopenharmony_ci#endif /* VLAN_INIT_H */
45