P2P NFC: Pass OOB Dev Password through P2P parser

This will be needed for processing the NFC connection handover messages
for P2P.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2013-02-15 17:07:28 +02:00 committed by Jouni Malinen
parent ab9e34426f
commit fca9958607
2 changed files with 5 additions and 0 deletions

View File

@ -533,6 +533,8 @@ struct p2p_message {
size_t model_number_len;
const u8 *serial_number;
size_t serial_number_len;
const u8 *oob_dev_password;
size_t oob_dev_password_len;
/* DS Parameter Set IE */
const u8 *ds_params;

View File

@ -380,6 +380,9 @@ static int p2p_parse_wps_ie(const struct wpabuf *buf, struct p2p_message *msg)
msg->serial_number = attr.serial_number;
msg->serial_number_len = attr.serial_number_len;
msg->oob_dev_password = attr.oob_dev_password;
msg->oob_dev_password_len = attr.oob_dev_password_len;
return 0;
}