Re: Scanning with wireless



On Tue, 2005-07-26 at 16:40 -0500, Steev wrote:
> Hey all, I have a Netgear MA101 usb wifi device.  If I specify a network
> name, the connection sets itself up quite fine, however, I get the
> following warning if I run NetworkManager --no-daemon
> 
> NetworkManager: <WARNING>         (): Warning: the wireless card (wlan0)
> requires too much time for scans.  Its driver needs to be fixed.

Make sure that your iwlib.c for wireless-tools has a scan timeout of 15
seconds (which is the 150 here):

int
iw_process_scan(int			skfd,
		char *			ifname,
		int			we_version,
		wireless_scan_head *	context)
{
  struct iwreq		wrq;
  unsigned char *	buffer = NULL;		/* Results */
  int			buflen = IW_SCAN_MAX_DATA; /* Min for compat WE<17 */
  unsigned char *	newbuf;

  /* Don't waste too much time on interfaces (150 * 100 = 15s) */
  context->retry++;
  if(context->retry > 150)
    {
      errno = ETIME;
      return(-1);
    }

Dan




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