Here is a script I tried in the past with OZ (I don\'t know if it will work on Sharp based ROMs). It does stop and start the card, but did not seem to change the actual speed, or more importantly the range:
#!/bin/sh
/sbin/ifconfig wlan0 down
/sbin/iwconfig wlan0 key 65:c5:d3:45:e9
/sbin/iwconfig wlan0 rate 2M
/sbin/udhcpc -i wlan0
Basically:
- Bring down the interface
- Configure the WEP key (if you don\'t have one, I think you should be able to remove that line)
- Configure the speed (1, 2, 5.5, 11)
- Restart card with DHCP enabled (I\'m not 100% on exactly what this line did, but the card does restart at this point)
I then get the following when I type \"iwconfig\" at the command prompt:
wlan0 IEEE 802.11b ESSID:"linksys" Nickname:"openzaurus"
Mode:Managed Frequency:2.437GHz Access Point: 05:04:23:7A:4F:2F
Bit Rate=2Mb/s Tx-Power:-9 dBm Sensitivity=1/3
Retry min limit:8 RTS thr:off Fragment thr:off
Encryption key:65c5-d345-e9 Encryption mode:restricted
Power Management:off
Link Quality:92/92 Signal level:-44 dBm Noise level:-93 dBm
Rx invalid nwid:0 invalid crypt:0 invalid misc:10879
It shows the change to 2Mb, but I don\'t see any range gain what so ever with the Z in use over 11Mb. Maybe the driver is only capable of 11Mb, so the setting is ignored. I did not do a bandwidth test, so someone may want to try that to see if there is any change there before digging deeper with this code.