SOLVED wlan - rtl8723be - cfg80211 - CRDA

Post here if you are a new Porteus member and you're looking for some help.
User avatar
duungustl
White ninja
White ninja
Posts: 9
Joined: 24 Aug 2015, 22:54
Distribution: Porteus 3.1
Location: vienna

SOLVED wlan - rtl8723be - cfg80211 - CRDA

Post#1 by duungustl » 02 Sep 2015, 01:42

Hello,
i have troubles with the World regulatory domain to set the DFS Master region to AT.

cat /var/log/messages:
<-------- cut ---
Sep 2 01:54:44 porteus kernel: [ 50.209833] cfg80211: Calling CRDA to update world regulatory domain
Sep 2 01:54:44 porteus kernel: [ 50.213057] cfg80211: World regulatory domain updated:
Sep 2 01:54:44 porteus kernel: [ 50.213062] cfg80211: DFS Master region: unset
Sep 2 01:54:44 porteus kernel: [ 50.213065] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Sep 2 01:54:44 porteus kernel: [ 50.213068] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
Sep 2 01:54:44 porteus kernel: [ 50.213071] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm), (N/A)
Sep 2 01:54:44 porteus kernel: [ 50.213074] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm), (N/A)
Sep 2 01:54:44 porteus kernel: [ 50.213077] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
Sep 2 01:54:44 porteus kernel: [ 50.213080] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
Sep 2 01:54:44 porteus kernel: [ 50.213104] cfg80211: Calling CRDA for country: 97
Sep 2 01:54:47 porteus kernel: [ 53.364472] cfg80211: Calling CRDA to update world regulatory domain
Sep 2 01:54:47 porteus kernel: [ 53.368296] cfg80211: World regulatory domain updated:
Sep 2 01:54:47 porteus kernel: [ 53.368302] cfg80211: DFS Master region: unset
Sep 2 01:54:47 porteus kernel: [ 53.368304] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Sep 2 01:54:47 porteus kernel: [ 53.368308] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
Sep 2 01:54:47 porteus kernel: [ 53.368311] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm), (N/A)
Sep 2 01:54:47 porteus kernel: [ 53.368314] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm), (N/A)
Sep 2 01:54:47 porteus kernel: [ 53.368317] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
Sep 2 01:54:47 porteus kernel: [ 53.368320] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
Sep 2 01:54:47 porteus kernel: [ 53.368341] cfg80211: Calling CRDA for country: 97
--------- cut --->
... and so - all 3 sec - never ends ...

root@porteus: lspci -vs 02:00.0
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter
Subsystem: Hewlett-Packard Company Device 2231
Flags: bus master, fast devsel, latency 0, IRQ 17
I/O ports at 1000
Memory at 90500000 (64-bit, non-prefetchable)
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number 00-23-b7-fe-ff-4c-e0-00
Capabilities: [150] Latency Tolerance Reporting
Capabilities: [158] #1e
Kernel driver in use: rtl8723be
Kernel modules: rtl8723be

root@porteus:/# regdbdump /usr/lib/crda/regulatory.bin
<--- cut ---
country AT:
(2402.000 - 2482.000 @ 40.000), (N/A, 20.00)
(5170.000 - 5250.000 @ 40.000), (N/A, 20.00)
(5250.000 - 5330.000 @ 40.000), (N/A, 20.00), DFS
(5490.000 - 5710.000 @ 40.000), (N/A, 27.00), DFS
---- cut -->

i try:
export COUNTRY="AT"
set COUNTRY="AT"

root@porteus: cat /etc/modprobe.d/regdomain.conf
otions cfg80211 ieee80211_regdom=AT

root@porteus: crda
Failed to set regulatory domain: -22

root@porteus: iw reg set AT
root@porteus: iw reg get
country 00:
(2402 - 2472 @ 40), (3, 20)
(2457 - 2482 @ 20), (3, 20), PASSIVE-SCAN, NO-IBSS
(2474 - 2494 @ 20), (3, 20), NO-OFDM, PASSIVE-SCAN, NO-IBSS
(5170 - 5250 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS
(5735 - 5835 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS

when i unload the modules rtl8723be rtlwifi ....
and load it new, the system freeze :bad:

i hope you can help me
thx in advance

P.S.: I have a internet connection
root@porteus: ifconfig wlan0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.13 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 2a02:8388:8480:9580:c68e:8fff:fe82:42d9 prefixlen 64 scopeid 0x0<global>
inet6 fe80::c68e:8fff:fe82:42d9 prefixlen 64 scopeid 0x20<link>
ether c4:8e:8f:82:42:d9 txqueuelen 1000 (Ethernet)
RX packets 29240 bytes 24622689 (23.4 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 21668 bytes 4313389 (4.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Last edited by duungustl on 02 Sep 2015, 10:07, edited 1 time in total.

User avatar
duungustl
White ninja
White ninja
Posts: 9
Joined: 24 Aug 2015, 22:54
Distribution: Porteus 3.1
Location: vienna

Re: (SOLVED) wlan - rtl8723be - cfg80211 - CRDA

Post#2 by duungustl » 02 Sep 2015, 10:04

duungustl wrote:Hello,
i have troubles with the World regulatory domain to set the DFS Master region to AT.
I have found a solution :D

1. Make a new entry in /etc/udev/rules.d/regulatory.rules
KERNEL=="regulatory*", ACTION=="change", SUBSYSTEM=="platform", RUN+="/sbin/crda"

2. create a regdomain.conf in /etc/modprobe.d/
options cfg80211 ieee80211_regdom=AT

3. modify your /etc/rc.d/rc.local
rfkill unblock all
wpa_supplicant -Dwext -iwlan0 -B -c /etc/wpa_supplicant.conf
rfkill unblock all
dhcpcd wlan0

reboot your system

root@porteus: iw reg get
country AT:
(2402 - 2482 @ 40), (N/A, 20)
(5170 - 5250 @ 40), (N/A, 20)
(5250 - 5330 @ 40), (N/A, 20), DFS
(5490 - 5710 @ 40), (N/A, 27), DFS

Hav a nice Day :crazy:

Post Reply