mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
mac80211: add the DS params to the beacon
Signed-off-by: Rui Paulo <rpaulo@gmail.com> Signed-off-by: Javier Cardona <javier@cozybit.com> Reviewed-by: Andrey Yurovsky <andrey@cozybit.com> Tested-by: Brian Cavagnolo <brian@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
36f0d5f537
commit
be125c60e4
1 changed files with 7 additions and 0 deletions
|
@ -247,6 +247,13 @@ void mesh_mgmt_ies_add(struct sk_buff *skb, struct ieee80211_sub_if_data *sdata)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sband->band == IEEE80211_BAND_2GHZ) {
|
||||||
|
pos = skb_put(skb, 2 + 1);
|
||||||
|
*pos++ = WLAN_EID_DS_PARAMS;
|
||||||
|
*pos++ = 1;
|
||||||
|
*pos++ = ieee80211_frequency_to_channel(local->hw.conf.channel->center_freq);
|
||||||
|
}
|
||||||
|
|
||||||
pos = skb_put(skb, 2 + sdata->u.mesh.mesh_id_len);
|
pos = skb_put(skb, 2 + sdata->u.mesh.mesh_id_len);
|
||||||
*pos++ = WLAN_EID_MESH_ID;
|
*pos++ = WLAN_EID_MESH_ID;
|
||||||
*pos++ = sdata->u.mesh.mesh_id_len;
|
*pos++ = sdata->u.mesh.mesh_id_len;
|
||||||
|
|
Loading…
Reference in a new issue