Skip to content

Commit

Permalink
mac80211: Don't drop frames received with mesh ttl == 1
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Javier Cardona authored and Johannes Berg committed Oct 25, 2012
1 parent 555cb71 commit 2ac64cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2ac64cd

Please sign in to comment.