[PATCH 18/19] P2PS: add a wildcard with other advertised service info

Stepanov, Max Max.Stepanov
Thu Jun 18 05:33:25 PDT 2015


>From: Jouni Malinen [mailto:j at w1.fi]
>Sent: Thursday, June 18, 2015 14:01
>> @@ -573,6 +571,13 @@ void p2p_buf_add_service_instance(struct wpabuf
>*buf, struct p2p_data *p2p,
>>  	/* add advertised service info of matching services */
>>  	for (adv = adv_list; adv && total_len <= MAX_SVC_ADV_LEN;
>>  	     adv = adv->next) {
>
>I.e., this loop could replace the exact hash match with "if wildcard-was-
>included OR exact hash match".

The "wildcard" dummy entry is added first, then the loop adds all entries matching other hashes.
As you noticed "wildcard" is not a real wildcard here, but only a special query name.

Thanks,
Max



More information about the Hostap mailing list