12#ifndef __WS80211_UTILS_H__
13#define __WS80211_UTILS_H__
21enum ws80211_channel_type {
24 WS80211_CHAN_HT40MINUS,
25 WS80211_CHAN_HT40PLUS,
27 WS80211_CHAN_VHT80P80,
32#define CHAN_NO_HT "NOHT"
33#define CHAN_HT20 "HT20"
34#define CHAN_HT40MINUS "HT40-"
35#define CHAN_HT40PLUS "HT40+"
36#define CHAN_VHT80 "VHT80"
37#define CHAN_VHT80P80 "VHT80+80"
38#define CHAN_VHT160 "VHT160"
39#define CHAN_EHT320 "EHT320"
44enum ws80211_band_type {
50enum ws80211_fcs_validation {
75 enum ws80211_channel_type current_chan_type;
76 int current_center_freq1;
77 int current_center_freq2;
78 enum ws80211_fcs_validation current_fcs_validation;
88#define WS80211_INIT_OK 0
89#define WS80211_INIT_NOT_SUPPORTED 1
91int ws80211_init(
void);
120int ws80211_set_freq(
const char *name, uint32_t freq,
int chan_type, uint32_t _U_ center_freq, uint32_t _U_ center_freq2);
122int ws80211_str_to_chan_type(
const char *s);
123const char *ws80211_chan_type_to_str(
enum ws80211_channel_type type);
125const char *ws80211_band_type_to_str(
enum ws80211_band_type type);
Definition ws80211_utils.h:57
Definition ws80211_utils.h:73
Definition ws80211_utils.h:63
GArray * ws80211_find_interfaces(void)
Definition ws80211_utils.c:1089
int ws80211_set_freq(const char *name, uint32_t freq, int chan_type, uint32_t _U_ center_freq, uint32_t _U_ center_freq2)
int ws80211_set_fcs_validation(const char *name, enum ws80211_fcs_validation fcs_validation)
const char * ws80211_get_helper_path(void)
Definition ws80211_utils.c:1129
int ws80211_get_center_frequency(int control_frequency, enum ws80211_channel_type channel_type)
Definition ws80211_utils.c:1161
void ws80211_free_interfaces(GArray *interfaces)
Definition ws80211_utils.c:1137
bool ws80211_has_fcs_filter(void)
Definition ws80211_utils.c:1119