preload = (ic->ic_opmode == IEEE80211_M_IBSS) ? 1024 : 384;
preload = (ic->ic_opmode == IEEE80211_M_STA) ? 384 : 1024;
ral_enable_tsf_sync(struct ral_softc *sc){	struct ieee80211com *ic = &sc->sc_ic;	uint16_t logcwmin, preload;	uint32_t tmp;	/* first, disable TSF synchronization */	RAL_WRITE(sc, RAL_CSR14, 0);	tmp = 16 * ic->ic_bss->ni_intval;	RAL_WRITE(sc, RAL_CSR12, tmp);	RAL_WRITE(sc, RAL_CSR13, 0);	logcwmin = 5;	preload = (ic->ic_opmode == IEEE80211_M_IBSS) ? 1024 : 384;	tmp = logcwmin << 16 | preload;	RAL_WRITE(sc, RAL_BCNCSR1, tmp);	/* finally, enable TSF synchronization */	if (ic->ic_opmode == IEEE80211_M_STA)		RAL_WRITE(sc, RAL_CSR14, RAL_CSR14_TSF_SYNC_BSS |		    RAL_CSR14_TSF_AUTOCOUNT | RAL_CSR14_BCN_RELOAD);	else		RAL_WRITE(sc, RAL_CSR14, RAL_CSR14_TSF_SYNC_IBSS |		    RAL_CSR14_TSF_AUTOCOUNT | RAL_CSR14_BCN_RELOAD |		    RAL_CSR14_GENERATE_BEACON);	DPRINTF(("enabling TSF synchronization\n"));}