blob: 39dd3a5b2979a572613c5335473cd121295b4649 [file] [log] [blame]
Arend van Spriel5b435de2011-10-05 13:19:03 +02001/*
2 * Copyright (c) 2010 Broadcom Corporation
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
11 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
13 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
14 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */
16
17#ifndef _BRCM_CHANNEL_H_
18#define _BRCM_CHANNEL_H_
19
20/* conversion for phy txpwr calculations that use .25 dB units */
21#define BRCMS_TXPWR_DB_FACTOR 4
22
23/* bits for locale_info flags */
24#define BRCMS_PEAK_CONDUCTED 0x00 /* Peak for locals */
25#define BRCMS_EIRP 0x01 /* Flag for EIRP */
26#define BRCMS_DFS_TPC 0x02 /* Flag for DFS TPC */
27#define BRCMS_NO_OFDM 0x04 /* Flag for No OFDM */
28#define BRCMS_NO_40MHZ 0x08 /* Flag for No MIMO 40MHz */
29#define BRCMS_NO_MIMO 0x10 /* Flag for No MIMO, 20 or 40 MHz */
30#define BRCMS_RADAR_TYPE_EU 0x20 /* Flag for EU */
31#define BRCMS_DFS_FCC BRCMS_DFS_TPC /* Flag for DFS FCC */
32
33#define BRCMS_DFS_EU (BRCMS_DFS_TPC | BRCMS_RADAR_TYPE_EU) /* Flag for DFS EU */
34
Joe Perches9bd91f32013-09-23 11:37:59 -070035struct brcms_cm_info *brcms_c_channel_mgr_attach(struct brcms_c_info *wlc);
Arend van Spriel5b435de2011-10-05 13:19:03 +020036
Joe Perches9bd91f32013-09-23 11:37:59 -070037void brcms_c_channel_mgr_detach(struct brcms_cm_info *wlc_cm);
Arend van Spriel5b435de2011-10-05 13:19:03 +020038
Joe Perches9bd91f32013-09-23 11:37:59 -070039bool brcms_c_valid_chanspec_db(struct brcms_cm_info *wlc_cm, u16 chspec);
Arend van Spriel5b435de2011-10-05 13:19:03 +020040
Joe Perches9bd91f32013-09-23 11:37:59 -070041void brcms_c_channel_reg_limits(struct brcms_cm_info *wlc_cm, u16 chanspec,
42 struct txpwr_limits *txpwr);
43void brcms_c_channel_set_chanspec(struct brcms_cm_info *wlc_cm, u16 chanspec,
44 u8 local_constraint_qdbm);
45void brcms_c_regd_init(struct brcms_c_info *wlc);
Arend van Spriel5b435de2011-10-05 13:19:03 +020046
47#endif /* _WLC_CHANNEL_H */