/* If discovery is not enabled, you should call this function again after 1 or 2 seconds (i.e. after discovery has been done).  */
struct irda_device_info* irlmp_get_discoveries(int *pn, __u16 mask, int nslots)
/* If discovery is not enabled, you should call this function again after 1 or 2 seconds (i.e. after discovery has been done).  */
struct irda_device_info* irlmp_get_discoveries(int *pn, __u16 mask, int nslots)
{
	if (!sysctl_discovery) {
		if (nslots == DISCOVERY_DEFAULT_SLOTS)
			nslots = sysctl_discovery_slots;
		irlmp_do_discovery(nslots);
	}
	return(irlmp_copy_discoveries(irlmp->cachelog, pn, mask, TRUE));
}