P2P: Add P2P_ASSOC_RESP to P2P vendor elements
authorAvraham Stern <avraham.stern@intel.com>
Wed, 14 Oct 2015 15:43:18 +0000 (18:43 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 16 Oct 2015 17:47:41 +0000 (20:47 +0300)
Vendor specific IEs added to frame type P2P_ASSOC_RESP are saved in
the interface context, but as they are added as part of the P2P IEs,
they need to be saved in the global P2P context.

Fix this by directing vendor specific IEs added to P2P_ASSOC_RESP
frame type to the P2P context.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
wpa_supplicant/ctrl_iface.c

index a32b718..9538c51 100644 (file)
@@ -7825,6 +7825,7 @@ wpas_ctrl_vendor_elem_iface(struct wpa_supplicant *wpa_s,
        case VENDOR_ELEM_P2P_INV_REQ:
        case VENDOR_ELEM_P2P_INV_RESP:
        case VENDOR_ELEM_P2P_ASSOC_REQ:
+       case VENDOR_ELEM_P2P_ASSOC_RESP:
                return wpa_s->parent;
 #endif /* CONFIG_P2P */
        default: