one more potential issue wich where we use data pointer instead of datalen.
NOTE: Currently this functions seems to be not used.
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
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);
wmi_cmd_rsp(sc->tgt_wmi_handle, Command, SeqNo, NULL, 0);
}
wmi_cmd_rsp(sc->tgt_wmi_handle, Command, SeqNo, NULL, 0);
}