X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=target_firmware%2Fwlan%2Fif_ath.c;h=fb0ca5a81a8d905190e9352cec8673c31d7d5ddb;hb=8106b8eaffee2a2e7140b3826db955df3b006422;hp=93e00c522990abb9e17861e4f3d682a85e25ad4f;hpb=32f5a8d941a99593034e7be838cde3485d942153;p=open-ath9k-htc-firmware.git diff --git a/target_firmware/wlan/if_ath.c b/target_firmware/wlan/if_ath.c index 93e00c5..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; @@ -446,7 +444,7 @@ static void ath_uapsd_processtriggers(struct ath_softc_tgt *sc) bf->bf_status |= ATH_BUFSTATUS_DONE; - bf = asf_tailq_next(bf, bf_list); + bf = (struct ath_rx_buf *)asf_tailq_next(bf, bf_list); } else { ds = asf_tailq_next(ds, ds_list);