I need my RPi 3 to connect to a Wi-Fi network using channel 12, but I'm not able to get the built-in Wi-Fi adapter to use this channel.
This is what I've done:
$ sudo apt-get install wireless-regdb iw crda
$ sudo iw reg set NO
$ sudo iwlist wlan0 channel
wlan0 11 channels in total; available frequencies :
Channel 01 : 2.412 GHz
Channel 02 : 2.417 GHz
Channel 03 : 2.422 GHz
Channel 04 : 2.427 GHz
Channel 05 : 2.432 GHz
Channel 06 : 2.437 GHz
Channel 07 : 2.442 GHz
Channel 08 : 2.447 GHz
Channel 09 : 2.452 GHz
Channel 10 : 2.457 GHz
Channel 11 : 2.462 GHz
As you can see the list doesn't include channel 12 (or 13). Is there a way to enable channel 12 for the built-in adapter?
Update: This is what I get in dmesg:
[ 5.506232] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code
[ 5.756813] brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
[ 5.756854] brcmfmac: brcmf_add_if: ignore IF event
[ 5.765557] cfg80211: Calling CRDA to update world regulatory domain
[ 5.867878] lirc_rpi: auto-detected active high receiver on GPIO pin 18
[ 5.875184] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0
[ 5.875222] lirc_rpi: driver registered!
[ 5.885249] bcm2835-rng 3f104000.rng: hwrng registered
[ 5.902514] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[ 6.026071] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code
[ 6.026108] cfg80211: World regulatory domain updated:
[ 6.026124] cfg80211: DFS Master region: unset
[ 6.026141] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 6.026173] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 6.026197] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 6.026211] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[ 6.026246] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[ 6.026277] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[ 6.026307] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[ 6.026332] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[ 6.026345] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[ 6.026421] cfg80211: Calling CRDA for country: NO
[ 6.070591] cfg80211: Regulatory domain changed to country: NO
[ 6.070607] cfg80211: DFS Master region: ETSI
[ 6.070613] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 6.070621] cfg80211: (2400000 KHz - 2483500 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 6.070628] cfg80211: (5150000 KHz - 5250000 KHz @ 80000 KHz, 200000 KHz AUTO), (N/A, 2301 mBm), (N/A)
[ 6.070635] cfg80211: (5250000 KHz - 5350000 KHz @ 80000 KHz, 200000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[ 6.070643] cfg80211: (5470000 KHz - 5795000 KHz @ 160000 KHz), (N/A, 2698 mBm), (0 s)
[ 6.070650] cfg80211: (5815000 KHz - 5850000 KHz @ 35000 KHz), (N/A, 3301 mBm), (0 s)
[ 6.070656] cfg80211: (17100000 KHz - 17300000 KHz @ 200000 KHz), (N/A, 2000 mBm), (N/A)
[ 6.070662] cfg80211: (57000000 KHz - 66000000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
raspi-config
to do it the standard way.