Only increment xretries statistic for unicast frames
[open-ath9k-htc-firmware.git] / target_firmware / wlan / if_ath_pci.c
index d4499ffaeb9b4680b863b4052e5d52dee3ff8360..c261206bf48498b059b1ff1b39545c8f0b0ae9b5 100755 (executable)
 #include <adf_net.h>
 #include <adf_os_irq.h>
 
-#include <adf_net_types.h>
 #include <adf_net_wcmd.h>
 
 #include <ieee80211_var.h>
 #include "if_athvar.h"
 #include "if_ath_pci.h"
 
-extern a_int32_t ath_tgt_attach(a_uint32_t devid,a_uint32_t mem_start,
-                               struct ath_softc_tgt *sc, adf_os_device_t osdev);
+extern a_int32_t ath_tgt_attach(a_uint32_t devid, struct ath_softc_tgt *sc, adf_os_device_t osdev);
 extern a_int32_t ath_detach(void *);
 extern adf_os_irq_resp_t ath_intr(adf_drv_handle_t hdl);
 
@@ -114,7 +112,6 @@ static adf_os_pci_dev_id_t ath_pci_id_table[] = {
 };
 #endif
 
-void bus_read_cachesize(struct ath_softc *sc, a_uint8_t *csz);
 void exit_ath_pci(void);
 a_int32_t init_ath_pci(void);
 
@@ -145,7 +142,7 @@ ath_pci_probe(adf_os_resource_t *res,a_int32_t count, adf_os_attach_data_t *data
 
        adf_os_print("ath_pci_probe %x\n",id->device);
 
-       if (ath_tgt_attach(id->device, res->start, &sc->aps_sc, osdev) != 0)
+       if (ath_tgt_attach(id->device, &sc->aps_sc, osdev) != 0)
                goto bad3;
 
        /* ready to process interrupts */
@@ -176,12 +173,6 @@ ath_pci_resume(adf_drv_handle_t hdl)
 {
 }
 
-void
-bus_read_cachesize(struct ath_softc *sc, a_uint8_t *csz)
-{
-       *csz = adf_os_cache_line_size();
-}
-
 static adf_drv_info_t ath_drv_info = adf_os_pci_set_drv_info(ath_pci_tgt,&ath_pci_id_table[0], ath_pci_probe, ath_pci_remove, ath_pci_suspend, ath_pci_resume);
 
 a_int32_t