Even though we don't currently implement PS for mesh points, the standard asks us to include a TIM element in beacons. Include an empty element for now. Signed-off-by: Thomas Pedersen <thomas@xxxxxxxxxxx> --- net/mac80211/tx.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index e1389e8..174db68 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -2251,6 +2251,7 @@ struct sk_buff *ieee80211_beacon_get_tim(struct ieee80211_hw *hw, IEEE80211_STYPE_BEACON); } else if (ieee80211_vif_is_mesh(&sdata->vif)) { struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; + u8 *pos; #ifdef CONFIG_MAC80211_MESH if (!sdata->u.mesh.mesh_id_len) goto out; @@ -2269,6 +2270,14 @@ struct sk_buff *ieee80211_beacon_get_tim(struct ieee80211_hw *hw, memcpy(skb_put(skb, beacon->head_len), beacon->head, beacon->head_len); + pos = skb_put(skb, 6); + *pos++ = WLAN_EID_TIM; + *pos++ = 4; + *pos++ = 0; /* DTIM count */ + *pos++ = 0; /* DTIM period */ + *pos++ = 0; /* Bitmap control */ + *pos++ = 0; /* Part Virt Bitmap */ + if (beacon->tail && beacon->tail_len) memcpy(skb_put(skb, beacon->tail_len), beacon->tail, beacon->tail_len); -- 1.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html