Subject: ath driver - TX power settings
To: None <current-users@netbsd.org>
From: Wojciech Puchar <wojtek@tensor.3miasto.net>
List: current-users
Date: 01/14/2004 11:50:26
i found such fragments:
if (!ath_hal_setuptxdesc(ah, ds
, m->m_pkthdr.len + IEEE80211_CRC_LEN /* packet length
*/
, sizeof(struct ieee80211_frame) /* header length
*/
, HAL_PKT_TYPE_BEACON /* Atheros packet type */
, 0x20 /* txpower XXX */
, rate, 1 /* series 0 rate/tries */
, HAL_TXKEYIX_INVALID /* no encryption */
, 0 /* antenna mode */
, HAL_TXDESC_NOACK /* no ack for beacons */
, 0 /* rts/cts rate */
, 0 /* rts/cts duration */
)) {
and
ath_hal_setuptxdesc(ah, ds
, pktlen /* packet length */
, hdrlen /* header length */
, atype /* Atheros packet type */
, 60 /* txpower XXX */
, txrate, 1+10 /* series 0 rate/tries */
, iswep ? sc->sc_ic.ic_wep_txkey : HAL_TXKEYIX_INVALID
, antenna /* antenna mode */
, flags /* flags */
, ctsrate /* rts/cts rate */
, ctsduration /* rts/cts duration */
);
first sets 0x20 as power output level second sets 60 (=0x3C).
is there any description for how this numbers translates to dBm?
is there any interface already done in NetBSD 802.11 routines to set power
output through ifconfig/wiconfig or should i add something.
what are antenna and flags numbers?
finally - is there athhal-elf.o somewhere documented?