diff options
author | Colleen Twitty <colleen@cozybit.com> | 2013-05-08 14:46:00 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-05-16 16:39:43 -0400 |
commit | 0d4261ad5d0028b26cd88e645b4507eed8aab3f7 (patch) | |
tree | c2ef7d8d10ff40ed7ce3ddce1938e35728756633 /net/mac80211 | |
parent | 6e16d90b5218307db805e6b3e0b06d3946eb8c4c (diff) |
mac80211: enable Auth Protocol Identifier on mesh config.
Previously the mesh_auth_id was disabled. Instead set the
correct mesh authentication bit based on the mesh setup.
Signed-off-by: Colleen Twitty <colleen@cozybit.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/cfg.c | 1 | ||||
-rw-r--r-- | net/mac80211/mesh.c | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 66989458f5ff..eb4219051043 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -1746,6 +1746,7 @@ static int copy_mesh_setup(struct ieee80211_if_mesh *ifmsh, | |||
1746 | ifmsh->mesh_pp_id = setup->path_sel_proto; | 1746 | ifmsh->mesh_pp_id = setup->path_sel_proto; |
1747 | ifmsh->mesh_pm_id = setup->path_metric; | 1747 | ifmsh->mesh_pm_id = setup->path_metric; |
1748 | ifmsh->user_mpm = setup->user_mpm; | 1748 | ifmsh->user_mpm = setup->user_mpm; |
1749 | ifmsh->mesh_auth_id = setup->auth_id; | ||
1749 | ifmsh->security = IEEE80211_MESH_SEC_NONE; | 1750 | ifmsh->security = IEEE80211_MESH_SEC_NONE; |
1750 | if (setup->is_authenticated) | 1751 | if (setup->is_authenticated) |
1751 | ifmsh->security |= IEEE80211_MESH_SEC_AUTHED; | 1752 | ifmsh->security |= IEEE80211_MESH_SEC_AUTHED; |
diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index 6952760881c8..c13db9ad394b 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c | |||
@@ -748,7 +748,6 @@ int ieee80211_start_mesh(struct ieee80211_sub_if_data *sdata) | |||
748 | ieee80211_configure_filter(local); | 748 | ieee80211_configure_filter(local); |
749 | 749 | ||
750 | ifmsh->mesh_cc_id = 0; /* Disabled */ | 750 | ifmsh->mesh_cc_id = 0; /* Disabled */ |
751 | ifmsh->mesh_auth_id = 0; /* Disabled */ | ||
752 | /* register sync ops from extensible synchronization framework */ | 751 | /* register sync ops from extensible synchronization framework */ |
753 | ifmsh->sync_ops = ieee80211_mesh_sync_ops_get(ifmsh->mesh_sp_id); | 752 | ifmsh->sync_ops = ieee80211_mesh_sync_ops_get(ifmsh->mesh_sp_id); |
754 | ifmsh->adjusting_tbtt = false; | 753 | ifmsh->adjusting_tbtt = false; |