mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 16:37:50 +00:00
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>
This commit is contained in:
parent
ed405be5cb
commit
866403a7bd
1 changed files with 0 additions and 6 deletions
|
@ -1790,12 +1790,6 @@ netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb,
|
||||||
break;
|
break;
|
||||||
#ifdef CONFIG_MAC80211_MESH
|
#ifdef CONFIG_MAC80211_MESH
|
||||||
case NL80211_IFTYPE_MESH_POINT:
|
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)) {
|
if (!is_multicast_ether_addr(skb->data)) {
|
||||||
struct sta_info *next_hop;
|
struct sta_info *next_hop;
|
||||||
bool mpp_lookup = true;
|
bool mpp_lookup = true;
|
||||||
|
|
Loading…
Reference in a new issue