OpenWrt Forum Archive

Topic: [q] wireless tools

The content of this topic has been archived on 5 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

wl utility from linksys was thrown out in openwrt and replaced with wireless tools
but  unfortunately "iwconfig eth1 txpower 84"  doesn't work sad

Is there any known workaround?

Do you have v2.0? You posted:

iwconfig eth1 txpower 84

On version 2.0 the wlan is eth1 but on 1.0 and 1.1 it is eth2.

Another thing is that txpower does not exist, I suppose it is a typo and you wanted to say:

iwconfig eth1 txpwr 84

Yes, I have 2.0 wrt and wireless interface is eth1.

As for txpower/txpwr:

/ # iwconfig -h
Usage: iwconfig interface [essid {NN|on|off}]
                          [nwid {NN|on|off}]
                          [mode {managed|ad-hoc|...}
                          [freq N.NNNN[k|M|G]]
                          [channel N]
                          [sens N]
                          [nick N]
                          [rate {N|auto|fixed}]
                          [rts {N|auto|fixed|off}]
                          [frag {N|auto|fixed|off}]
                          [enc {NNNN-NNNN|off}]
                          [power {period N|timeout N}]
                          [txpower N {mW|dBm}]
                          [commit]
       Check man pages for more details.

And anyway niether txpower nor txpwr works:

/ # iwconfig eth1
eth1      IEEE 802.11-DSF  ESSID:"linksys"
          Mode:Master  Channel:6  Access Point: 00:90:4C:5F:00:2A
          Bit Rate:54Mb/s   Tx-Power=15 dBm
          Retry limit:0   RTS thr:off   Fragment thr:off
          Encryption key:off
          Link Quality:0/5  Signal level:-104 dBm  Noise level:-256 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

/ # iwconfig eth1 txpwr 84
Error for wireless request "Set Tx Power" (8B26) :
    SET failed on device eth1 ; Operation not supported.
/ # iwconfig eth1 txpower 84
Error for wireless request "Set Tx Power" (8B26) :
    SET failed on device eth1 ; Operation not supported.

Does it work for you? If yes I have no glue...

well... I copied wl utility from original linksys firmware and it  works in openwrt but sure it's not clean decision and  patch for wireless tools is needed (as we can't patch driver).

I just have the same problem. Did an fresh install tonight.

/etc/ppp # iwconfig eth2 txpower 84
Error for wireless request "Set Tx Power" (8B26) :
    SET failed on device eth2 ; Operation not supported.

I'm seeing something similar, trying to set a WEP key using iwconfig:

# iwconfig eth1 mode Master key s:DEADBEEF12345DEADBEEF12345 channel 9 essid "My-ESSID" commit

Error for wireless request "Set Encode" (8B2A) :
    SET failed on device eth1 ; nvalid argument.

So I can't figure, is there a way to configure WEP keys (that works) other than through the nvram settings?

It seems to take the wep key specified in the nvram variable as a HEX key, and all my clients (Apple and WinXP) only take the plaintext password/wep key.

Or am I mistaken in this?

The discussion might have continued from here.