Lines Matching +defs:c +defs:mode +defs:base +defs:map

1 /*	$NetBSD: if_urtwn.c,v 1.111 2024/11/10 19:01:25 riastradh Exp $	*/
2 /* $OpenBSD: if_urtwn.c,v 1.42 2015/02/10 23:25:46 mpi Exp $ */
5 * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
6 * Copyright (c) 2014 Kevin Lo <kevlo@FreeBSD.org>
7 * Copyright (c) 2016 Nathanial Sloss <nathanialsloss@yahoo.com.au>
28 __KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.111 2024/11/10 19:01:25 riastradh Exp $");
105 #define DPRINTFN(n, fmt, a, b, c, d) do { \
107 KERNHIST_LOG(usbhist, fmt, a, b, c, d); \
116 #define URTWNHIST_CALLARGS(fmt, a, b, c, d) do { \
118 KERNHIST_CALLARGS(usbhist, fmt, a, b, c, d); \
122 #define DPRINTFN(n, fmt, a, b, c, d)
125 #define URTWNHIST_CALLARGS(fmt, a, b, c, d)
489 ic->ic_opmode = IEEE80211_M_STA; /* Default to BSS mode. */
494 IEEE80211_C_MONITOR | /* Monitor mode supported. */
495 IEEE80211_C_IBSS | /* IBSS mode supported */
496 IEEE80211_C_HOSTAP | /* HostAp mode supported */
1624 static const uint8_t map[] = {
1633 uint8_t mode;
1646 for (j = 0; j < __arraycount(map); j++) {
1647 if ((rs->rs_rates[i] & IEEE80211_RATE_VAL) == map[j]) {
1651 if (j == __arraycount(map)) {
1669 mode = R92C_RAID_11B;
1671 mode = R92C_RAID_11BG;
1673 DPRINTFN(DBG_INIT, "mode=%#jx", mode, 0, 0, 0);
1687 cmd.mask = htole32((mode << 28) | basicrates);
1702 cmd.mask = htole32((mode << 28) | rates);
2008 /* Back to 20MHz mode */
2116 /* XXX: Set 20MHz mode */
2121 /* Back to 20MHz mode */
2447 * want this in IEEE80211_M_MONITOR mode?
2736 /* data frames in 11n mode */
2950 /* data frames in 11n mode */
3076 * This allows for fast channel switching in monitor mode
3077 * (used by kismet). In IBSS mode, we must explicitly reset
3139 /* Move SPS into PWM mode. */
3336 /* Enable LDO normal mode. */
4154 /* TODO: use better filter for monitor mode. */
4264 const struct rtwn_txpwr *base;
4282 base = &rtl8188ru_txagc[chain];
4284 base = &rtl8192cu_txagc[chain];
4287 base = &rtl8192cu_txagc[chain];
4293 power[ridx] = base->pwr[0][ridx];
4298 power[ridx] = base->pwr[0][ridx];
4311 power[ridx] = base->pwr[group][ridx];
4314 power[ridx] = base->pwr[0][ridx];
4373 const struct rtwn_r88e_txpwr *base;
4394 base = &rtl8188eu_txagc[chain];
4399 power[ridx] = base->pwr[0][ridx];
4403 power[ridx] = base->pwr[0][ridx];
4406 power[ridx] = base->pwr[group][ridx];
4408 power[ridx] = base->pwr[0][ridx];
4458 urtwn_set_chan(struct urtwn_softc *sc, struct ieee80211_channel *c, u_int ht40m)
4464 chan = ieee80211_chan2ieee(ic, c); /* XXX center freq! */
4658 /* Restore mode. */
4711 /* Set RF mode to standby mode. */
4731 /* Restore Tx mode. */
4733 /* Restore RF mode. */
5224 /* Enter PFM mode */
5250 #include "ioconf.c"