1 From ffc4445958a3ed4064f2e1bf73fa478a61c5cf7b Mon Sep 17 00:00:00 2001
2 From: Antonio Quartulli <ordex@autistici.org>
3 Date: Sun, 3 Jun 2012 18:42:25 +0200
4 Subject: [PATCHv2 602/602] driver_nl80211: use new parameters during ibss join
6 Signed-hostap: Antonio Quartulli <ordex@autistici.org>
8 src/drivers/driver_nl80211.c | 33 ++++++++++++++++++++++++++++++++-
9 1 file changed, 32 insertions(+), 1 deletion(-)
11 --- a/src/drivers/driver_nl80211.c
12 +++ b/src/drivers/driver_nl80211.c
13 @@ -7525,7 +7525,7 @@ static int wpa_driver_nl80211_ibss(struc
14 struct wpa_driver_associate_params *params)
21 wpa_printf(MSG_DEBUG, "nl80211: Join IBSS (ifindex=%d)", drv->ifindex);
22 @@ -7558,6 +7558,37 @@ retry:
23 wpa_printf(MSG_DEBUG, " * freq=%d", params->freq);
24 NLA_PUT_U32(msg, NL80211_ATTR_WIPHY_FREQ, params->freq);
26 + if (params->fixed_freq) {
27 + wpa_printf(MSG_DEBUG, " * fixed_freq");
28 + NLA_PUT_FLAG(msg, NL80211_ATTR_FREQ_FIXED);
31 + if (params->beacon_interval > 0) {
32 + wpa_printf(MSG_DEBUG, " * beacon_interval=%d",
33 + params->beacon_interval);
34 + NLA_PUT_U32(msg, NL80211_ATTR_BEACON_INTERVAL,
35 + params->beacon_interval);
38 + if (params->rates[0] > 0) {
39 + wpa_printf(MSG_DEBUG, " * basic_rates:");
41 + while (i < NL80211_MAX_SUPP_RATES &&
42 + params->rates[i] > 0) {
43 + wpa_printf(MSG_DEBUG, " %.1f",
44 + (double)params->rates[i] / 2);
47 + NLA_PUT(msg, NL80211_ATTR_BSS_BASIC_RATES, i,
51 + if (params->mcast_rate > 0) {
52 + wpa_printf(MSG_DEBUG, " * mcast_rates=%.1f",
53 + (double)params->mcast_rate / 10);
54 + NLA_PUT_U32(msg, NL80211_ATTR_MCAST_RATE, params->mcast_rate);
57 ret = nl80211_set_conn_keys(params, msg);