if (ni == ic->ic_bss) ieee80211_unref_node(&ni); else ieee80211_free_node(ic, ni);
ieee80211_release_node(ic, ni);
rtw_txsoft_release(bus_dma_tag_t dmat, struct ieee80211com *ic,    struct rtw_txsoft *ts){	struct mbuf *m;	struct ieee80211_node *ni;	m = ts->ts_mbuf;	ni = ts->ts_ni;	KASSERT(m != NULL);	KASSERT(ni != NULL);	ts->ts_mbuf = NULL;	ts->ts_ni = NULL;	bus_dmamap_sync(dmat, ts->ts_dmamap, 0, ts->ts_dmamap->dm_mapsize,	    BUS_DMASYNC_POSTWRITE);	bus_dmamap_unload(dmat, ts->ts_dmamap);	m_freem(m);	if (ni == ic->ic_bss)		ieee80211_unref_node(&ni);	else		ieee80211_free_node(ic, ni);}