nl80211: Fix a typo
[hostap-gosc2009.git] / src / ap / vlan_init.h
blob382d5dee4f8062a41396f7ea4d372d5beb67ca9d
1 /*
2 * hostapd / VLAN initialization
3 * Copyright 2003, Instant802 Networks, Inc.
4 * Copyright 2005, Devicescape Software, Inc.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 * Alternatively, this software may be distributed under the terms of BSD
11 * license.
13 * See README and COPYING for more details.
16 #ifndef VLAN_INIT_H
17 #define VLAN_INIT_H
19 #ifndef CONFIG_NO_VLAN
20 int vlan_init(struct hostapd_data *hapd);
21 void vlan_deinit(struct hostapd_data *hapd);
22 struct hostapd_vlan * vlan_add_dynamic(struct hostapd_data *hapd,
23 struct hostapd_vlan *vlan,
24 int vlan_id);
25 int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id);
26 int vlan_setup_encryption_dyn(struct hostapd_data *hapd,
27 struct hostapd_ssid *mssid,
28 const char *dyn_vlan);
29 #else /* CONFIG_NO_VLAN */
30 static inline int vlan_init(struct hostapd_data *hapd)
32 return 0;
35 static inline void vlan_deinit(struct hostapd_data *hapd)
39 static inline struct hostapd_vlan * vlan_add_dynamic(struct hostapd_data *hapd,
40 struct hostapd_vlan *vlan,
41 int vlan_id)
43 return NULL;
46 static inline int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id)
48 return -1;
51 static inline int vlan_setup_encryption_dyn(struct hostapd_data *hapd,
52 struct hostapd_ssid *mssid,
53 const char *dyn_vlan)
55 return -1;
57 #endif /* CONFIG_NO_VLAN */
59 #endif /* VLAN_INIT_H */