Merge pull request #106 from olerem/clean-2016.10.15
authorAdrian Chadd <adrian.chadd@gmail.com>
Sat, 29 Oct 2016 15:48:42 +0000 (08:48 -0700)
committerGitHub <noreply@github.com>
Sat, 29 Oct 2016 15:48:42 +0000 (08:48 -0700)
Clean 2016.10.15

.editorconfig [new file with mode: 0644]
target_firmware/wlan/if_owl.c

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..6be3f2b
--- /dev/null
@@ -0,0 +1,21 @@
+# 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.
+
+# EditorConfig
+# http://EditorConfig.org
+
+# top-most EditorConfig file
+root = true
+
+# LF end-of-line, insert an empty new line and UTF-8
+[*]
+end_of_line = lf
+insert_final_newline = true
+charset = utf-8
+
+# Tab indentation
+[makefile,Makefile]
+indent_style = tab
index da65461a21dd72dbceafd7efbb62aeb8bca167ad..f2280691efc9ee538b075457ab4d4ccbb604f5b8 100755 (executable)
@@ -1023,13 +1023,15 @@ static void
 ath_update_stats(struct ath_softc_tgt *sc, struct ath_tx_buf *bf)
 {
        struct ath_tx_desc *ds = bf->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++;