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 @@ -5583,7 +5583,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 @@ -5610,6 +5610,37 @@ retry:
23 nl80211_put_beacon_int(msg, params->beacon_int))
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_int > 0) {
32 + wpa_printf(MSG_DEBUG, " * beacon_int=%d",
33 + params->beacon_int);
34 + nla_put_u32(msg, NL80211_ATTR_BEACON_INTERVAL,
35 + params->beacon_int);
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_rate=%.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);