Hi Luiz, On Thu, Oct 28, 2010, Luiz Augusto von Dentz wrote: > if (discoverable && adapter->pairable && adapter->discov_timeout > 0 && > - adapter->discov_timeout <= 60) > + adapter->discov_timeout <= 60) { > + adapter->mode = MODE_LIMITED; > adapter_set_limited_discoverable(adapter, TRUE); Wouldn't it make more sense to do the fix to adapter->mode inside the adapter_set_limited_discoverable function? Johan -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html