From: Oleksij Rempel Date: Fri, 29 Mar 2013 07:44:01 +0000 (+0100) Subject: build fix: wmi_event and wmi_cmd_rsp should use void *buffer X-Git-Tag: 1.3.2~12^2~4 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=8106b8eaffee2a2e7140b3826db955df3b006422;p=open-ath9k-htc-firmware.git build fix: wmi_event and wmi_cmd_rsp should use void *buffer we pass different buffer types to this functions. It makes no sense to define some concrect type here Signed-off-by: Oleksij Rempel --- diff --git a/target_firmware/wlan/if_ath.c b/target_firmware/wlan/if_ath.c index 263627f..fb0ca5a 100755 --- a/target_firmware/wlan/if_ath.c +++ b/target_firmware/wlan/if_ath.c @@ -70,10 +70,8 @@ uint32_t *init_htc_handle = 0; #define UAPSDQ_NUM 9 #define CABQ_NUM 8 -void wmi_event(wmi_handle_t handle, WMI_EVENT_ID evt_id, A_UINT8 *buffer, a_int32_t Length); void owl_tgt_tx_tasklet(TQUEUE_ARG data); static void ath_tgt_send_beacon(struct ath_softc_tgt *sc,adf_nbuf_t bc_hdr,adf_nbuf_t nbuf,HTC_ENDPOINT_ID EndPt); -void wmi_cmd_rsp(void *pContext, WMI_COMMAND_ID cmd_id, A_UINT16 SeqNo, A_UINT8 *buffer, a_int32_t Length); static void ath_hal_reg_write_tgt(void *Context, A_UINT16 Command, A_UINT16 SeqNo, A_UINT8 *data, a_int32_t datalen); extern struct ath_buf * ath_tgt_tx_prepare(struct ath_softc_tgt *sc, adf_nbuf_t skb, ath_data_hdr_t *dh); extern void ath_tgt_send_mgt(struct ath_softc_tgt *sc,adf_nbuf_t mgt_hdr, adf_nbuf_t skb,HTC_ENDPOINT_ID EndPt); @@ -160,7 +158,7 @@ static void ath_setcurmode(struct ath_softc_tgt *sc, } void wmi_event(wmi_handle_t handle, WMI_EVENT_ID evt_id, - A_UINT8 *buffer, a_int32_t Length) + void *buffer, a_int32_t Length) { adf_nbuf_t netbuf = ADF_NBUF_NULL; a_uint8_t *pData; @@ -182,7 +180,7 @@ void wmi_event(wmi_handle_t handle, WMI_EVENT_ID evt_id, } void wmi_cmd_rsp(void *pContext, WMI_COMMAND_ID cmd_id, A_UINT16 SeqNo, - A_UINT8 *buffer, a_int32_t Length) + void *buffer, a_int32_t Length) { adf_nbuf_t netbuf = ADF_NBUF_NULL; A_UINT8 *pData;