From c880e90314f3b7a8c58c1ea19f86974a16375ad3 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 23 May 2006 12:48:37 +0000 Subject: Fix dialup/lan access service record mess --- dund/sdp.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'dund/sdp.c') diff --git a/dund/sdp.c b/dund/sdp.c index f0ea08b5..ee011252 100644 --- a/dund/sdp.c +++ b/dund/sdp.c @@ -109,11 +109,19 @@ int dun_sdp_register(bdaddr_t *device, uint8_t channel, int type) svclass = sdp_list_append(NULL, &dun); sdp_set_service_classes(record, svclass); - if (type == LANACCESS || type == DIALUP) { + switch (type) { + case LANACCESS: sdp_uuid16_create(&profile[0].uuid, LAN_ACCESS_PROFILE_ID); profile[0].version = 0x0100; pfseq = sdp_list_append(NULL, &profile[0]); sdp_set_profile_descs(record, pfseq); + break; + case DIALUP: + sdp_uuid16_create(&profile[0].uuid, DIALUP_NET_PROFILE_ID); + profile[0].version = 0x0100; + pfseq = sdp_list_append(NULL, &profile[0]); + sdp_set_profile_descs(record, pfseq); + break; } switch (type) { -- cgit