]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/mac80211/rx.c
mac80211: fix miscounting of ttl-dropped frames
[linux.git] / net / mac80211 / rx.c
index 45aad3d3108cccce9626c2682ae390a8b0991568..27a337bc8acfd1af9385c4cee5149b939d331278 100644 (file)
@@ -2723,7 +2723,9 @@ ieee80211_rx_h_mesh_fwding(struct ieee80211_rx_data *rx)
        skb_set_queue_mapping(skb, q);
 
        if (!--mesh_hdr->ttl) {
-               IEEE80211_IFSTA_MESH_CTR_INC(ifmsh, dropped_frames_ttl);
+               if (!is_multicast_ether_addr(hdr->addr1))
+                       IEEE80211_IFSTA_MESH_CTR_INC(ifmsh,
+                                                    dropped_frames_ttl);
                goto out;
        }