[PATCH] Add get_country op for nl80211 drivers

Bartosz.Markowski at tieto.com Bartosz.Markowski
Tue Jul 19 04:16:57 PDT 2011


For instance CLI support can be added for testing purposes.
In the solution I'm working on, I use MCC (mobile country code) to set regulatory domain settings automatically.

Get_country is useful to verify if the reg domain settings have changed.

If you think it's not needed let me know and please drop this one.

Bartosz

-----Original Message-----
From: Johannes Berg [mailto:johannes at sipsolutions.net] 
Sent: 19 lipca 2011 12:12
To: Markowski Bartosz
Cc: hostap at lists.shmoo.com
Subject: Re: [PATCH] Add get_country op for nl80211 drivers

On Tue, 2011-07-19 at 13:03 +0300, Bartosz.Markowski at tieto.com wrote:

>          /**
> +        * get_country - Get country
> +        * @priv: Private driver interface data
> +        * @alpha2: pointer to country code
> +        * Returns: 0 on success, -1 on failure
> +        *
> +        * This function is for drivers which support some form
> +        * of setting a regulatory domain.
> +        */
> +       int (*get_country)(void *priv, char *alpha2);

What use is this if nothing uses it?

johannes





More information about the Hostap mailing list