wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
hw_features_common.h
Go to the documentation of this file.
1 
6 #ifndef HW_FEATURES_COMMON_H
7 #define HW_FEATURES_COMMON_H
8 
9 #include "drivers/driver.h"
10 
11 struct hostapd_channel_data * hw_get_channel_chan(struct hostapd_hw_modes *mode,
12  int chan, int *freq);
13 struct hostapd_channel_data * hw_get_channel_freq(struct hostapd_hw_modes *mode,
14  int freq, int *chan);
15 
16 int hw_get_freq(struct hostapd_hw_modes *mode, int chan);
17 int hw_get_chan(struct hostapd_hw_modes *mode, int freq);
18 
19 int allowed_ht40_channel_pair(struct hostapd_hw_modes *mode, int pri_chan,
20  int sec_chan);
21 void get_pri_sec_chan(struct wpa_scan_res *bss, int *pri_chan, int *sec_chan);
22 int check_40mhz_5g(struct hostapd_hw_modes *mode,
23  struct wpa_scan_results *scan_res, int pri_chan,
24  int sec_chan);
25 int check_40mhz_2g4(struct hostapd_hw_modes *mode,
26  struct wpa_scan_results *scan_res, int pri_chan,
27  int sec_chan);
28 int hostapd_set_freq_params(struct hostapd_freq_params *data,
29  enum hostapd_hw_mode mode,
30  int freq, int channel, int ht_enabled,
31  int vht_enabled, int sec_channel_offset,
32  int vht_oper_chwidth, int center_segment0,
33  int center_segment1, u32 vht_caps);
34 
35 #endif /* HW_FEATURES_COMMON_H */
Channel information.
Definition: driver.h:72
Driver interface definition.
Scan result for an BSS/IBSS.
Definition: driver.h:253
short chan
Channel number (IEEE 802.11)
Definition: driver.h:77
Supported hardware mode information.
Definition: driver.h:132
hostapd_hw_mode
Hardware mode.
Definition: defs.h:302
int freq
Frequency in MHz.
Definition: driver.h:83
Scan results.
Definition: driver.h:277
Channel parameters.
Definition: driver.h:510