mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-30 05:58:22 +00:00
net: bump u80211
This commit is contained in:
@@ -11,14 +11,14 @@ typedef struct {
|
||||
size_t entry_count;
|
||||
} bss_cache_t;
|
||||
|
||||
int u80211_bss_cache_init(bss_cache_t *cache);
|
||||
void u80211_bss_cache_deinit(bss_cache_t *cache);
|
||||
void u80211_bss_cache_purge(bss_cache_t *cache);
|
||||
void u80211_bss_cache_insert(bss_cache_t *cache, u80211_ap_t *ap);
|
||||
void u80211_bss_cache_remove(bss_cache_t *cache, u80211_mac_address_t *mac);
|
||||
u80211_ap_t *u80211_bss_cache_find(bss_cache_t *cache, u80211_mac_address_t *mac);
|
||||
int u80211_bss_cache_init(u80211_device_t *device);
|
||||
void u80211_bss_cache_deinit(u80211_device_t *device);
|
||||
void u80211_bss_cache_purge(u80211_device_t *device);
|
||||
void u80211_bss_cache_insert(u80211_device_t *device, u80211_ap_t *ap);
|
||||
void u80211_bss_cache_remove(u80211_device_t *device, u80211_mac_address_t *mac);
|
||||
u80211_ap_t *u80211_bss_cache_find(u80211_device_t *device, u80211_mac_address_t *mac);
|
||||
// each AP pointer written to buffer has an acquired reference that the caller must release.
|
||||
size_t u80211_bss_cache_get_aps(bss_cache_t *cache, u80211_ap_t **buffer, size_t capacity);
|
||||
size_t u80211_bss_cache_get_count(bss_cache_t *cache);
|
||||
size_t u80211_bss_cache_get_aps(u80211_device_t *device, u80211_ap_t **buffer, size_t capacity);
|
||||
size_t u80211_bss_cache_get_count(u80211_device_t *device);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,12 +19,12 @@ static inline void *u80211_descriptor_allocate_space(u80211_tx_buffer_descriptor
|
||||
}
|
||||
|
||||
typedef struct {
|
||||
int (*allocate_tx_buffer)(u80211_device_t *device, size_t size, u80211_tx_buffer_descriptor_t *buffer_descriptor);
|
||||
int (*free_tx_buffer)(u80211_device_t *device, u80211_tx_buffer_descriptor_t *buffer_descriptor);
|
||||
int (*transmit)(u80211_device_t *device, u80211_tx_buffer_descriptor_t *buffer_descriptor, const u80211_transmit_options_t *options);
|
||||
int (*set_channel)(u80211_device_t *device, int channel);
|
||||
int (*set_key)(u80211_device_t *device, const u80211_key_t *key);
|
||||
int (*del_key)(u80211_device_t *device, uint8_t index, const u80211_mac_address_t *peer, uint32_t flags);
|
||||
int (*allocate_tx_buffer)(void *driver_data, size_t size, u80211_tx_buffer_descriptor_t *buffer_descriptor);
|
||||
int (*free_tx_buffer)(void *driver_data, u80211_tx_buffer_descriptor_t *buffer_descriptor);
|
||||
int (*transmit)(void *driver_data, u80211_tx_buffer_descriptor_t *buffer_descriptor, const u80211_transmit_options_t *options);
|
||||
int (*set_channel)(void *driver_data, int channel);
|
||||
int (*set_key)(void *driver_data, const u80211_key_t *key);
|
||||
int (*del_key)(void *driver_data, uint8_t index, const u80211_mac_address_t *peer, uint32_t flags);
|
||||
} u80211_device_ops_t;
|
||||
|
||||
typedef struct {
|
||||
|
||||
Reference in New Issue
Block a user