X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=target_firmware%2Fwlan%2Fif_ath.c;h=53b15cd1f34760ea9c2b36a9a81b2b7c1d75cb96;hb=a942c5ad0ff07400bf9338d5687ede7b3cb7e79b;hp=41ba3543023eee7dff2461e17eed2fec4f46b82e;hpb=6c5255961571b9cc571776c9cf11f90468bfd7f1;p=open-ath9k-htc-firmware.git diff --git a/target_firmware/wlan/if_ath.c b/target_firmware/wlan/if_ath.c index 41ba354..53b15cd 100755 --- a/target_firmware/wlan/if_ath.c +++ b/target_firmware/wlan/if_ath.c @@ -80,17 +80,6 @@ void owl_tgt_node_init(struct ath_node_target * an); void ath_tgt_tx_sched_normal(struct ath_softc_tgt *sc, struct ath_buf *bf); void ath_tgt_tx_sched_nonaggr(struct ath_softc_tgt *sc,struct ath_buf * bf_host); -/*************/ -/* Utilities */ -/*************/ - -#undef adf_os_cpu_to_le16 - -static a_uint16_t adf_os_cpu_to_le16(a_uint16_t x) -{ - return ((((x) & 0xff00) >> 8) | (((x) & 0x00ff) << 8)); -} - /* * Extend a 32 bit TSF to 64 bit, taking wrapping into account. */ @@ -266,7 +255,7 @@ static a_int32_t ath_rxdesc_init(struct ath_softc_tgt *sc, struct ath_rx_desc *d ds->ds_link = 0; adf_nbuf_peek_header(ds->ds_nbuf, &anbdata, &anblen); - ath_hal_setuprxdesc(ah, ds, + ah->ah_setupRxDesc(ah, ds, adf_nbuf_tailroom(ds->ds_nbuf), 0); @@ -386,7 +375,7 @@ static void ath_uapsd_processtriggers(struct ath_softc_tgt *sc) continue; } - retval = ath_hal_rxprocdescfast(ah, ds, ds->ds_daddr, + retval = ah->ah_procRxDescFast(ah, ds, ds->ds_daddr, PA2DESC(sc, ds->ds_link), &bf->bf_rx_status); if (HAL_EINPROGRESS == retval) { break; @@ -555,7 +544,7 @@ static void ath_beacon_setup(struct ath_softc_tgt *sc, rt = sc->sc_currates; rate = rt->info[rix].rateCode; - ath_hal_setuptxdesc(ah, ds + ah->ah_setupTxDesc(ah, ds , adf_nbuf_len(skb) + IEEE80211_CRC_LEN , sizeof(struct ieee80211_frame) , HAL_PKT_TYPE_BEACON @@ -570,7 +559,7 @@ static void ath_beacon_setup(struct ath_softc_tgt *sc, , 0 , ATH_COMP_PROC_NO_COMP_NO_CCS); - ath_hal_filltxdesc(ah, ds + ah->ah_fillTxDesc(ah, ds , asf_roundup(adf_nbuf_len(skb), 4) , AH_TRUE , AH_TRUE