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(®_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(®_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