+/*
+ * Copyright (c) 2013 Qualcomm Atheros, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted (subject to the limitations in the
+ * disclaimer below) provided that the following conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the
+ * distribution.
+ *
+ * * Neither the name of Qualcomm Atheros nor the names of its
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
+ * GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
+ * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+ * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+ * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
#include <adf_os_types.h>
#include <adf_os_pci.h>
#include <adf_os_dma.h>
break;
}
- if (ds->ds_link == NULL) {
+ if (ds->ds_link == 0) {
break;
}
struct ath_rx_buf *bf = NULL;
struct ath_hal *ah = sc->sc_ah;
struct rx_frame_header *rxhdr;
- struct ieee80211_frame *wh;
struct ath_rx_status *rxstats;
adf_nbuf_t skb = ADF_NBUF_NULL;
HTC_SendMsg(sc->tgt_htc_handle, RX_ENDPOINT_ID, skb);
sc->sc_rx_stats.ast_rx_send++;
- next_buf:
bf->bf_status &= ~ATH_BUFSTATUS_DONE;
asf_tailq_insert_tail(&sc->sc_rxbuf, bf, bf_list);
adf_nbuf_t skb = bf->bf_skb;
struct ath_hal *ah = sc->sc_ah;
struct ath_desc *ds;
- a_int32_t flags, antenna;
+ a_int32_t flags;
const HAL_RATE_TABLE *rt;
a_uint8_t rix, rate;
HAL_11N_RATE_SERIES series[4] = {{ 0 }};
{
struct ath_softc_tgt *sc = (struct ath_softc_tgt *)hdl;
struct ath_hal *ah = sc->sc_ah;
- struct ieee80211com_target *ic = &sc->sc_ic;
HAL_INT status;
if (sc->sc_invalid)
{
struct ath_softc_tgt *sc = (struct ath_softc_tgt *)Context;
a_uint16_t mode;
- struct ath_hal *ah = sc->sc_ah;
mode= *((a_uint16_t *)data);
mode = adf_os_ntohs(mode);
wmi_cmd_rsp(sc->tgt_wmi_handle, Command, SeqNo, NULL, 0);
}
-static a_uint32_t ath_detach_tgt(void *Context, A_UINT16 Command, A_UINT16 SeqNo,
+static void ath_detach_tgt(void *Context, A_UINT16 Command, A_UINT16 SeqNo,
A_UINT8 *data, a_int32_t datalen)
{
struct ath_softc_tgt *sc = (struct ath_softc_tgt *)Context;