wpa_supplicant / hostapd
2.5
|
IEEE 802.11 Common routines. More...
Go to the source code of this file.
Data Structures | |
struct | mb_ies_info |
struct | ieee802_11_elems |
struct | hostapd_wmm_ac_params |
Macros | |
#define | MAX_NOF_MB_IES_SUPPORTED 5 |
Enumerations | |
enum | ParseRes { ParseOK = 0, ParseUnknown = 1, ParseFailed = -1 } |
Functions | |
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. More... | |
int | ieee802_11_ie_count (const u8 *ies, size_t ies_len) |
struct wpabuf * | ieee802_11_vendor_ie_concat (const u8 *ies, size_t ies_len, u32 oui_type) |
const u8 * | get_hdr_bssid (const struct ieee80211_hdr *hdr, size_t len) |
int | hostapd_config_wmm_ac (struct hostapd_wmm_ac_params wmm_ac_params[], const char *name, const char *val) |
enum hostapd_hw_mode | ieee80211_freq_to_chan (int freq, u8 *channel) |
int | ieee80211_chan_to_freq (const char *country, u8 op_class, u8 chan) |
Convert channel info to frequency. More... | |
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. More... | |
int | ieee80211_is_dfs (int freq) |
int | supp_rates_11b_only (struct ieee802_11_elems *elems) |
int | mb_ies_info_by_ies (struct mb_ies_info *info, const u8 *ies_buf, size_t ies_len) |
struct wpabuf * | mb_ies_by_info (struct mb_ies_info *info) |
const char * | fc2str (u16 fc) |
IEEE 802.11 Common routines.
int ieee80211_chan_to_freq | ( | const char * | country, |
u8 | op_class, | ||
u8 | chan | ||
) |
Convert channel info to frequency.
country | Country code, if known; otherwise, global operating class is used |
op_class | Operating class |
chan | Channel number |
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.
freq | Frequency (MHz) to convert |
sec_channel | 0 = non-HT40, 1 = sec. channel above, -1 = sec. channel below |
vht | 0 - non-VHT, 1 - 80 MHz |
op_class | Buffer for returning operating class |
channel | Buffer for returning channel number |
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.
start | Pointer to the start of IEs |
len | Length of IE buffer in octets |
elems | Data structure for parsed elements |
show_errors | Whether to show parsing errors in debug log |