5 #ifndef IEEE802_11_COMMON_H
6 #define IEEE802_11_COMMON_H
8 #define MAX_NOF_MB_IES_SUPPORTED 5
14 } ies[MAX_NOF_MB_IES_SUPPORTED];
25 const u8 *ext_supp_rates;
31 const u8 *supp_channels;
34 const u8 *timeout_int;
35 const u8 *ht_capabilities;
36 const u8 *ht_operation;
37 const u8 *mesh_config;
40 const u8 *vht_capabilities;
41 const u8 *vht_operation;
42 const u8 *vht_opmode_notif;
43 const u8 *vendor_ht_cap;
48 const u8 *interworking;
49 const u8 *qos_map_set;
52 const u8 *bss_max_idle_period;
57 const u8 *pref_freq_list;
62 u8 ext_supp_rates_len;
86 u8 pref_freq_list_len;
90 typedef enum { ParseOK = 0, ParseUnknown = 1, ParseFailed = -1 } ParseRes;
95 int ieee802_11_ie_count(
const u8 *ies,
size_t ies_len);
96 struct wpabuf * ieee802_11_vendor_ie_concat(
const u8 *ies,
size_t ies_len,
99 const u8 * get_hdr_bssid(
const struct ieee80211_hdr *hdr,
size_t len);
106 int admission_control_mandatory;
110 const char *name,
const char *val);
114 int sec_channel,
int vht,
115 u8 *op_class, u8 *channel);
116 int ieee80211_is_dfs(
int freq);
119 int mb_ies_info_by_ies(
struct mb_ies_info *info,
const u8 *ies_buf,
123 const char * fc2str(u16 fc);
ParseRes ieee802_11_parse_elems(const u8 *start, size_t len, struct ieee802_11_elems *elems, int show_errors)
Parse information elements in management frames.
Definition: ieee802_11_common.c:181
enum hostapd_hw_mode ieee80211_freq_to_channel_ext(unsigned int freq, int sec_channel, int vht, u8 *op_class, u8 *channel)
Convert frequency into channel info for HT40 and VHT. DFS channels are not covered.
Definition: ieee802_11_common.c:583
Definition: ieee802_11_defs.h:445
hostapd_hw_mode
Hardware mode.
Definition: defs.h:302
Definition: ieee802_11_common.h:19
int ieee80211_chan_to_freq(const char *country, u8 op_class, u8 chan)
Convert channel info to frequency.
Definition: ieee802_11_common.c:958
Definition: ieee802_11_common.h:101
Definition: ieee802_11_common.h:10