Using GeoClue to send a Linux wireless regulatory hint

Bastien Nocera hadess at hadess.net
Fri Jul 17 09:33:47 PDT 2009


On Thu, 2009-07-16 at 18:10 -0700, Luis R. Rodriguez wrote:
> The GSoC project to integrate GeoClue to GNOME and eventually send
> regulatory hint information to the kernel [1] will not be completed
> through GSoC. Since I am not sure if the student will be interested in
> following up on this project idea outside the scope of GSoC I'm
> looking for advice to better get an idea of what it is exactly we
> should be looking forward to change to get information to the kernel
> to enhance regulatory support using GeoClue. At the very least I'd
> like to come to some conclusion as to where it is best to put software
> to send information to the kernel to help distributions.
> 
> The current best alternative I've seen is to read the current timezone
> information and extract the country from that. That is how John
> implemented it for Fedora. This may be enough but GeoClue should
> provide better accuracy. All we need in the kernel is to determine the
> country you are on. The user can obviously set this themselves during
> a distribution install, but it may make sense to just use GeoClue for
> this. Under the assumption that using GeoClue is the way to go how
> should we do this?
> 
> For the GSoC project I was initially suggesting for Network Manager to
> get GeoClue integration and then have Network Manager send the
> regulatory hint once a country was determined through either user
> input or through GeoClue magic. After some discussions with Jouni
> about this he convinced me this may not be the best place for this. So
> if not Network Manager, where? Do we want a GNOME location aware panel
> under System->Administration? Is it as simple as that? If not are
> there any other suggestions?

Adding more preferences certainly isn't the solution.

One of the problems you'd encounter would be trying to get information
about which country you're in, which might sometimes require a network
to get.

You get a bit of a chicken/egg problem. How can I get online to get my
location given that I can't get online because my wireless card's been
restricted to channels outside my reach.

How does John's code react when the timezone changes? How do you get
online to get the country when the network isn't available because of
previous restrictions? Do you need to change the regulatory hint in the
kernel as soon as you know the new position? Is it saved and cached
somewhere so you don't need to pound the hardware on each reboot?

Let us know...

Cheers



More information about the GeoClue mailing list