News: This forum is now permanently frozen.
Pages: [1]
Topic: wireless card country code and regdomain / Can they be changed  (Read 2269 times)
« on: October 07, 2011, 04:18:50 »
NCSIdaho *
Posts: 15

I have 2 units that both have Athros 5212 cards in them. one behave normally the other gives me trouble with firewall rules.
I have found this:


Unit 1 - the misbehaving unit
dev.ath.0.%desc: Atheros 5212
dev.ath.0.%driver: ath
dev.ath.0.countrycode: 0
dev.ath.0.regdomain: 16

Unit 2 -

dev.ath.0.%desc: Atheros 5212
dev.ath.0.%driver: ath
dev.ath.0.countrycode: 394
dev.ath.0.regdomain: 72

I am in the U.S. so they should both read

dev.ath.0.countrycode:840
dev.ath.0.regdomain: 16

Is there a command that can be sent from inside the system section of the  config file to force country code and regdomain?

any help is appreciated
« Reply #1 on: October 07, 2011, 06:48:40 »
NCSIdaho *
Posts: 15

so if I run this command from exec.php  sysctl -w hw.ath.countrycode=840

I get the output

hw.ath.countrycode: 0 -> 840

which is what I expected and wanted

So then I added the shell command below

<shellcmd>sysctl -w hw.ath.countrycode=840</shellcmd>

inside the <system>  </system>  section of a backup XML file and restore

Then from exec.php ran the command  sysctl -w hw.ath.countrycode=840

which came back  -- hw.ath.countrycode: 840 -> 840

so it looks right but when I check the status.php it is still showing

dev.ath.0.countrycode: 0
dev.ath.0.regdomain: 16



Country code 0 is for international use as I understand it and limits certain features as to not violate country specific regulations

Please feel free to tell me the headache I have is from beating my head against a problem that doesn't need solving
 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines