Skip to content

Commit

Permalink
Merge pull request #119 from olerem/rate-2016.12.16.1
Browse files Browse the repository at this point in the history
use minimal unmasked rate for multicast frames.
  • Loading branch information
erikarn authored Dec 16, 2016
2 parents 38a1217 + 6aca322 commit ef9a749
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions target_firmware/wlan/if_ath.c
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,7 @@ static void tgt_HTCRecvMessageHandler(HTC_ENDPOINT_ID EndPt,

bf->bf_endpt = EndPt;
bf->bf_cookie = dh->cookie;
bf->vap_index = dh->vap_index;

if (tid->flag & TID_AGGR_ENABLED)
ath_tgt_handle_aggr(sc, bf);
Expand Down
1 change: 1 addition & 0 deletions target_firmware/wlan/if_athvar.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ struct ath_tx_buf
HTC_ENDPOINT_ID bf_endpt;
a_uint16_t al_delta;
a_uint8_t bf_cookie;
a_uint8_t vap_index;
};

struct ath_rx_buf
Expand Down
6 changes: 5 additions & 1 deletion target_firmware/wlan/if_owl.c
Original file line number Diff line number Diff line change
Expand Up @@ -969,9 +969,13 @@ ath_tgt_tx_send_normal(struct ath_softc_tgt *sc, struct ath_tx_buf *bf)
rcs, &isProbe);
ath_hal_memcpy(bf->bf_rcs, rcs, sizeof(rcs));
} else {
struct ath_vap_target *avp;

avp = &sc->sc_vap[bf->vap_index];

mrcs[1].tries = mrcs[2].tries = mrcs[3].tries = 0;
mrcs[1].rix = mrcs[2].rix = mrcs[3].rix = 0;
mrcs[0].rix = 0;
mrcs[0].rix = ath_get_minrateidx(sc, avp);
mrcs[0].tries = 1;
mrcs[0].flags = 0;
ath_hal_memcpy(bf->bf_rcs, mrcs, sizeof(mrcs));
Expand Down

0 comments on commit ef9a749

Please sign in to comment.