Search Linux Wireless

Re: [PATCH v10 2/3] cfg80211: Add API to change the indoor regulatory setting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 04, 2015 at 12:32:06AM -0500, Ilan Peer wrote:
> -int regulatory_hint_indoor_user(void)
> +int regulatory_hint_indoor(bool is_indoor, u32 portid)
>  {
> +	spin_lock(&reg_indoor_lock);
> +
> +	/* It is possible that more than one user space process is trying to
> +	 * configure the indoor setting. To handle such cases, clear the indoor
> +	 * setting in case that some process does not think that the device
> +	 * is operating in an indoor environment. In addition, if a user space
> +	 * process indicates that it is controlling the indoor setting, save its
> +	 * portid, i.e., make it the owner.
> +	 */
> +	reg_is_indoor = is_indoor;
> +	if (reg_is_indoor) {
> +		if (!reg_is_indoor_portid)
> +			reg_is_indoor_portid = portid;
> +	} else {
> +		reg_is_indoor_portid = 0;
> +	}
>  
> +	spin_unlock(&reg_indoor_lock);
>  
> -	reg_is_indoor = true;
> +	if (!is_indoor)
> +		reg_check_channels();
>  
>  	return 0;
>  }

OK lets start with this...

 Luis
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux