All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Channel 12 and 13 in UK from PiAware - Solved
PostPosted: Mon Jul 10, 2017 2:53 am 
Offline
markv2017 - FlightAware user avatar

Joined: Fri Jul 07, 2017 7:22 am
Posts: 1
This may affect any users using piaware in a country that allows WiFi channels above 11.

Out-of-the-box, piaware 3.5.0 supports WiFi Channels 1-11.

The reason this is a problem is that WiFi routers are often set to automatically pick a channel, and so that could be any legal channel (1-13 in the UK). If it happens to pick 12 or 13, your Pi fails to connect. I spent many, many hours getting to the root cause and solving it.

Some of the solutions I found talked about updating the operating system and firmware but I didn't need to do that.

All that is necessary was to correctly set the WiFi Region (GB in my case). After doing that, sudo iwlist wlan0 channel will report Ch1-13.

Setting WiFi region in raspi-config seems the logical way to do it, but that didn't work for me. I think that action creates a wpa_supplicant.conf with REGION=GB but I suspect that when a wpa-roam config is present, wpa_supplicant is ignored.

The solution for me was:
sudo iw reg set GB

That instantly got ch 12 and 13 to appear and my Pi to connect.

It doesn't survive a reboot so I then added that command (without needing sudo) to /etc/rc.local and it's now connecting reliable every time on any channel.


Top
 Profile  
 
 Post subject: Re: Channel 12 and 13 in UK from PiAware - Solved
PostPosted: Mon Jul 10, 2017 6:43 am 
Offline
FlightAware Staff
obj - FlightAware user avatar

Joined: Tue Sep 30, 2014 7:14 pm
Posts: 3659
From my limited knowledge of the region management stuff, IIRC the region can also be set in the AP (which is the more natural place to set it, since APs don't usually move)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: domefin, Google [Bot], spotterssol and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to: