Path: blob/main/sys/contrib/dev/broadcom/brcm80211/brcmsmac/channel.h
178665 views
/*1* Copyright (c) 2010 Broadcom Corporation2*3* Permission to use, copy, modify, and/or distribute this software for any4* purpose with or without fee is hereby granted, provided that the above5* copyright notice and this permission notice appear in all copies.6*7* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES8* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF9* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY10* SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES11* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION12* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN13* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.14*/1516#ifndef _BRCM_CHANNEL_H_17#define _BRCM_CHANNEL_H_1819/* conversion for phy txpwr calculations that use .25 dB units */20#define BRCMS_TXPWR_DB_FACTOR 42122/* bits for locale_info flags */23#define BRCMS_PEAK_CONDUCTED 0x00 /* Peak for locals */24#define BRCMS_EIRP 0x01 /* Flag for EIRP */25#define BRCMS_DFS_TPC 0x02 /* Flag for DFS TPC */26#define BRCMS_NO_OFDM 0x04 /* Flag for No OFDM */27#define BRCMS_NO_40MHZ 0x08 /* Flag for No MIMO 40MHz */28#define BRCMS_NO_MIMO 0x10 /* Flag for No MIMO, 20 or 40 MHz */29#define BRCMS_RADAR_TYPE_EU 0x20 /* Flag for EU */30#define BRCMS_DFS_FCC BRCMS_DFS_TPC /* Flag for DFS FCC */3132#define BRCMS_DFS_EU (BRCMS_DFS_TPC | BRCMS_RADAR_TYPE_EU) /* Flag for DFS EU */3334struct brcms_cm_info *brcms_c_channel_mgr_attach(struct brcms_c_info *wlc);3536void brcms_c_channel_mgr_detach(struct brcms_cm_info *wlc_cm);3738bool brcms_c_valid_chanspec_db(struct brcms_cm_info *wlc_cm, u16 chspec);3940void brcms_c_channel_reg_limits(struct brcms_cm_info *wlc_cm, u16 chanspec,41struct txpwr_limits *txpwr);42void brcms_c_channel_set_chanspec(struct brcms_cm_info *wlc_cm, u16 chanspec,43u8 local_constraint_qdbm);44void brcms_c_regd_init(struct brcms_c_info *wlc);4546#endif /* _WLC_CHANNEL_H */474849