Skip to content

Commit 866403a

Browse files
twpedersenjmberg-intel
authored andcommitted
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. Signed-off-by: Thomas Pedersen <thomas@cozybit.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent ed405be commit 866403a

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎net/mac80211/tx.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,12 +1790,6 @@ netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb,
17901790
break;
17911791
#ifdef CONFIG_MAC80211_MESH
17921792
case NL80211_IFTYPE_MESH_POINT:
1793-
if (!sdata->u.mesh.mshcfg.dot11MeshTTL) {
1794-
/* Do not send frames with mesh_ttl == 0 */
1795-
sdata->u.mesh.mshstats.dropped_frames_ttl++;
1796-
goto fail_rcu;
1797-
}
1798-
17991793
if (!is_multicast_ether_addr(skb->data)) {
18001794
struct sta_info *next_hop;
18011795
bool mpp_lookup = true;

0 commit comments

Comments
 (0)