×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

WiFI Country keeps resetting after reboot

  • Posts: 5
  • Thank you received: 0
I am very new to Linux and the Raspberry Pi 4 which I just purchased  and set up to run Astroberry.
I am having a problem automatically connecting to my higher speed 5 GHz connection using Astroberry.
The RPi Astroberry always defaults to the 2.4GHz connection at reboot. I have to constantly reset the WiFi country code to my country, US, every time I boot and then I can connect to my 5GHz WiFi connection with no issue.

Is there any way to have the WiFi country code remain set after reboot?

Is this an issue with other users too that can be addressed in a subsequent Astroberry release, or is it unique to my system?
In any response please remember that I am very new to Linux and its command language.
Thank you in advance for any help you could provide.

Jim
 
2 years 8 months ago #73635

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 3
I just ran into this myself.  Not sure if there's a problem with the Raspbian Config editor, but I did manage to find a solution that seems to fix the issue across reboots and shutdowns. 
The configuration for Wifi Country is kept in the file

/etc/default/crda

Edit the line in the file and add your country (US in your case) after the equal sign on the last line of the file.

REGDOMAIN=US

save the file and reboot to see if it works.

This is a root owned file - so you'll need to use "sudo" when editing.  If you're not sure how to edit it - try this
sudo nano /etc/default/crda
(you'll be prompted for your password)
make your changes
then press [Ctrl]+[x] to exit and answer 'y' to save your changes.
 
2 years 4 months ago #77911

Please Log in or Create an account to join the conversation.

  • Posts: 104
  • Thank you received: 21
I added this as FAQ 8.5 on the Astroberry Server Wiki.
2 years 4 months ago #77985

Please Log in or Create an account to join the conversation.

Moderators: Radek Kaczorek
Time to create page: 0.650 seconds