mac80211: fix the assignment of mesh element TTL
authorChun-Yeow Yeoh <yeohchunyeow@gmail.com>
Thu, 14 Jun 2012 16:23:53 +0000 (00:23 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 18 Jun 2012 11:55:16 +0000 (13:55 +0200)
This patch fixes the wrong assignment of mesh element TTL.

Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c

index 6e25ac4873c70b3dc5fc9b2641a60e0974f402a6..17162fcc24bc1b5faaf3248238af52062f41adec 100644 (file)
@@ -1530,7 +1530,7 @@ static int ieee80211_update_mesh_config(struct wiphy *wiphy,
        if (_chg_mesh_attr(NL80211_MESHCONF_TTL, mask))
                conf->dot11MeshTTL = nconf->dot11MeshTTL;
        if (_chg_mesh_attr(NL80211_MESHCONF_ELEMENT_TTL, mask))
-               conf->dot11MeshTTL = nconf->element_ttl;
+               conf->element_ttl = nconf->element_ttl;
        if (_chg_mesh_attr(NL80211_MESHCONF_AUTO_OPEN_PLINKS, mask))
                conf->auto_open_plinks = nconf->auto_open_plinks;
        if (_chg_mesh_attr(NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR, mask))