Skip to content

Commit 0d4261a

Browse files
ctwittyjmberg-intel
authored andcommitted
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>
1 parent 6e16d90 commit 0d4261a

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/mac80211/cfg.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,6 +1746,7 @@ static int copy_mesh_setup(struct ieee80211_if_mesh *ifmsh,
17461746
ifmsh->mesh_pp_id = setup->path_sel_proto;
17471747
ifmsh->mesh_pm_id = setup->path_metric;
17481748
ifmsh->user_mpm = setup->user_mpm;
1749+
ifmsh->mesh_auth_id = setup->auth_id;
17491750
ifmsh->security = IEEE80211_MESH_SEC_NONE;
17501751
if (setup->is_authenticated)
17511752
ifmsh->security |= IEEE80211_MESH_SEC_AUTHED;

‎net/mac80211/mesh.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,6 @@ int ieee80211_start_mesh(struct ieee80211_sub_if_data *sdata)
748748
ieee80211_configure_filter(local);
749749

750750
ifmsh->mesh_cc_id = 0; /* Disabled */
751-
ifmsh->mesh_auth_id = 0; /* Disabled */
752751
/* register sync ops from extensible synchronization framework */
753752
ifmsh->sync_ops = ieee80211_mesh_sync_ops_get(ifmsh->mesh_sp_id);
754753
ifmsh->adjusting_tbtt = false;

0 commit comments

Comments
 (0)