diff options
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index e0b89780b472..daab5adeb93c 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -2373,6 +2373,7 @@ struct sk_buff *ieee80211_beacon_get_tim(struct ieee80211_hw *hw, | |||
2373 | IEEE80211_STYPE_BEACON); | 2373 | IEEE80211_STYPE_BEACON); |
2374 | } else if (ieee80211_vif_is_mesh(&sdata->vif)) { | 2374 | } else if (ieee80211_vif_is_mesh(&sdata->vif)) { |
2375 | struct ieee80211_mgmt *mgmt; | 2375 | struct ieee80211_mgmt *mgmt; |
2376 | struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; | ||
2376 | u8 *pos; | 2377 | u8 *pos; |
2377 | int hdr_len = offsetof(struct ieee80211_mgmt, u.beacon) + | 2378 | int hdr_len = offsetof(struct ieee80211_mgmt, u.beacon) + |
2378 | sizeof(mgmt->u.beacon); | 2379 | sizeof(mgmt->u.beacon); |
@@ -2382,6 +2383,10 @@ struct sk_buff *ieee80211_beacon_get_tim(struct ieee80211_hw *hw, | |||
2382 | goto out; | 2383 | goto out; |
2383 | #endif | 2384 | #endif |
2384 | 2385 | ||
2386 | if (ifmsh->sync_ops) | ||
2387 | ifmsh->sync_ops->adjust_tbtt( | ||
2388 | sdata); | ||
2389 | |||
2385 | skb = dev_alloc_skb(local->tx_headroom + | 2390 | skb = dev_alloc_skb(local->tx_headroom + |
2386 | hdr_len + | 2391 | hdr_len + |
2387 | 2 + /* NULL SSID */ | 2392 | 2 + /* NULL SSID */ |