/* * Copyright (c) 2010 Broadcom Corporation * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifndef _BRCM_CHANNEL_H_ #define _BRCM_CHANNEL_H_ /* conversion for phy txpwr calculations that use .25 dB units */ #define BRCMS_TXPWR_DB_FACTOR … /* bits for locale_info flags */ #define BRCMS_PEAK_CONDUCTED … #define BRCMS_EIRP … #define BRCMS_DFS_TPC … #define BRCMS_NO_OFDM … #define BRCMS_NO_40MHZ … #define BRCMS_NO_MIMO … #define BRCMS_RADAR_TYPE_EU … #define BRCMS_DFS_FCC … #define BRCMS_DFS_EU … struct brcms_cm_info *brcms_c_channel_mgr_attach(struct brcms_c_info *wlc); void brcms_c_channel_mgr_detach(struct brcms_cm_info *wlc_cm); bool brcms_c_valid_chanspec_db(struct brcms_cm_info *wlc_cm, u16 chspec); void brcms_c_channel_reg_limits(struct brcms_cm_info *wlc_cm, u16 chanspec, struct txpwr_limits *txpwr); void brcms_c_channel_set_chanspec(struct brcms_cm_info *wlc_cm, u16 chanspec, u8 local_constraint_qdbm); void brcms_c_regd_init(struct brcms_c_info *wlc); #endif /* _WLC_CHANNEL_H */