|
@@ -230,7 +230,13 @@ static int ath_tx_prepare(struct ath_softc *sc,
|
|
|
|
|
|
txctl->if_id = 0;
|
|
|
txctl->frmlen = skb->len + FCS_LEN - (hdrlen & 3);
|
|
|
- txctl->txpower = MAX_RATE_POWER; /* FIXME */
|
|
|
+
|
|
|
+ /* Always try at highest power possible unless the the device
|
|
|
+ * was configured by the user to use another power. */
|
|
|
+ if (likely(sc->sc_config.txpowlimit == ATH_TXPOWER_MAX))
|
|
|
+ txctl->txpower = ATH_TXPOWER_MAX;
|
|
|
+ else
|
|
|
+ txctl->txpower = sc->sc_config.txpowlimit;
|
|
|
|
|
|
/* Fill Key related fields */
|
|
|
|