12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- #ifndef VLAN_INIT_H
- #define VLAN_INIT_H
- #ifndef CONFIG_NO_VLAN
- int vlan_init(struct hostapd_data *hapd);
- void vlan_deinit(struct hostapd_data *hapd);
- int vlan_reconfig(struct hostapd_data *hapd, struct hostapd_config *oldconf,
- struct hostapd_bss_config *oldbss);
- struct hostapd_vlan * vlan_add_dynamic(struct hostapd_data *hapd,
- struct hostapd_vlan *vlan,
- int vlan_id);
- int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id);
- int vlan_setup_encryption_dyn(struct hostapd_data *hapd,
- struct hostapd_ssid *mssid,
- const char *dyn_vlan);
- #else
- static inline int vlan_init(struct hostapd_data *hapd)
- {
- return 0;
- }
- static inline void vlan_deinit(struct hostapd_data *hapd)
- {
- }
- static inline struct hostapd_vlan * vlan_add_dynamic(struct hostapd_data *hapd,
- struct hostapd_vlan *vlan,
- int vlan_id)
- {
- return NULL;
- }
- static inline int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id)
- {
- return -1;
- }
- static inline int vlan_setup_encryption_dyn(struct hostapd_data *hapd,
- struct hostapd_ssid *mssid,
- const char *dyn_vlan)
- {
- return -1;
- }
- #endif
- #endif
|