source: rtems-libbsd/freebsd/contrib/wpa/src/common/hw_features_common.h @ 9c9d11b

55-freebsd-126-freebsd-12
Last change on this file since 9c9d11b was 9c9d11b, checked in by Sichen Zhao <1473996754@…>, on 08/01/17 at 12:43:41

Import wpa from FreeBSD

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/*
2 * Common hostapd/wpa_supplicant HW features
3 * Copyright (c) 2002-2013, Jouni Malinen <j@w1.fi>
4 * Copyright (c) 2015, Qualcomm Atheros, Inc.
5 *
6 * This software may be distributed under the terms of the BSD license.
7 * See README for more details.
8 */
9
10#ifndef HW_FEATURES_COMMON_H
11#define HW_FEATURES_COMMON_H
12
13#include "drivers/driver.h"
14
15struct hostapd_channel_data * hw_get_channel_chan(struct hostapd_hw_modes *mode,
16                                                  int chan, int *freq);
17struct hostapd_channel_data * hw_get_channel_freq(struct hostapd_hw_modes *mode,
18                                                  int freq, int *chan);
19
20int hw_get_freq(struct hostapd_hw_modes *mode, int chan);
21int hw_get_chan(struct hostapd_hw_modes *mode, int freq);
22
23int allowed_ht40_channel_pair(struct hostapd_hw_modes *mode, int pri_chan,
24                              int sec_chan);
25void get_pri_sec_chan(struct wpa_scan_res *bss, int *pri_chan, int *sec_chan);
26int check_40mhz_5g(struct hostapd_hw_modes *mode,
27                   struct wpa_scan_results *scan_res, int pri_chan,
28                   int sec_chan);
29int check_40mhz_2g4(struct hostapd_hw_modes *mode,
30                    struct wpa_scan_results *scan_res, int pri_chan,
31                    int sec_chan);
32int hostapd_set_freq_params(struct hostapd_freq_params *data,
33                            enum hostapd_hw_mode mode,
34                            int freq, int channel, int ht_enabled,
35                            int vht_enabled, int sec_channel_offset,
36                            int vht_oper_chwidth, int center_segment0,
37                            int center_segment1, u32 vht_caps);
38
39#endif /* HW_FEATURES_COMMON_H */
Note: See TracBrowser for help on using the repository browser.