]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Add extra IEs into IBSS join request
authorJouni Malinen <j@w1.fi>
Fri, 4 Dec 2009 20:20:59 +0000 (22:20 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 4 Dec 2009 20:20:59 +0000 (22:20 +0200)
This allows RSN IE to be added into Beacon and Probe Response frames
when using RSN IBSS.

src/drivers/driver_nl80211.c

index 9780327efb42a7493a18530b08f8b095dd468e55..34c9d22ce549eb0ac2cf213c0ad5e9888ec0c7ca 100644 (file)
@@ -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) {