Changed the scope of stations. Now the stations are managed on a global level.
This commit is contained in:
@ -68,6 +68,11 @@ typedef void* wifi_global_handle;
|
||||
typedef void* wifi_device_handle;
|
||||
typedef void* wifi_wlan_handle;
|
||||
|
||||
/* */
|
||||
struct global_init_params {
|
||||
struct capwap_timeout* timeout;
|
||||
};
|
||||
|
||||
/* */
|
||||
struct device_init_params {
|
||||
const char* ifname;
|
||||
@ -99,8 +104,6 @@ struct wlan_startap_params {
|
||||
send_mgmtframe_to_ac send_mgmtframe;
|
||||
void* send_mgmtframe_to_ac_cbparam;
|
||||
|
||||
struct capwap_timeout* timeout;
|
||||
|
||||
const char* ssid;
|
||||
uint8_t ssid_hidden;
|
||||
uint16_t capability;
|
||||
@ -218,7 +221,7 @@ struct wifi_driver_ops {
|
||||
const char* description; /* Description of wifi driver */
|
||||
|
||||
/* Global initialize driver */
|
||||
wifi_global_handle (*global_init)(void);
|
||||
wifi_global_handle (*global_init)(struct global_init_params* params);
|
||||
int (*global_getfdevent)(wifi_global_handle handle, struct pollfd* fds, struct wifi_event* events);
|
||||
void (*global_deinit)(wifi_global_handle handle);
|
||||
|
||||
@ -264,7 +267,7 @@ struct wifi_wlan {
|
||||
};
|
||||
|
||||
/* Initialize wifi driver engine */
|
||||
int wifi_driver_init(void);
|
||||
int wifi_driver_init(struct capwap_timeout* timeout);
|
||||
void wifi_driver_free(void);
|
||||
|
||||
/* Get File Descriptor Event */
|
||||
|
Reference in New Issue
Block a user