|
@@ -342,6 +342,11 @@ struct sta_info *sta_info_alloc(struct ieee80211_sub_if_data *sdata,
|
|
|
INIT_WORK(&sta->drv_unblock_wk, sta_unblock);
|
|
|
INIT_WORK(&sta->ampdu_mlme.work, ieee80211_ba_session_work);
|
|
|
mutex_init(&sta->ampdu_mlme.mtx);
|
|
|
+#ifdef CONFIG_MAC80211_MESH
|
|
|
+ if (ieee80211_vif_is_mesh(&sdata->vif) &&
|
|
|
+ !sdata->u.mesh.user_mpm)
|
|
|
+ init_timer(&sta->plink_timer);
|
|
|
+#endif
|
|
|
|
|
|
memcpy(sta->sta.addr, addr, ETH_ALEN);
|
|
|
sta->local = local;
|