struct {
char *buf;
struct uci_blob_param_list *config;
- } device, interface, vlan;
+ } device, interface, vlan, station;
};
struct wireless_device {
struct wireless_driver *drv;
struct vlist_tree interfaces;
struct vlist_tree vlans;
+ struct vlist_tree stations;
char *name;
struct netifd_process script_task;
int vif_idx;
int vlan_idx;
+ int sta_idx;
};
struct wireless_interface {
const char *ifname;
struct blob_attr *network;
+ bool proxyarp;
bool isolate;
bool ap_mode;
};
bool isolate;
};
+struct wireless_station {
+ struct vlist_node node;
+ const char *section;
+ char *name;
+
+ struct wireless_device *wdev;
+ char *vif;
+
+ struct blob_attr *config;
+ struct blob_attr *data;
+};
+
struct wireless_process {
struct list_head list;
int pid;
bool required;
+ bool keep;
};
void wireless_device_create(struct wireless_driver *drv, const char *name, struct blob_attr *data);
void wireless_device_get_validate(struct wireless_device *wdev, struct blob_buf *b);
struct wireless_interface* wireless_interface_create(struct wireless_device *wdev, struct blob_attr *data, const char *section);
void wireless_vlan_create(struct wireless_device *wdev, char *vif, struct blob_attr *data, const char *section);
+void wireless_station_create(struct wireless_device *wdev, char *vif, struct blob_attr *data, const char *section);
int wireless_device_notify(struct wireless_device *wdev, struct blob_attr *data,
struct ubus_request_data *req);
void wireless_start_pending(void);
void wireless_init(void);
+void wireless_device_hotplug_event(const char *name, bool add);
#endif