static void handle_beacon_probe(struct atmel_private *priv, u16 capability, u8 channel){	int rejoin = 0;	int new = capability  & C80211_MGMT_CAPABILITY_ShortPreamble ? 		SHORT_PREAMBLE : LONG_PREAMBLE;	if (priv->preamble != new) {		priv->preamble = new;		rejoin = 1;		atmel_set_mib8(priv, Local_Mib_Type, LOCAL_MIB_PREAMBLE_TYPE, new);	}			if (priv->channel != channel) {		priv->channel = channel;		rejoin = 1;		atmel_set_mib8(priv, Phy_Mib_Type, PHY_MIB_CHANNEL_POS, channel);	}		if (rejoin) {		priv->station_is_associated = 0;		atmel_enter_state(priv, STATION_STATE_JOINNING);				if (priv->operating_mode == IW_MODE_INFRA)			join(priv, BSS_TYPE_INFRASTRUCTURE);		else 			join(priv, BSS_TYPE_AD_HOC);	} }
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4d791aadf63c9d605bc9a4144e79d5756fc29fb3/atmel.c/clean/drivers/net/wireless/atmel.c