 priv->BSSinfo[index].preamble = capability  & C80211_MGMT_CAPABILITY_ShortPreamble ? 
 priv->BSSinfo[index].preamble = capability & C80211_MGMT_CAPABILITY_ShortPreamble ? 
static void store_bss_info(struct atmel_private *priv, struct ieee80211_hdr_4addr *header,			   u16 capability, u16 beacon_period, u8 channel, u8 rssi, 			   u8 ssid_len, u8 *ssid, int is_beacon){	u8 *bss = capability & C80211_MGMT_CAPABILITY_ESS ? header->addr2 : header->addr3;	int i, index;			for (index = -1, i = 0; i < priv->BSS_list_entries; i++) 		if (memcmp(bss, priv->BSSinfo[i].BSSID, 6) == 0) 			index = i;        /* If we process a probe and an entry from this BSS exists 	   we will update the BSS entry with the info from this BSS.	   If we process a beacon we will only update RSSI */	if (index == -1) {		if (priv->BSS_list_entries == MAX_BSS_ENTRIES)			return;		index = priv->BSS_list_entries++;		memcpy(priv->BSSinfo[index].BSSID, bss, 6);		priv->BSSinfo[index].RSSI = rssi;	} else {		if (rssi > priv->BSSinfo[index].RSSI)			priv->BSSinfo[index].RSSI = rssi;		if (is_beacon)			return;	}	priv->BSSinfo[index].channel = channel;	priv->BSSinfo[index].beacon_period = beacon_period;	priv->BSSinfo[index].UsingWEP = capability & C80211_MGMT_CAPABILITY_Privacy;	memcpy(priv->BSSinfo[index].SSID, ssid, ssid_len);	priv->BSSinfo[index].SSIDsize = ssid_len;	if (capability & C80211_MGMT_CAPABILITY_IBSS)		priv->BSSinfo[index].BSStype = IW_MODE_ADHOC;	else if (capability & C80211_MGMT_CAPABILITY_ESS)		priv->BSSinfo[index].BSStype =IW_MODE_INFRA;		priv->BSSinfo[index].preamble = capability  & C80211_MGMT_CAPABILITY_ShortPreamble ? 		SHORT_PREAMBLE : LONG_PREAMBLE;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4d791aadf63c9d605bc9a4144e79d5756fc29fb3/atmel.c/clean/drivers/net/wireless/atmel.c