summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/mac80211/cfg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index a2ff47493e0a..e09001278db5 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -743,7 +743,9 @@ static void sta_apply_parameters(struct ieee80211_local *local,
case PLINK_LISTEN:
case PLINK_ESTAB:
case PLINK_BLOCKED:
+#ifdef CONFIG_MAC80211_MESH
sta->plink_state = params->plink_state;
+#endif
break;
default:
/* nothing */