AnsweredAssumed Answered

CRDA Failed to set regulatory domain

Question asked by yensid on Apr 16, 2015

Hi,

 

I have a custom board based on the P1010RDB-PA and I have ported over to SDKv1.7.  My rootfs image is based on fsl-core-image-minimal. I have added/enabled USB wireless adapter support and it is functional except for intermitten messages about setting the wireless regulatory domain.  Once connected to an AP, at what seem to be random intervals, the connection is deauthenticated and then re-authenticated and associated to the AP again with messages associated to setting the country code with CRDA. Trying to manually set the country code with CRDA fails as well.

 

I believe I have included all of the build requirments for CRDA and wireless. I have upgraded the versions of crda & libnl:

The following has been added to the image:

wpa-supplicant v2.1

wireless-tools

linux-firmware-rtl-license

linux-firmware-rtl8192cu

linux-firmware-ralink

linux-firmware-ath9k

libgcrypt 1.5.3

libnl 3.2.25

iw 3.11

crda 3.13

python-m2crypto 0.22.3

 

Setting the Code with crda

root@-5020273:~# crda

COUNTRY environment variable not set.

root@-5020273:~# export COUNTRY=US

root@-5020273:~# crda

Failed to set regulatory domain: -7

 

Output of the deauthentication & reauthentication Messages

64 bytes from 74.125.227.226: seq=1663 ttl=51 time=53.061 ms

64 bytes from 74.125.227.226: seq=1664 ttl=51 time=52.921 ms

wlan0: deauthenticated from c0:25:5c:69:aa:e1 (Reason: 2)

cfg80211: Calling CRDA for country: US

cfg80211: Regulatory domain changed to country: US

cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)

cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)

cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)

cfg80211:   (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

cfg80211:   (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)

cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm)

cfg80211: Calling CRDA to update world regulatory domain

cfg80211: World regulatory domain updated:

cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)

cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)

cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)

cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

wlan0: authenticate with c0:25:5c:69:a1:e1

wlan0: send auth to c0:25:5c:69:a1:e1 (try 1/3)

wlan0: authenticated

wlan0: associate with c0:25:5c:69:a1:e1 (try 1/3)

wlan0: RX AssocResp from c0:25:5c:69:a1:e1 (capab=0x431 status=0 aid=14)

wlan0: associated

IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

cfg80211: Calling CRDA for country: US

cfg80211: Regulatory domain changed to country: US

cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)

cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)

cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)

cfg80211:   (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

cfg80211:   (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)

cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm)

64 bytes from 74.125.227.226: seq=1666 ttl=51 time=58.529 ms

64 bytes from 74.125.227.226: seq=1667 ttl=51 time=54.385 ms

 

 

I have also attached my config file.

 

Any information or guidance is appreciated.

Thanks,

Matt

Original Attachment has been moved to: adx.config.zip

Outcomes