Skip to contentSkip to conversation

mac80211: don't check local mesh TTL on TX

PATCH In review Thomas Pedersen 2 participants 2 messages Jun 1, 2013 – Jun 3, 2013 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: don't check local mesh TTL on TX

nl80211 has already verified the mesh TTL on setting the mesh config, so no need to check it again in mac80211.

---
 net/mac80211/tx.c |    6 ------
 1 file changed, 6 deletions(-)
net/mac80211/tx.c +0 -6
index 34be933..4105d0c 100644
@@ -1790,12 +1790,6 @@ netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb,
 		break;
 #ifdef CONFIG_MAC80211_MESH
 	case NL80211_IFTYPE_MESH_POINT:
-		if (!sdata->u.mesh.mshcfg.dot11MeshTTL) {
-			/* Do not send frames with mesh_ttl == 0 */
-			sdata->u.mesh.mshstats.dropped_frames_ttl++;
-			goto fail_rcu;
-		}
-
 		if (!is_multicast_ether_addr(skb->data)) {
 			struct sta_info *next_hop;
 			bool mpp_lookup = true;
Signature · 1 line
1.7.10.4
maintainer
#1 lore raw
Quoted 2 lines · Thomas Pedersen

nl80211 has already verified the mesh TTL on setting the mesh config, so no need to check it again in mac80211.

makes sense, applied.

johannes