channel, NULL, NULL)) 
channel, NULL, 0)) 
static void hostap_passive_scan(unsigned long data){	local_info_t *local = (local_info_t *) data;	struct net_device *dev = local->dev;	u16 channel;	if (local->passive_scan_interval <= 0)		return;	if (local->passive_scan_state == PASSIVE_SCAN_LISTEN) {		int max_tries = 16;		/* Even though host system does not really know when the WLAN		 * MAC is sending frames, try to avoid changing channels for		 * passive scanning when a host-generated frame is being		 * transmitted */		if (test_bit(HOSTAP_BITS_TRANSMIT, &local->bits)) {			printk(KERN_DEBUG "%s: passive scan detected pending "			       "TX - delaying\n", dev->name);			local->passive_scan_timer.expires = jiffies + HZ / 10;			add_timer(&local->passive_scan_timer);			return;		}		do {			local->passive_scan_channel++;			if (local->passive_scan_channel > 14)				local->passive_scan_channel = 1;			max_tries--;		} while (!(local->channel_mask &			   (1 << (local->passive_scan_channel - 1))) &&			 max_tries > 0);		if (max_tries == 0) {			printk(KERN_INFO "%s: no allowed passive scan channels"			       " found\n", dev->name);			return;		}		printk(KERN_DEBUG "%s: passive scan channel %d\n",		       dev->name, local->passive_scan_channel);		channel = local->passive_scan_channel;		local->passive_scan_state = PASSIVE_SCAN_WAIT;		local->passive_scan_timer.expires = jiffies + HZ / 10;	} else {		channel = local->channel;		local->passive_scan_state = PASSIVE_SCAN_LISTEN;		local->passive_scan_timer.expires = jiffies +			local->passive_scan_interval * HZ;	}	if (hfa384x_cmd_callback(dev, HFA384X_CMDCODE_TEST |				 (HFA384X_TEST_CHANGE_CHANNEL << 8),				 channel, NULL, NULL))		printk(KERN_ERR "%s: passive scan channel set %d "		       "failed\n", dev->name, channel);	add_timer(&local->passive_scan_timer);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/b15eff2632be3fcea68e01ba7f12e26a731e3157/hostap_hw.c/buggy/drivers/net/wireless/hostap/hostap_hw.c