projects
/
open-ath9k-htc-firmware.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build fix: disable check for currently dead code
[open-ath9k-htc-firmware.git]
/
target_firmware
/
wlan
/
if_ath.c
diff --git
a/target_firmware/wlan/if_ath.c
b/target_firmware/wlan/if_ath.c
index 665e05bfa98209e1f54f959b3b82149079af11c9..b8874bf00ec66fb500137bdda3b83618e6630813 100755
(executable)
--- a/
target_firmware/wlan/if_ath.c
+++ b/
target_firmware/wlan/if_ath.c
@@
-539,7
+539,7
@@
static void ath_beacon_setup(struct ath_softc_tgt *sc,
{
adf_nbuf_t skb = bf->bf_skb;
struct ath_hal *ah = sc->sc_ah;
{
adf_nbuf_t skb = bf->bf_skb;
struct ath_hal *ah = sc->sc_ah;
- struct ath_desc *ds;
+ struct ath_
tx_
desc *ds;
a_int32_t flags;
const HAL_RATE_TABLE *rt;
a_uint8_t rix, rate;
a_int32_t flags;
const HAL_RATE_TABLE *rt;
a_uint8_t rix, rate;
@@
-933,7
+933,7
@@
static a_int32_t ath_desc_alloc(struct ath_softc_tgt *sc)
a_uint32_t i;
struct ath_descdma *dd = &sc->sc_rxdma;
a_uint32_t i;
struct ath_descdma *dd = &sc->sc_rxdma;
- struct ath_rx_desc *ds = dd->dd_desc;
+ struct ath_rx_desc *ds =
(struct ath_rx_desc *)
dd->dd_desc;
struct ath_rx_desc *ds_prev = NULL;
asf_tailq_init(&sc->sc_rxdesc);
struct ath_rx_desc *ds_prev = NULL;
asf_tailq_init(&sc->sc_rxdesc);
@@
-1136,7
+1136,6
@@
static void ath_init_tgt(void *Context, A_UINT16 Command,
{
struct ath_softc_tgt *sc = (struct ath_softc_tgt *)Context;
struct ath_hal *ah = sc->sc_ah;
{
struct ath_softc_tgt *sc = (struct ath_softc_tgt *)Context;
struct ath_hal *ah = sc->sc_ah;
- a_uint32_t stbcsupport;
sc->sc_imask = HAL_INT_RX | HAL_INT_TX
| HAL_INT_RXEOL | HAL_INT_RXORN
sc->sc_imask = HAL_INT_RX | HAL_INT_TX
| HAL_INT_RXEOL | HAL_INT_RXORN
@@
-1148,11
+1147,14
@@
static void ath_init_tgt(void *Context, A_UINT16 Command,
sc->sc_imask |= HAL_INT_CST;
#ifdef MAGPIE_MERLIN
sc->sc_imask |= HAL_INT_CST;
#ifdef MAGPIE_MERLIN
- if (ath_hal_txstbcsupport(ah, &stbcsupport))
- sc->sc_txstbcsupport = stbcsupport;
+ {
+ a_uint32_t stbcsupport;
+ if (ath_hal_txstbcsupport(ah, &stbcsupport))
+ sc->sc_txstbcsupport = stbcsupport;
- if (ath_hal_rxstbcsupport(ah, &stbcsupport))
- sc->sc_rxstbcsupport = stbcsupport;
+ if (ath_hal_rxstbcsupport(ah, &stbcsupport))
+ sc->sc_rxstbcsupport = stbcsupport;
+ }
#endif
adf_os_setup_intr(sc->sc_dev, ath_intr);
ath_hal_intrset(ah, sc->sc_imask);
#endif
adf_os_setup_intr(sc->sc_dev, ath_intr);
ath_hal_intrset(ah, sc->sc_imask);