00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef VLAN_INIT_H
00017 #define VLAN_INIT_H
00018
00019 #ifndef CONFIG_NO_VLAN
00020 int vlan_init(struct hostapd_data *hapd);
00021 void vlan_deinit(struct hostapd_data *hapd);
00022 struct hostapd_vlan * vlan_add_dynamic(struct hostapd_data *hapd,
00023 struct hostapd_vlan *vlan,
00024 int vlan_id);
00025 int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id);
00026 int vlan_setup_encryption_dyn(struct hostapd_data *hapd,
00027 struct hostapd_ssid *mssid,
00028 const char *dyn_vlan);
00029 #else
00030 static inline int vlan_init(struct hostapd_data *hapd)
00031 {
00032 return 0;
00033 }
00034
00035 static inline void vlan_deinit(struct hostapd_data *hapd)
00036 {
00037 }
00038
00039 static inline struct hostapd_vlan * vlan_add_dynamic(struct hostapd_data *hapd,
00040 struct hostapd_vlan *vlan,
00041 int vlan_id)
00042 {
00043 return NULL;
00044 }
00045
00046 static inline int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id)
00047 {
00048 return -1;
00049 }
00050
00051 static inline int vlan_setup_encryption_dyn(struct hostapd_data *hapd,
00052 struct hostapd_ssid *mssid,
00053 const char *dyn_vlan)
00054 {
00055 return -1;
00056 }
00057 #endif
00058
00059 #endif