From: Adrian Chadd Date: Wed, 19 Oct 2016 16:01:33 +0000 (-0700) Subject: Merge pull request #100 from RyDroid/editorconfig X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=c5a12bc7d93b4c10603efb74cd35b85971f105c4;hp=b2f3ee13e8da805ae56f46caba7e6279991b25b2;p=open-ath9k-htc-firmware.git Merge pull request #100 from RyDroid/editorconfig Adding a file for EditorConfig --- diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..cfb0ee1 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided this notice is +# preserved. This file is offered as-is, without any warranty. +# Names of contributors must not be used to endorse or promote products +# derived from this file without specific prior written permission. + +# See YAML format https://en.wikipedia.org/wiki/YAML +# See Travis CI (Continuous Integration) https://docs.travis-ci.com/ + + +language: c + +os: + - linux + +addons: + apt: + packages: + - cmake + +script: + - make toolchain + - make -C target_firmware + - make -C target_firmware clean diff --git a/target_firmware/configure b/target_firmware/configure index 0106e40..e2d4639 100755 --- a/target_firmware/configure +++ b/target_firmware/configure @@ -35,28 +35,24 @@ # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ## -TOOLCHAIN=$PWD/../toolchain/inst - TARGET=xtensa-elf -PREFIX="$TOOLCHAIN/bin/$TARGET-" -TOOLCHAIN_FILE=$PWD/build/toolchain.cmake + +[ -z "$CROSS_COMPILE" ] && + CROSS_COMPILE="$PWD/../toolchain/inst/bin/$TARGET-" + +TOOLCHAIN_FILE="$PWD/build/toolchain.cmake" set -e rm -rf build mkdir -p build cat > "$TOOLCHAIN_FILE" <bf_desc; + struct ieee80211_frame *wh = ATH_SKB2_WH(bf->bf_skb); u_int32_t sr, lr; if (ds->ds_txstat.ts_status == 0) { if (ds->ds_txstat.ts_rate & HAL_TXSTAT_ALTRATE) sc->sc_tx_stats.ast_tx_altrate++; } else { - if (ds->ds_txstat.ts_status & HAL_TXERR_XRETRY) + if (ds->ds_txstat.ts_status & HAL_TXERR_XRETRY && + !IEEE80211_IS_MULTICAST(wh->i_addr1)) sc->sc_tx_stats.ast_tx_xretries++; if (ds->ds_txstat.ts_status & HAL_TXERR_FIFO) sc->sc_tx_stats.ast_tx_fifoerr++;