struct hfa384x_scan_result *entry; 
struct hfa384x_hostscan_result *entry; 
static int hostap_join_ap(struct net_device *dev){	struct hostap_interface *iface;	local_info_t *local;	struct hfa384x_join_request req;	unsigned long flags;	int i;	struct hfa384x_scan_result *entry;	iface = netdev_priv(dev);	local = iface->local;	memcpy(req.bssid, local->preferred_ap, ETH_ALEN);	req.channel = 0;	spin_lock_irqsave(&local->lock, flags);	for (i = 0; i < local->last_scan_results_count; i++) {		if (!local->last_scan_results)			break;		entry = &local->last_scan_results[i];		if (memcmp(local->preferred_ap, entry->bssid, ETH_ALEN) == 0) {			req.channel = entry->chid;			break;		}	}	spin_unlock_irqrestore(&local->lock, flags);	if (local->func->set_rid(dev, HFA384X_RID_JOINREQUEST, &req,				 sizeof(req))) {		printk(KERN_DEBUG "%s: JoinRequest " MACSTR		       " failed\n",		       dev->name, MAC2STR(local->preferred_ap));		return -1;	}	printk(KERN_DEBUG "%s: Trying to join BSSID " MACSTR "\n",	       dev->name, MAC2STR(local->preferred_ap));	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/2e4fd068e7e25e654a454ed4a425f239c0f6407a/hostap_ioctl.c/buggy/drivers/net/wireless/hostap/hostap_ioctl.c