Jump to content

What is the correct way to set the country code for AP on orange pi 4?


ChrisGCode

Recommended Posts

I always received beacons with Country "US", until I created the file "brcmfmac43456-sdio.xunlong,orangepi-4.txt".
It is a copy of brcmfmac43456-sdio.txt and I added the line:

ccode=DE

With this modification, I see the expected beacon. (Country: "DE", correct tx-power, ...)
 

I think this is not the intended way to configure it.

 


What I checked before:

  • My hostapd.conf contains;
...
country_code=DE
ieee80211d=1
...
  • iw reg get 
global
country DE: DFS-ETSI
    (2400 - 2483 @ 40), (N/A, 20), (N/A)
    (5150 - 5250 @ 80), (N/A, 20), (N/A), NO-OUTDOOR, AUTO-BW
    (5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW
    (5470 - 5725 @ 160), (N/A, 26), (0 ms), DFS
    (5725 - 5875 @ 80), (N/A, 13), (N/A)
    (57000 - 66000 @ 2160), (N/A, 40), (N/A)
  • Starting hostapd with "-d" prints "Beacon head" and "tail". I found "DE" in the hex-values but not "US".
  • Tested configuration on Raspberri Pi ==> Beacon with expected country code "DE"

 

So all test returned the expected results but in the air I captured "US", wrong max power, ...

until I added the file "brcmfmac43456-sdio.xunlong,orangepi-4.txt" with the line "ccode=DE".
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines