remove unused adf_os_cpu_to_le16
[open-ath9k-htc-firmware.git] / target_firmware / wlan / if_ath.c
index 9f1e1722084e724aa536e1798b43f0baadd65d45..53b15cd1f34760ea9c2b36a9a81b2b7c1d75cb96 100755 (executable)
@@ -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.
  */
@@ -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