[Voyage-linux] ath_pci: change countrycode on boot

Jan Alte (spam-protected)
Thu Oct 27 14:48:04 HKT 2005


noro schrieb:

> i need frequency 5.4 -5.8 GHz, therefore i need
> change countrycode when ath_pci is loaded.

Hi Noro,

you need to add the countrycode in the file /etc/modules.

wrap:/etc# cat modules
# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line.  Comments begin with
# a "#", and everything on the line after them are ignored.

# Setting the right countrycode (Germany=276).
# Don't forget: Turbo only at Countrycode 0
# Parameter fuer ath_pci:
# ifname (Prefix anstatt ath...)         | xchanmode:enable/diable (mehr 
Frequenzen)
# outdoor:enable/disable (Outdoor-Modus) | countrycode:int (Laendercode)
*ath_pci xchanmode=0 outdoor=1 countrycode=276*
natsemi
hostap_pci
wd1100 sysctl_wd_graceful=0 sysctl_wd_timeout=30
scx200_acb
i2c-sensor
lm77

At the next reboot the ath_pci will load with the params above. For test 
you can try:
modeprobe -r ath_pci
modeprobe ath_pci countrycode=276

A better solution is to change your regdomain to 0x61. You need a tool 
(ar5k):
http://sourceforge.net/mailarchive/message.php?msg_id=8966525

The effect: All channels available, but no turbo-modes...
Note: countrycode must be 0 after this (permanent - eeprom) modification!

Best regards,
Jan


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20051027/7ed5f23b/attachment-0002.html>


More information about the Voyage-linux mailing list