wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
vlan_init.h
Go to the documentation of this file.
1 
6 #ifndef VLAN_INIT_H
7 #define VLAN_INIT_H
8 
9 #ifndef CONFIG_NO_VLAN
10 int vlan_init(struct hostapd_data *hapd);
11 void vlan_deinit(struct hostapd_data *hapd);
12 struct hostapd_vlan * vlan_add_dynamic(struct hostapd_data *hapd,
13  struct hostapd_vlan *vlan,
14  int vlan_id);
15 int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id);
16 int vlan_setup_encryption_dyn(struct hostapd_data *hapd,
17  const char *dyn_vlan);
18 #else /* CONFIG_NO_VLAN */
19 static inline int vlan_init(struct hostapd_data *hapd)
20 {
21  return 0;
22 }
23 
24 static inline void vlan_deinit(struct hostapd_data *hapd)
25 {
26 }
27 
28 static inline struct hostapd_vlan * vlan_add_dynamic(struct hostapd_data *hapd,
29  struct hostapd_vlan *vlan,
30  int vlan_id)
31 {
32  return NULL;
33 }
34 
35 static inline int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id)
36 {
37  return -1;
38 }
39 
40 static inline int vlan_setup_encryption_dyn(struct hostapd_data *hapd,
41  const char *dyn_vlan)
42 {
43  return -1;
44 }
45 #endif /* CONFIG_NO_VLAN */
46 
47 #endif /* VLAN_INIT_H */
Definition: ap_config.h:110
hostapd per-BSS data structure
Definition: hostapd.h:103