Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ral/rt2860.c
| Show First 20 Lines • Show All 1,749 Lines • ▼ Show 20 Lines | rt2860_tx_raw(struct rt2860_softc *sc, struct mbuf *m, | ||||
| ridx = ieee80211_legacy_rate_lookup(ic->ic_rt, | ridx = ieee80211_legacy_rate_lookup(ic->ic_rt, | ||||
| rate & IEEE80211_RATE_VAL); | rate & IEEE80211_RATE_VAL); | ||||
| if (ridx == (uint8_t)-1) { | if (ridx == (uint8_t)-1) { | ||||
| /* XXX fall back to mcast/mgmt rate? */ | /* XXX fall back to mcast/mgmt rate? */ | ||||
| m_freem(m); | m_freem(m); | ||||
| return EINVAL; | return EINVAL; | ||||
| } | } | ||||
| ieee80211_output_seqno_assign(ni, -1, m); | |||||
| qid = params->ibp_pri & 3; | qid = params->ibp_pri & 3; | ||||
| ring = &sc->txq[qid]; | ring = &sc->txq[qid]; | ||||
| /* get MCS code from rate index */ | /* get MCS code from rate index */ | ||||
| mcs = rt2860_rates[ridx].mcs; | mcs = rt2860_rates[ridx].mcs; | ||||
| /* setup TX Wireless Information */ | /* setup TX Wireless Information */ | ||||
| txwi = data->txwi; | txwi = data->txwi; | ||||
| ▲ Show 20 Lines • Show All 2,570 Lines • Show Last 20 Lines | |||||