aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-04 22:20:59 +0200
committerJouni Malinen <j@w1.fi>2009-12-04 22:20:59 +0200
commita95795ad612a32eb9b15aaa6470b419ac4d0a228 (patch)
tree0c6fd4376e08506abc4e20f5105598a67e33de3f
parent9c972abb663a3c782a2e67133ffb1b5a2d745d8a (diff)
downloadexternal_wpa_supplicant_8_ti-a95795ad612a32eb9b15aaa6470b419ac4d0a228.zip
external_wpa_supplicant_8_ti-a95795ad612a32eb9b15aaa6470b419ac4d0a228.tar.gz
external_wpa_supplicant_8_ti-a95795ad612a32eb9b15aaa6470b419ac4d0a228.tar.bz2
nl80211: Add extra IEs into IBSS join request
This allows RSN IE to be added into Beacon and Probe Response frames when using RSN IBSS.
-rw-r--r--src/drivers/driver_nl80211.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 9780327..34c9d22 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -3477,6 +3477,14 @@ retry:
if (ret)
goto nla_put_failure;
+ if (params->wpa_ie) {
+ wpa_hexdump(MSG_DEBUG,
+ " * Extra IEs for Beacon/Probe Response frames",
+ params->wpa_ie, params->wpa_ie_len);
+ NLA_PUT(msg, NL80211_ATTR_IE, params->wpa_ie_len,
+ params->wpa_ie);
+ }
+
ret = send_and_recv_msgs(drv, msg, NULL, NULL);
msg = NULL;
if (ret) {