Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

How do I enable channel 13 wifi networks ? #386

Closed
maicod opened this issue Feb 26, 2017 · 24 comments
Closed

How do I enable channel 13 wifi networks ? #386

maicod opened this issue Feb 26, 2017 · 24 comments

Comments

@maicod
Copy link

maicod commented Feb 26, 2017

my wifi-network uses channel 13 because its the most unused channel here. Can I edit a configuration file in NOOBS so it sees my network ?

@XECDesign
Copy link
Contributor

It's not pretty, but it looks like the only way right now is to drop a wpa_supplicant.conf file on the settings partition (which wouldn't exist right after copying the NOOBS files).

@XECDesign
Copy link
Contributor

Actually, my mistake, it can be dropped onto the main (first) partition.

/* If user supplied a wpa_supplicant.conf on the FAT partition copy that one to settings

@maicod
Copy link
Author

maicod commented Feb 27, 2017

I acquired the wpa_supplicant.conf file from a Raspbian Jessie filesystem where the wpa_supplicant.conf was already filled in with my network settings cause I had booted/configured that raspbian before with my Pi 3B. I copied it to the root of the fat partition where the other Noobs files reside and booted, but it still doesn't login into my wifi or show the SSID in the network list.

@XECDesign
Copy link
Contributor

It copies the file only if it does not already exist on the settings partition. You might have to copy over it, remove it or start from scratch.

@maicod
Copy link
Author

maicod commented Feb 27, 2017

It still doesn't login. It copied the wpa_supplicant.conf file to the settings partition succesfully and afaik it is correct. It looks like:
`
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=NL

network={
ssid="myssid"
psk="mypassword"
key_mgmt=WPA-PSK
}
`

@XECDesign
Copy link
Contributor

Alright, I'll give this a go tomorrow and get back to you.

@XECDesign
Copy link
Contributor

I haven't had any problems with this procedure:

  1. Create a new partition table on the card.
  2. Create and format a FAT32 partition.
  3. Copy NOOBS Lite files and wpa_supplicant.conf onto the partition.
  4. umount/eject and boot the pi with the card.

NOOBS boots and connects to wifi automatically, showing that wpa_supplicant.conf is being used.

@procount
Copy link
Contributor

I think the general procedure is fine. More likely to be a problem of using Channel 13. Is that channel enabled by the NL country code? Is there something else that needs to be done to enable channel 13?

@XECDesign
Copy link
Contributor

At least in Raspbian, it is only a matter of changing the country in wpa_supplicant, but NOOBS may very well behave differently.

@Ruffio
Copy link

Ruffio commented Feb 28, 2017

The setting in wpa_supplicant can be 'overridden' if the router is configured for something else. In my case, I set the wpa_supplicant to DK, but apparently the router is configured for DE, so I can see in the dmesg that is switches: raspberrypi/firmware#630

@maicod
Copy link
Author

maicod commented Feb 28, 2017

@XECDesign Thanks for trying it out. Did you try it out when having set your wifi network to channel 13 ? I retraced your steps but still don't see my network. btw Its NOT a hidden network. I now found out that the Ubuntu Mate for Raspi has the same problem. Raspbian has not. I suspect its a kernel or module thing that physically blocks reading channels 12,13 so setting it up manually with wpa_supplicant.conf won't help, it still can't/is not allowed to read channel 12 and 13. I found a way around the problem by using wired connection but thats fine for NOOBS as its only an installer but for Ubuntu Mate its not ( it needs to be connected to wired ethernet all the time then)

@maicod
Copy link
Author

maicod commented Feb 28, 2017

@procount I tried it with countrycode GB also to no avail

@procount
Copy link
Contributor

procount commented Mar 1, 2017

There are no CRDA messages in NOOBS dmesg output, so my uneducated guess is that the driver is just using the default world (subset) of channels that are legal everywhere. Would this require BR2_PACKAGE_CRDA=y ?

@XECDesign
Copy link
Contributor

@procount Yes, I believe you're right about it not working without having CRDA.

@maicod
Copy link
Author

maicod commented Mar 2, 2017

@XECDesign @procount so thats it, its a kernel build option then. Thats apparently the reason Raspbian does see channel 13 and Ubuntu Mate and NOOBS do not .

@XECDesign
Copy link
Contributor

A buildroot option to add the CRDA package. Will have to test it properly to confirm that that's all it is. Thanks @procount

@XECDesign
Copy link
Contributor

Adding CRDA alone does not make it work.

@procount
Copy link
Contributor

procount commented Mar 3, 2017

I did a bit of research.... I think CRDA is designed to be used as a helper function for udev, but that isn't used in NOOBS is it? May need another way of triggering it, or building db.txt directly into the wifi stack?

@XECDesign
Copy link
Contributor

I am currently building a version with regdb compiled into the kernel and debugging options enabled to see what's going on.

@XECDesign
Copy link
Contributor

That worked

@procount
Copy link
Contributor

procount commented Mar 3, 2017

Yay! \o/

@XECDesign
Copy link
Contributor

XECDesign commented Mar 3, 2017

New NOOBS being uploaded now. After providing my own wpa_supplicant.conf, I can see the regulatory domain switching in dmesg.

@maicod
Copy link
Author

maicod commented Mar 3, 2017

@XECDesign wonderful ! I tried it out and it works like a charm ! Thanks alot.

@XECDesign
Copy link
Contributor

XECDesign commented Mar 6, 2017

Thanks for checking.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants