Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2ac64cd1 authored by Javier Cardona's avatar Javier Cardona Committed by Johannes Berg
Browse files

mac80211: Don't drop frames received with mesh ttl == 1



Prior this fix, those frames were not received, nor forwarded.  Fix
this to receive and not forward.

Signed-off-by: default avatarJavier Cardona <javier@cozybit.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 555cb715
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1944,7 +1944,7 @@ ieee80211_rx_h_mesh_fwding(struct ieee80211_rx_data *rx)


	if (!--mesh_hdr->ttl) {
	if (!--mesh_hdr->ttl) {
		IEEE80211_IFSTA_MESH_CTR_INC(ifmsh, dropped_frames_ttl);
		IEEE80211_IFSTA_MESH_CTR_INC(ifmsh, dropped_frames_ttl);
		return RX_DROP_MONITOR;
		goto out;
	}
	}


	if (!ifmsh->mshcfg.dot11MeshForwarding)
	if (!ifmsh->mshcfg.dot11MeshForwarding)