3 @@ -5344,27 +5344,6 @@ ath_beacon_send(struct ath_softc *sc, in
4 } else if ((sc->sc_updateslot == COMMIT) && (sc->sc_slotupdate == slot))
5 ath_setslottime(sc); /* commit change to hardware */
7 - if ((!sc->sc_stagbeacons || slot == 0) && (!sc->sc_diversity)) {
8 - unsigned int otherant;
10 - * Check recent per-antenna transmit statistics and flip
11 - * the default rx antenna if noticeably more frames went out
12 - * on the non-default antenna. Only do this if rx diversity
14 - * XXX assumes 2 antennae
16 - otherant = sc->sc_defant & 1 ? 2 : 1;
17 - if (sc->sc_ant_tx[otherant] > sc->sc_ant_tx[sc->sc_defant] +
19 - DPRINTF(sc, ATH_DEBUG_BEACON,
20 - "Flip default antenna to %u, %u > %u\n",
21 - otherant, sc->sc_ant_tx[otherant],
22 - sc->sc_ant_tx[sc->sc_defant]);
23 - ath_setdefantenna(sc, otherant);
25 - sc->sc_ant_tx[1] = sc->sc_ant_tx[2] = 0;
30 * Stop any current DMA and put the new frame(s) on the queue.