mac80211: Don't drop frames received with mesh ttl == 1
authorJavier Cardona <javier@cozybit.com>
Wed, 24 Oct 2012 19:43:31 +0000 (12:43 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 25 Oct 2012 11:52:20 +0000 (13:52 +0200)
Prior this fix, those frames were not received, nor forwarded.  Fix
this to receive and not forward.

Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c

index 1222127..f73e0dd 100644 (file)
@@ -1944,7 +1944,7 @@ ieee80211_rx_h_mesh_fwding(struct ieee80211_rx_data *rx)
 
        if (!--mesh_hdr->ttl) {
                IEEE80211_IFSTA_MESH_CTR_INC(ifmsh, dropped_frames_ttl);
-               return RX_DROP_MONITOR;
+               goto out;
        }
 
        if (!ifmsh->mshcfg.dot11MeshForwarding)