PDA

View Full Version : Configuring SR4 Channels


psiegerist
02-05-2009, 04:16 PM
Could someone review my "wireless" config as I cannot set the channel on an SR4 mini-pci card. Here it is:

config 'wifi-device' 'wifi0'
option 'type' 'atheros' #seems to erro out
option 'country' '842'
option 'disabled' '0'
option 'channel' '30' # should be 4955 MHz

config 'wifi-iface'
option 'device' 'wifi0'
option 'mode' 'ap'
option 'ssid' 'test'
option 'encryption' 'none'
option 'wds' '1'
option 'network' 'lan'

Here are the results of iwconfig"

root@test2:/etc/config# iwconfig ath0
ath0 IEEE 802.11a ESSID:"home" Nickname:""
Mode:Master Frequency:5.18 GHz Access Point: 00:15:6D:44:47:7E
Bit Rate:0 kb/s Tx-Power:0 dBm Sensitivity=1/1
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=0/70 Signal level=-96 dBm Noise level=-96 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

When I manually try and config the frequency or channel, I get the following error:

root@test2:/etc/config# iwconfig ath0 channel 30
Error for wireless request "Set Frequency" (8B04) :
SET failed on device ath0 ; Invalid argument.

I am running on an ADI PronghornMetro board with Kamakaze 8.09, r13118

Thanks,
Paul

psiegerist
02-09-2009, 01:50 PM
Well, I figured it out. Here is how I got it to work:

In the ect/modules.d/50-madwifi file, add the country code 842 to the ath_pci line:
ath_pci countrycode=842

Next, use the following channels:
Channel Frequency
20 4950
30 4955
40 4960
50 4965
60 4970
70 4975
80 4980

You can make changes to the channel in "etc/config/wireless" or through a web interface such as LuCI. I hope this saves someone else the time.

CzechEnglishFrenchGermanItalianPolishPortugueseRussianSpanish
Translations delivered by vB Enterprise Translator 3.5.4