Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1 | /* |
| 2 | * hostapd / VLAN initialization |
| 3 | * Copyright 2003, Instant802 Networks, Inc. |
| 4 | * Copyright 2005, Devicescape Software, Inc. |
| 5 | * |
Dmitry Shmidt | fb79edc | 2014-01-10 10:45:54 -0800 | [diff] [blame^] | 6 | * This software may be distributed under the terms of the BSD license. |
| 7 | * See README for more details. |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #ifndef VLAN_INIT_H |
| 11 | #define VLAN_INIT_H |
| 12 | |
| 13 | #ifndef CONFIG_NO_VLAN |
| 14 | int vlan_init(struct hostapd_data *hapd); |
| 15 | void vlan_deinit(struct hostapd_data *hapd); |
| 16 | struct hostapd_vlan * vlan_add_dynamic(struct hostapd_data *hapd, |
| 17 | struct hostapd_vlan *vlan, |
| 18 | int vlan_id); |
| 19 | int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id); |
| 20 | int vlan_setup_encryption_dyn(struct hostapd_data *hapd, |
| 21 | struct hostapd_ssid *mssid, |
| 22 | const char *dyn_vlan); |
| 23 | #else /* CONFIG_NO_VLAN */ |
| 24 | static inline int vlan_init(struct hostapd_data *hapd) |
| 25 | { |
| 26 | return 0; |
| 27 | } |
| 28 | |
| 29 | static inline void vlan_deinit(struct hostapd_data *hapd) |
| 30 | { |
| 31 | } |
| 32 | |
| 33 | static inline struct hostapd_vlan * vlan_add_dynamic(struct hostapd_data *hapd, |
| 34 | struct hostapd_vlan *vlan, |
| 35 | int vlan_id) |
| 36 | { |
| 37 | return NULL; |
| 38 | } |
| 39 | |
| 40 | static inline int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id) |
| 41 | { |
| 42 | return -1; |
| 43 | } |
| 44 | |
| 45 | static inline int vlan_setup_encryption_dyn(struct hostapd_data *hapd, |
| 46 | struct hostapd_ssid *mssid, |
| 47 | const char *dyn_vlan) |
| 48 | { |
| 49 | return -1; |
| 50 | } |
| 51 | #endif /* CONFIG_NO_VLAN */ |
| 52 | |
| 53 | #endif /* VLAN_INIT_H */ |