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
if_ath: use datalen instead of data in ath_stop_tx_dma_tgt
[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 b31fbdb67e866d883732f14ca4171515015bbfbd..1fb2a7ac90568f4da9c208c376b28ebe2ce05b41 100755
(executable)
--- a/
target_firmware/wlan/if_ath.c
+++ b/
target_firmware/wlan/if_ath.c
@@
-1613,11
+1613,14
@@
static void ath_stop_tx_dma_tgt(void *Context, A_UINT16 Command,
struct ath_hal *ah = sc->sc_ah;
a_uint32_t q;
struct ath_hal *ah = sc->sc_ah;
a_uint32_t q;
- if (data)
- q = *(a_uint32_t *)data;
+ if (!datalen)
+ goto done;
+
+ q = *(a_uint32_t *)data;
q = adf_os_ntohl(q);
ah->ah_stopTxDma(ah, q);
q = adf_os_ntohl(q);
ah->ah_stopTxDma(ah, q);
+done:
wmi_cmd_rsp(sc->tgt_wmi_handle, Command, SeqNo, NULL, 0);
}
wmi_cmd_rsp(sc->tgt_wmi_handle, Command, SeqNo, NULL, 0);
}