Skip to content

[FEATURE]: Set wifi region without wifi connection setup #1066

@Rybec

Description

@Rybec

Is your feature request related to a problem? Please describe.

I'm developing a system where the default wifi connection is fully preconfigured (as an access point). Accessibility for inexperienced users is a critical priority. I don't expect most users will have sufficient knowledge or experience to change from one network connection to another or to manually set the wifi region. It is mandatory to set a wifi region for wifi to work at all though. If I preset the wifi region in the image itself, I'll have to make and serve one image for every region I expect the system to be used in. If the user sets the wifi region in Imager when setting up the MicroSD card, it requires a new wifi connection to be setup at the same time (and will not save the wifi settings when the fields are left blank), which will supersede the preset one and require the user to log onto the device and manually change networks (at the command line, as this is an ultra low power application that does not include a GUI). Ideally, any setup like this should happen in Imager, but it can't, because the wifi setup requires a new network to be added to set the wifi region.

Describe the solution you would like to see implemented

What I would like to see is the wifi region setting decoupled from the new wifi connection setup, so that the wifi region can be set without adding a new wifi connection. This way, I can deliver an image that does not have a region set, and the end user can set the region in Imager when installing the image, without having to setup a wifi network connection that will break the system.

Describe alternatives you've considered

Maintaining a long list of 700MB+ images, one for each wifi region. (Since I'm intending on hosting this on Github, this is not feasible.)

Limiting the use of this free, open source system intended to be accessible to the general population to people with sufficient technical expertise to change networks or change the wifi region from the command line. (I've already published a free tutorial on how to setup this system yourself, so people with these skills don't actually need the image at all and might prefer to do it themselves so that they can customize it. There's little point in making and distributing the image if it isn't accessible to people without cli proficiency.)

Limit this to a single default wifi region (the U.S., since that's where I am) and ask anyone outside of the U.S. who does not have the expertise to jump through the required hoops to use it legally in their own region to refrain from using the system entirely. (This is currently what I'm doing, because the people I know who want one of these all live in the U.S. and definitely do not have the skills to use it any other way. I'm considering doing a GB version as well, but I really don't want to deal with having to build multiple new images for every release, and I don't want to clutter the Github repo with a ton of massive files.)

Remove rfkill from the image to allow the wifi to work without a region set. (This has potentially serious legal implications, so I'm not going to do it.)

Additional context

I think that covers it. I've run into a ton of painful things working with pi-gen, and I'm not 100% certain the current build of my project works, but I think it is almost done, aside from this one particular hiccup.

Version

1.8.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions