Home
last modified time | relevance | path

Searched refs:txpow (Results 1 – 12 of 12) sorted by relevance

/freebsd/contrib/wpa/src/ap/
H A Dtaxonomy.c98 char txpow[7 + 4 + 1]; /* ",txpow:" + %04hx + trailing NUL */ in ie_to_string() local
114 os_memset(txpow, 0, sizeof(txpow)); in ie_to_string()
214 os_snprintf(txpow, sizeof(txpow), in ie_to_string()
231 txpow, extcap, wps); in ie_to_string()
/freebsd/tools/tools/ath/athrd/
H A Dathrd.c781 int16_t tpcScaleReduction, int16_t powerLimit, int16_t *txpow) in calctxpower() argument
788 tpcScaleReduction, powerLimit, &minpow, &txpow[i])) { in calctxpower()
873 const struct ieee80211_channel *chans, int16_t *txpow) in dumpchannels() argument
908 txpow[i]/2, (txpow[i]%2)*5); in dumpchannels()
912 txpow[i]/2, (txpow[i]%2)*5); in dumpchannels()
916 txpow[i]/2, (txpow[i]%2)*5); in dumpchannels()
918 printf("%c %d.%d", type, txpow[i]/2, (txpow[i]%2)*5); in dumpchannels()
/freebsd/sys/dev/usb/wlan/
H A Dif_uralvar.h111 uint8_t txpow[14]; member
H A Dif_rumvar.h142 uint8_t txpow[44]; member
H A Dif_rum.c2113 power = sc->txpow[i]; in rum_set_chan()
2462 rum_eeprom_read(sc, RT2573_EEPROM_TXPOWER, sc->txpow, 14); in rum_read_eeprom()
2464 memset(sc->txpow + 14, 24, sizeof (sc->txpow) - 14); in rum_read_eeprom()
2467 DPRINTF("Channel=%d Tx power=%d\n", i + 1, sc->txpow[i]); in rum_read_eeprom()
H A Dif_ural.c1609 power = min(sc->txpow[chan - 1], 31); in ural_set_chan()
1922 ural_eeprom_read(sc, RAL_EEPROM_TXPOWER, sc->txpow, 14); in ural_read_eeprom()
/freebsd/sys/dev/ral/
H A Drt2560var.h135 uint8_t txpow[14]; member
H A Drt2661var.h134 int8_t txpow[38]; member
H A Drt2661.c1919 power = sc->txpow[i]; in rt2661_set_chan()
2163 sc->txpow[i * 2] = (int8_t)(val >> 8); /* signed */ in rt2661_read_eeprom()
2165 rt2661_rf5225_1[i * 2].chan, sc->txpow[i * 2]); in rt2661_read_eeprom()
2166 sc->txpow[i * 2 + 1] = (int8_t)(val & 0xff); /* signed */ in rt2661_read_eeprom()
2168 rt2661_rf5225_1[i * 2 + 1].chan, sc->txpow[i * 2 + 1]); in rt2661_read_eeprom()
H A Drt2560.c2033 power = min(sc->txpow[chan - 1], 31); in rt2560_set_chan()
2432 sc->txpow[i * 2] = val & 0xff; in rt2560_read_config()
2433 sc->txpow[i * 2 + 1] = val >> 8; in rt2560_read_config()
2436 if (sc->txpow[i] > 31) in rt2560_read_config()
2437 sc->txpow[i] = 24; in rt2560_read_config()
/freebsd/sys/net80211/
H A Dieee80211_ioctl.c527 struct ieee80211req_sta_txpow txpow; in ieee80211_ioctl_getstatxpow() local
530 if (ireq->i_len != sizeof(txpow)) in ieee80211_ioctl_getstatxpow()
532 error = copyin(ireq->i_data, &txpow, sizeof(txpow)); in ieee80211_ioctl_getstatxpow()
535 ni = ieee80211_find_vap_node(&vap->iv_ic->ic_sta, vap, txpow.it_macaddr); in ieee80211_ioctl_getstatxpow()
538 txpow.it_txpow = ni->ni_txpower; in ieee80211_ioctl_getstatxpow()
539 error = copyout(&txpow, ireq->i_data, sizeof(txpow)); in ieee80211_ioctl_getstatxpow()
1783 struct ieee80211req_sta_txpow txpow; in ieee80211_ioctl_setstatxpow() local
1786 if (ireq->i_len != sizeof(txpow)) in ieee80211_ioctl_setstatxpow()
1788 error = copyin(ireq->i_data, &txpow, sizeof(txpow)); in ieee80211_ioctl_setstatxpow()
1791 ni = ieee80211_find_vap_node(&vap->iv_ic->ic_sta, vap, txpow.it_macaddr); in ieee80211_ioctl_setstatxpow()
[all …]
/freebsd/sbin/ifconfig/
H A Difieee80211.c1065 int txpow; in set80211txpower() local
1067 txpow = (int) (2*v); in set80211txpower()
1068 if (txpow != 2*v) in set80211txpower()
1070 set80211(ctx, IEEE80211_IOC_TXPOWER, txpow, 0, NULL); in set80211txpower()