Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/rtwn/if_rtwnreg.h
Show All 12 Lines | |||||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||||
* | * | ||||
* $OpenBSD: if_urtwnreg.h,v 1.3 2010/11/16 18:02:59 damien Exp $ | * $OpenBSD: if_urtwnreg.h,v 1.3 2010/11/16 18:02:59 damien Exp $ | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef IF_RTWNREG_H | |||||
#define IF_RTWNREG_H | |||||
#define R92C_MIN_TX_PWR 0x00 | #define R92C_MIN_TX_PWR 0x00 | ||||
#define R92C_MAX_TX_PWR 0x3f | #define R92C_MAX_TX_PWR 0x3f | ||||
#define R92C_H2C_NBOX 4 | #define R92C_H2C_NBOX 4 | ||||
/* Common part of Tx descriptor (named only!). */ | /* Common part of Tx descriptor (named only!). */ | ||||
struct rtwn_tx_desc_common { | struct rtwn_tx_desc_common { | ||||
▲ Show 20 Lines • Show All 131 Lines • ▼ Show 20 Lines | rtwn_chan2centieee(const struct ieee80211_channel *c) | ||||
int chan; | int chan; | ||||
chan = c->ic_ieee; | chan = c->ic_ieee; | ||||
if (c->ic_extieee != 0) | if (c->ic_extieee != 0) | ||||
chan = (chan + c->ic_extieee) / 2; | chan = (chan + c->ic_extieee) / 2; | ||||
return (chan); | return (chan); | ||||
} | } | ||||
#endif /* IF_RTWNREG_H */ |