Wifi Channel 13

I live in the UK where Wifi channel 13 is allowed. After a reset my router decided to switch to channel 13.
Unfortunately, out the box, PiMusicBox does not allow the wifi region to be set and therefore will not scan or connect to a wifi network on channel 13.

To work around this I installed the following packages from the raspbian packet repository:
wireless-regdb_2016.06.10-1_all.deb - http://archive.raspbian.org/raspbian/pool/main/w/wireless-regdb/
crda_3.13-1_armhf.deb - http://archive.raspbian.org/raspbian/pool/main/c/crda/

Also I edited /opt/musicbox/startup.sh to add country=GB to the generated /etc/wpa.conf file (line ~98).

if [ "$INI__network__wifi_network" != "" ]
    #put wifi settings for wpa roaming
    if [ "$INI__network__wifi_password" != "" ]
        cat >/etc/wpa.conf <<EOF
            ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

This is on a Raspberry Pi zero w

Thanks for the brilliant Pi MusicBox

This is extremely helpful, thank you very much.

I’ve created a github issue at https://github.com/pimusicbox/pimusicbox/issues/423 and I’ll add it when I get a chance. Do feel free to submit a PR if you want.

I will add the ‘wifi_country’ parameter and use that in the startup.sh script to save directly hacking country=XX in. Once done I will submit the pull request.

Brilliant. Note that the code on github in this area has moved on very slightly compared to what’s in the rc4 release.

Created the pull request: