setting ath txpower via ifconfig errors out

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

setting ath txpower via ifconfig errors out

Antonios Anastasiadis
Trying to change txpower on atheros wireless cards does not set the
power accordingly, just errors out.

# dmesg
OpenBSD 3.9 (GENERIC) #617: Thu Mar  2 02:26:48 MST 2006
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 401 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem  = 66625536 (65064K)
avail mem = 53170176 (51924K)
using 838 buffers containing 3432448 bytes (3352K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(92) BIOS, date 03/04/99, BIOS32 rev. 0 @ 0xfbc00
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xc07c
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdef0/160 (8 entries)
pcibios0: PCI Exclusive IRQs: 5 10 11 12
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371SB ISA" rev 0x00)
pcibios0: PCI bus #2 is the last bus
bios0: ROM list: 0xc0000/0x8000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Rage Pro" rev 0x5c
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <QUANTUM FIREBALL ST3.2A>
wd0: 16-sector PIO, LBA, 3079MB, 6306048 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 10
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
piixpm0 at pci0 dev 7 function 3 "Intel 82371AB Power" rev 0x02: polling
iic0 at piixpm0
xl0 at pci0 dev 14 function 0 "3Com 3c905B 100Base-TX" rev 0x30: irq
11, address 00:50:04:34:3b:2d
exphy0 at xl0 phy 24: 3Com internal media interface
ppb1 at pci0 dev 16 function 0 vendor "Hint", unknown product 0x0021 rev 0x15
pci2 at ppb1 bus 2
ath0 at pci2 dev 8 function 0 "Atheros AR5212" rev 0x01: irq 12
ath0: AR5213 5.6 phy 4.1 rf5111 1.7 rf2111 2.3, FCC2A*, address
00:0b:6b:34:95:a9
ath1 at pci2 dev 9 function 0 "Atheros AR5212" rev 0x01: irq 5
ath1: AR5213 5.9 phy 4.3 rf5112 3.6, FCC2A*, address 00:0b:6b:4d:58:60
ath2 at pci2 dev 10 function 0 "Atheros AR5212" rev 0x01: irq 10
ath2: AR5213 5.6 phy 4.1 rf5111 1.7 rf2111 2.3, FCC2A*, address
00:0b:6b:34:96:0c
eap0 at pci0 dev 20 function 0 "Ensoniq AudioPCI97" rev 0x06: irq 5
ac97: codec id 0x54524103 (TriTech Microelectronics TR28023)
audio0 at eap0
midi0 at eap0: <AudioPCI MIDI UART>
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi1 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
biomask e74d netmask ff6d ttymask ffef
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302






# ifconfig -a
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33224
        groups: lo
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8
xl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:50:04:34:3b:2d
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet 10.2.29.1 netmask 0xffffffc0 broadcast 10.2.29.63
        inet6 fe80::250:4ff:fe34:3b2d%xl0 prefixlen 64 scopeid 0x1
ath0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:0b:6b:34:95:a9
        media: IEEE802.11 autoselect mode 11b (DS11 mode 11b)
        status: active
        ieee80211: nwid awmn-806-3060 chan 8 bssid 00:09:43:58:87:08
        inet 10.2.29.161 netmask 0xfffffff8 broadcast 10.2.29.167
        inet6 fe80::20b:6bff:fe34:95a9%ath0 prefixlen 64 scopeid 0x2
ath1: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:0b:6b:4d:58:60
        groups: egress
        media: IEEE802.11 autoselect mode 11b (DS11 mode 11b)
        status: active
        ieee80211: nwid AWMN-ebababi-wasteland chan 11 bssid 00:14:bf:eb:7e:3c
        inet 10.2.29.65 netmask 0xffffffc0 broadcast 10.2.29.127
        inet6 fe80::20b:6bff:fe4d:5860%ath1 prefixlen 64 scopeid 0x3
ath2: flags=8822<BROADCAST,NOTRAILERS,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:0b:6b:34:96:0c
        media: IEEE802.11 autoselect
        status: no network
        ieee80211: nwid ""
pflog0: flags=0<> mtu 33224
pfsync0: flags=0<> mtu 1460
enc0: flags=0<> mtu 1536



This is the output of the ifconfig command.

# ifconfig ath1 txpower 10
ifconfig: SIOCS80211TXPOWER: Invalid argument
# ifconfig ath1 txpower 20
ifconfig: SIOCS80211TXPOWER: Invalid argument
# ifconfig ath1 txpower 0
ifconfig: SIOCS80211TXPOWER: Invalid argument
# ifconfig ath0 txpower 0
ifconfig: SIOCS80211TXPOWER: Invalid argument
# ifconfig ath0 txpower 10
ifconfig: SIOCS80211TXPOWER: Invalid argument
# ifconfig ath2 txpower 10
ifconfig: SIOCS80211TXPOWER: Invalid argument

Obviously, the same error persists regardless the txpower argument value.