|
@@ -86,20 +86,6 @@ static void ath_setdefantenna(struct ath_softc *sc, u32 antenna)
|
|
sc->rx.rxotherant = 0;
|
|
sc->rx.rxotherant = 0;
|
|
}
|
|
}
|
|
|
|
|
|
-/*
|
|
|
|
- * Extend 15-bit time stamp from rx descriptor to
|
|
|
|
- * a full 64-bit TSF using the current h/w TSF.
|
|
|
|
-*/
|
|
|
|
-static u64 ath_extend_tsf(struct ath_softc *sc, u32 rstamp)
|
|
|
|
-{
|
|
|
|
- u64 tsf;
|
|
|
|
-
|
|
|
|
- tsf = ath9k_hw_gettsf64(sc->sc_ah);
|
|
|
|
- if ((tsf & 0x7fff) < rstamp)
|
|
|
|
- tsf -= 0x8000;
|
|
|
|
- return (tsf & ~0x7fff) | rstamp;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* For Decrypt or Demic errors, we only mark packet status here and always push
|
|
* For Decrypt or Demic errors, we only mark packet status here and always push
|
|
* up the frame up to let mac80211 handle the actual error case, be it no
|
|
* up the frame up to let mac80211 handle the actual error case, be it no
|
|
@@ -223,7 +209,7 @@ static int ath_rx_prepare(struct ieee80211_hw *hw,
|
|
if (ieee80211_is_beacon(fc))
|
|
if (ieee80211_is_beacon(fc))
|
|
sc->sc_ah->stats.avgbrssi = rx_stats->rs_rssi;
|
|
sc->sc_ah->stats.avgbrssi = rx_stats->rs_rssi;
|
|
|
|
|
|
- rx_status->mactime = ath_extend_tsf(sc, rx_stats->rs_tstamp);
|
|
|
|
|
|
+ rx_status->mactime = ath9k_hw_extend_tsf(sc->sc_ah, rx_stats->rs_tstamp);
|
|
rx_status->band = hw->conf.channel->band;
|
|
rx_status->band = hw->conf.channel->band;
|
|
rx_status->freq = hw->conf.channel->center_freq;
|
|
rx_status->freq = hw->conf.channel->center_freq;
|
|
rx_status->noise = sc->ani.noise_floor;
|
|
rx_status->noise = sc->ani.noise_floor;
|