projects
/
open-ath9k-htc-firmware.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use ah_detach directly
[open-ath9k-htc-firmware.git]
/
target_firmware
/
wlan
/
if_ath.c
diff --git
a/target_firmware/wlan/if_ath.c
b/target_firmware/wlan/if_ath.c
index baf1ae6017d3bb24abfee8d5a6d49f49827ef762..4cfc8c85858ea3437feb78621c2d127175016d88 100755
(executable)
--- a/
target_firmware/wlan/if_ath.c
+++ b/
target_firmware/wlan/if_ath.c
@@
-50,13
+50,12
@@
#include <adf_os_irq.h>
#include <if_ath_pci.h>
#include <adf_os_irq.h>
#include <if_ath_pci.h>
-#include "if_ethersubr.h"
#include "if_llc.h"
#include "ieee80211_var.h"
#include "if_llc.h"
#include "ieee80211_var.h"
-#include "ieee80211_proto.h"
#include "if_athrate.h"
#include "if_athvar.h"
#include "ah_desc.h"
#include "if_athrate.h"
#include "if_athvar.h"
#include "ah_desc.h"
+#include "ah.h"
static a_int32_t ath_numrxbufs = -1;
static a_int32_t ath_numrxdescs = -1;
static a_int32_t ath_numrxbufs = -1;
static a_int32_t ath_numrxdescs = -1;
@@
-121,10
+120,10
@@
static a_int32_t ath_rate_setup(struct ath_softc_tgt *sc, a_uint32_t mode)
switch (mode) {
case IEEE80211_MODE_11NA:
switch (mode) {
case IEEE80211_MODE_11NA:
- sc->sc_rates[mode] = a
th_hal_getratet
able(ah, HAL_MODE_11NA);
+ sc->sc_rates[mode] = a
h->ah_getRateT
able(ah, HAL_MODE_11NA);
break;
case IEEE80211_MODE_11NG:
break;
case IEEE80211_MODE_11NG:
- sc->sc_rates[mode] = a
th_hal_getratet
able(ah, HAL_MODE_11NG);
+ sc->sc_rates[mode] = a
h->ah_getRateT
able(ah, HAL_MODE_11NG);
break;
default:
return 0;
break;
default:
return 0;
@@
-1136,7
+1135,6
@@
static void ath_init_tgt(void *Context, A_UINT16 Command,
{
struct ath_softc_tgt *sc = (struct ath_softc_tgt *)Context;
struct ath_hal *ah = sc->sc_ah;
{
struct ath_softc_tgt *sc = (struct ath_softc_tgt *)Context;
struct ath_hal *ah = sc->sc_ah;
- a_uint32_t stbcsupport;
sc->sc_imask = HAL_INT_RX | HAL_INT_TX
| HAL_INT_RXEOL | HAL_INT_RXORN
sc->sc_imask = HAL_INT_RX | HAL_INT_TX
| HAL_INT_RXEOL | HAL_INT_RXORN
@@
-1147,13
+1145,6
@@
static void ath_init_tgt(void *Context, A_UINT16 Command,
if (ath_hal_htsupported(ah))
sc->sc_imask |= HAL_INT_CST;
if (ath_hal_htsupported(ah))
sc->sc_imask |= HAL_INT_CST;
-#ifdef MAGPIE_MERLIN
- if (ath_hal_txstbcsupport(ah, &stbcsupport))
- sc->sc_txstbcsupport = stbcsupport;
-
- if (ath_hal_rxstbcsupport(ah, &stbcsupport))
- sc->sc_rxstbcsupport = stbcsupport;
-#endif
adf_os_setup_intr(sc->sc_dev, ath_intr);
ath_hal_intrset(ah, sc->sc_imask);
adf_os_setup_intr(sc->sc_dev, ath_intr);
ath_hal_intrset(ah, sc->sc_imask);
@@
-1653,7
+1644,7
@@
static void ath_detach_tgt(void *Context, A_UINT16 Command, A_UINT16 SeqNo,
struct ath_hal *ah = sc->sc_ah;
ath_desc_free(sc);
struct ath_hal *ah = sc->sc_ah;
ath_desc_free(sc);
- a
th_hal
_detach(ah);
+ a
h->ah
_detach(ah);
wmi_cmd_rsp(sc->tgt_wmi_handle, Command, SeqNo, NULL, 0);
adf_os_mem_free(sc);
}
wmi_cmd_rsp(sc->tgt_wmi_handle, Command, SeqNo, NULL, 0);
adf_os_mem_free(sc);
}
@@
-1945,7
+1936,7
@@
bad:
bad2:
ath_desc_free(sc);
if (ah)
bad2:
ath_desc_free(sc);
if (ah)
- a
th_hal
_detach(ah);
+ a
h->ah
_detach(ah);
}
static void tgt_hif_htc_wmi_shutdown(struct ath_softc_tgt *sc)
}
static void tgt_hif_htc_wmi_shutdown(struct ath_softc_tgt *sc)