Tiny Core Base > CorePlus
Regulatory Domain settings
madmax:
Hello:
I seem to have some problems with my Regulatory Domain settings.
My setup is:
--- Code: ---tc@box:~$ uname -a
Linux box 4.8.17-tinycore #2017 SMP Sun Mar 5 15:49:22 UTC 2017 i686 GNU/Linux
--- End code ---
My wifi adapter is:
--- Code: ---tc@box:~$ lsusb
Bus 002 Device 003: ID 0cf3:1006 Atheros Communications, Inc. TP-Link TL-WN322G v3 / TL-WN422G v2 802.11g [Atheros AR9271]
--- End code ---
The Regulatory Domain is apaprently set (hard wired?) to CN (China):
(snip from dmesg)
--- Code: ---ath9k_htc 2-5:1.0: FW RMW support: On
ath: EEPROM regdomain: 0x809c
ath: EEPROM indicates we should expect a country code
ath: doing EEPROM country->regdmn map search
ath: country maps to regdmn code: 0x52
ath: Country alpha2 being used: CN
ath: Regpair used: 0x52
ieee80211 phy0: Atheros AR9271 Rev:1
--- End code ---
But once boot is finished, it seems to have been set to 00:
--- Code: ---tc@box:~$ iw reg get
country 00: DFS-UNSET
(2402 - 2472 @ 40), (6, 20)
(2457 - 2482 @ 20), (6, 20), PASSIVE-SCAN
(2474 - 2494 @ 20), (6, 20), NO-OFDM, PASSIVE-SCAN
(5170 - 5250 @ 80), (6, 20), PASSIVE-SCAN
(5250 - 5330 @ 80), (6, 20), DFS, PASSIVE-SCAN
(5490 - 5730 @ 160), (6, 20), DFS, PASSIVE-SCAN
(5735 - 5835 @ 80), (6, 20), PASSIVE-SCAN
(57240 - 63720 @ 2160), (N/A, 0)
--- End code ---
Now, when I try to set it to the code I need for where I am located (AR), it wont 'stick':
eg:
--- Code: ---tc@box:~$ sudo iw reg set AR
tc@box:~$ iw reg get
country 00: DFS-UNSET
(2402 - 2472 @ 40), (6, 20)
(2457 - 2482 @ 20), (6, 20), PASSIVE-SCAN
(2474 - 2494 @ 20), (6, 20), NO-OFDM, PASSIVE-SCAN
(5170 - 5250 @ 80), (6, 20), PASSIVE-SCAN
(5250 - 5330 @ 80), (6, 20), DFS, PASSIVE-SCAN
(5490 - 5730 @ 160), (6, 20), DFS, PASSIVE-SCAN
(5735 - 5835 @ 80), (6, 20), PASSIVE-SCAN
(57240 - 63720 @ 2160), (N/A, 0)
tc@box:~$
--- End code ---
Any idea as how to set the country code properly?
Thanks in advance.
MM
coreplayer2:
Interesting dilemma..
Seems to be set for country of purchase without many options to change it.
I'm sure tinypoodle would have a solution but haven't seen him around in a while :(
If no one else has a solution like a module load option, I found a couple of not very convenient solutions here
https://bbs.archlinux.org/viewtopic.php?id=124574
Hope it helps
Sent from my iPhone using Tapatalk
madmax:
Hello:
--- Quote from: coreplayer2 on May 13, 2017, 10:21:57 PM ---Interesting dilemma..
Seems to be set for country of purchase without many options to change it.
--- End quote ---
I believe it can be set with the CRDA package but it is not available.
It *was* available in the 4.x repository but not after that.
http://distro.ibiblio.org/tinycorelinux/4.x/x86/tcz/
---
Title: crda.tcz
Description: This is the Central Regulatory Domain Agent for Linux.
Version: 1.1.0
Author: Luis R. Rodriguez,Johannes Berg,Michael Green
Original-site: git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/crda.git
Copying-policy: ISC
Copyright (c) 2008, Luis R. Rodriguez <mcgrof@gmail.com>
Copyright (c) 2008, Johannes Berg <johannes@sipsolutions.net>
Copyright (c) 2008, Michael Green <Michael.Green@Atheros.com>
Size: 36 KB
Extension_by: ZhaoChunsheng
Tags: This Central Regulatory Domain Agent Linux.
Comments: This is the Central Regulatory Domain Agent for Linux. It serves one
purpose: tell Linux kernel what to enforce. In essence it is a udev
helper for communication between the kernel and userspace. You only
need to run this manually for debugging purposes. For manual changing
of regulatory domains use iw (iw reg set) or wpa_supplicant (feature
yet to be added).
Change-log: -
Current: 2009/12/12 - First version(1.1.0)
---
In Mint 18.0, you have CRDA installed with a file in /lib/crda called setregdomain.
--- Code: ---#!/bin/sh
set -e
REGDOMAIN=AR
CRDA_CONF=/etc/default/crda
[ -r "$CRDA_CONF" ] && . "$CRDA_CONF"
[ -z "$REGDOMAIN" ] && exit 0
exec /sbin/iw reg set "$REGDOMAIN"
--- End code ---
This works perfectly in Mint.
Would there a crda.tcz package available for TC 8.0?
Thanks in advance.
MM
Rich:
Hi madmax
The crda package in TC4 has no dependencies. Download it and give it a try.
madmax:
Hello:
--- Quote from: Rich on May 13, 2017, 11:50:33 PM ---The crda package in TC4 has no dependencies. Download it and give it a try.
--- End quote ---
Thanks for the info.
Downloaded all the crda files.
But ..
--- Code: ---tc@box:~$ crda
crda: error while loading shared libraries: libgcrypt.so.11: cannot open shared object file: No such file or directory
tc@box:~$
--- End code ---
So I downloaded libgcrypt.tcz.
Still no dice.
Anything else I can try?
Thanks in advance.
MM
Navigation
[0] Message Index
[#] Next page
Go to full version