[PATCH 1/3] mesh: Add RSN IE to open/confirm frame

Masashi Honma masashi.honma at gmail.com
Wed Aug 26 04:32:37 EDT 2015


The RSN IE is required by spec[1] on SAE use case.
[1] Table 8-262—Mesh Peering Open frame Action field format
[1] Table 8-263—Mesh Peering Confirm frame Action field format

This patch inserts the RSN IE to them.

[1] IEEE Std 802.11 2012

Signed-off-by: Masashi Honma <masashi.honma at gmail.com>
---
 wpa_supplicant/mesh_mpm.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/wpa_supplicant/mesh_mpm.c b/wpa_supplicant/mesh_mpm.c
index b29b5ff..25470c8 100644
--- a/wpa_supplicant/mesh_mpm.c
+++ b/wpa_supplicant/mesh_mpm.c
@@ -228,6 +228,7 @@ static void mesh_mpm_send_plink_action(struct wpa_supplicant *wpa_s,
 		  2 +      /* AID */
 		  2 + 8 +  /* supported rates */
 		  2 + (32 - 8) +
+		  conf->ie_len + /* RSN IE */
 		  2 + 32 + /* mesh ID */
 		  2 + 7 +  /* mesh config */
 		  2 + 23 + /* peering management */
@@ -262,6 +263,9 @@ static void mesh_mpm_send_plink_action(struct wpa_supplicant *wpa_s,
 		pos = hostapd_eid_ext_supp_rates(bss, pos);
 		wpabuf_put_data(buf, supp_rates, pos - supp_rates);
 
+		/* IE: RSN IE */
+		wpabuf_put_data(buf, conf->ies, conf->ie_len);
+
 		/* IE: Mesh ID */
 		wpabuf_put_u8(buf, WLAN_EID_MESH_ID);
 		wpabuf_put_u8(buf, conf->meshid_len);
-- 
2.1.4



More information about the HostAP mailing list