android/socket: Add PBAP supported features bits
PATCH 1/1 android/socket: Add PBAP supported features bits
Add PBAP supported features in sdp record.
--- android/socket.c | 6 ++++++ 1 file changed, 6 insertions(+)
android/socket.c +6 -0
@@ -58,6 +58,8 @@/* Hardcoded MAP stuff needed for MAS SMS Instance.*/ #define DEFAULT_MAS_INSTANCE 0x00 +#define DEFAULT_PBAP_SUPPORTED_FEATURES 0x00000003 +#define MAP_MSG_TYPE_SMS_GSM 0x02#define MAP_MSG_TYPE_SMS_CDMA 0x04#define DEFAULT_MAS_MSG_TYPE (MAP_MSG_TYPE_SMS_GSM | MAP_MSG_TYPE_SMS_CDMA)
@@ -287,6 +289,7 @@ static sdp_record_t *create_pbap_record(uint8_t chan, const char *svc_name)sdp_list_t *seq;sdp_profile_desc_t profile[1 ];uint8_t formats =0x01 ; +uint8_t supft =DEFAULT_PBAP_SUPPORTED_FEATURES ;sdp_record_t *record;uuid_t uuid;
@@ -304,6 +307,9 @@ static sdp_record_t *create_pbap_record(uint8_t chan, const char *svc_name)sdp_attr_add_new (record,SDP_ATTR_SUPPORTED_REPOSITORIES ,SDP_UINT8 , &formats); +sdp_attr_add_new (record,SDP_ATTR_PBAP_SUPPORTED_FEATURES ,SDP_UINT32 , + &supft); +sdp_list_free (seq,NULL );return record;
Signature · 1 line
1.9.1
PATCH 1/1 android/socket: Add MAP supported features bits
Add MAP supported features in sdp record.
--- android/socket.c | 5 +++++ 1 file changed, 5 insertions(+)
android/socket.c +5 -0
@@ -58,6 +58,7 @@/* Hardcoded MAP stuff needed for MAS SMS Instance.*/ #define DEFAULT_MAS_INSTANCE 0x00 +#define DEFAULT_MAP_SUPPORTED_FEATURES 0x0000001f#define DEFAULT_PBAP_SUPPORTED_FEATURES 0x00000003#define MAP_MSG_TYPE_SMS_GSM 0x02
@@ -321,6 +322,7 @@ static sdp_record_t *create_mas_record(uint8_t chan, const char *svc_name)sdp_profile_desc_t profile[1 ];uint8_t minst =DEFAULT_MAS_INSTANCE ;uint8_t mtype =DEFAULT_MAS_MSG_TYPE ; +uint8_t supft =DEFAULT_MAP_SUPPORTED_FEATURES ;sdp_record_t *record;uuid_t uuid;
@@ -339,6 +341,9 @@ static sdp_record_t *create_mas_record(uint8_t chan, const char *svc_name)sdp_attr_add_new (record,SDP_ATTR_SUPPORTED_MESSAGE_TYPES ,SDP_UINT8 , &mtype); +sdp_attr_add_new (record,SDP_ATTR_MAP_SUPPORTED_FEATURES ,SDP_UINT32 , + &supft); +sdp_list_free (seq,NULL );return record;
Signature · 1 line
1.9.1
Hi Gowtham,
Quoted 1 line · On Tuesday 09 of December 2014 18:21:27 Gowtham Anandha Babu wrote:
Add PBAP supported features in sdp record.
Isn't that a 1.2 feature? (AOSP supports only 1.1).
Same goes with MAP.
Quoted 35 lines
--- android/socket.c | 6 ++++++ 1 file changed, 6 insertions(+)android/socket.c +6
-0@@ -58,6 +58,8 @@/* Hardcoded MAP stuff needed for MAS SMS Instance.*/ #define DEFAULT_MAS_INSTANCE 0x00 +#define DEFAULT_PBAP_SUPPORTED_FEATURES 0x00000003 +#define MAP_MSG_TYPE_SMS_GSM 0x02#define MAP_MSG_TYPE_SMS_CDMA 0x04#define DEFAULT_MAS_MSG_TYPE (MAP_MSG_TYPE_SMS_GSM | MAP_MSG_TYPE_SMS_CDMA)@@ -287,6 +289,7 @@ static sdp_record_t *create_pbap_record(uint8_t chan, const char *svc_name) sdp_list_t *seq;sdp_profile_desc_t profile[1 ];uint8_t formats =0x01 ; +uint8_t supft =DEFAULT_PBAP_SUPPORTED_FEATURES ;sdp_record_t *record;uuid_t uuid;@@ -304,6 +307,9 @@ static sdp_record_t *create_pbap_record(uint8_t chan, const char *svc_name) sdp_attr_add_new(record, SDP_ATTR_SUPPORTED_REPOSITORIES, SDP_UINT8, &formats); + sdp_attr_add_new(record, SDP_ATTR_PBAP_SUPPORTED_FEATURES, SDP_UINT32, + &supft); + sdp_list_free(seq, NULL); return record;
Signature · 2 lines
BR Szymon Janc
Hi Szymon,
Quoted 8 lines
-----Original Message-----
From: Szymon Janc [mailto:[email protected]]
Sent: Tuesday, December 09, 2014 6:54 PM
To: Gowtham Anandha Babu
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH ] android/socket: Add PBAP supported features bits
Quoted 6 lines
Hi Gowtham,
Quoted 1 line · On Tuesday 09 of December 2014 18:21:27 Gowtham Anandha Babu wrote:
Add PBAP supported features in sdp record.
Isn't that a 1.2 feature? (AOSP supports only 1.1).
Yes, this one is 1.2 feature. Then, I have to wait till 1.2 release. Btw, Right now in android,
Server (PBAP-PSE and MAP-MAS) records are getting added. What happened to client(PBAP-PCE and MAP-MNS) records? Will it be added only after implementing them?
Am I right?
Quoted 39 lines
Same goes with MAP.
Quoted 9 lines
--- android/socket.c | 6 ++++++ 1 file changed, 6 insertions(+)android/socket.c index renamed from android/socket.c +0
-02b836e9..f2cfd07 100644
android/socket.c line 65
Quoted 8 lines
android/socket.c +2
-0@@ -58,6 +58,8 @@/* Hardcoded MAP stuff needed for MAS SMS Instance.*/ #define DEFAULT_MAS_INSTANCE 0x00 +#define DEFAULT_PBAP_SUPPORTED_FEATURES 0x00000003 +#define MAP_MSG_TYPE_SMS_GSM 0x02#define MAP_MSG_TYPE_SMS_CDMA 0x04#define DEFAULT_MAS_MSG_TYPE (MAP_MSG_TYPE_SMS_GSM |
MAP_MSG_TYPE_SMS_CDMA)android/socket.c static sdp_record_t *create_pbap_record(uint8_t · line 310
Quoted 13 lines
android/socket.c +2
-0@@ -287,6 +289,7 @@ static sdp_record_t *create_pbap_record(uint8_t chan, const char *svc_name) sdp_list_t *seq;sdp_profile_desc_t profile[1 ];uint8_t formats =0x01 ; +uint8_t supft =DEFAULT_PBAP_SUPPORTED_FEATURES ;sdp_record_t *record;uuid_t uuid;@@ -304,6 +307,9 @@ static sdp_record_t *create_pbap_record(uint8_t chan, const char *svc_name) sdp_attr_add_new(record,SDP_ATTR_SUPPORTED_REPOSITORIES ,SDP_UINT8 , &formats); + sdp_attr_add_new(record,
SDP_ATTR_PBAP_SUPPORTED_FEATURES,SDP_UINT32,Quoted 4 lines
android/socket.c +2
-0+ &supft); +sdp_list_free (seq,NULL );
Quoted 5 lines
android/socket.c static sdp_record_t *create_pbap_record(uint8_t chan, const char *svc_name) · line 315
Quoted 1 line
android/socket.c +0
-0return record;--
BR
Szymon Janc
Regards,
Gowtham Anandha Babu
Luiz Augusto von Dentz
maintainerRe: [PATCH ] android/socket: Add MAP supported features bits
In reply to Gowtham Anandha BabuHi Gowtham,
Quoted 36 lines · Gowtham Anandha Babu
Add MAP supported features in sdp record.
--- android/socket.c | 5 +++++ 1 file changed, 5 insertions(+)android/socket.c +5
-1@@ -58,6 +58,7 @@/* Hardcoded MAP stuff needed for MAS SMS Instance.*/ #define DEFAULT_MAS_INSTANCE 0x00 +#define DEFAULT_MAP_SUPPORTED_FEATURES 0x0000001f#define DEFAULT_PBAP_SUPPORTED_FEATURES 0x00000003#define MAP_MSG_TYPE_SMS_GSM 0x02@@ -321,6 +322,7 @@ static sdp_record_t *create_mas_record(uint8_t chan, const char *svc_name)sdp_profile_desc_t profile[1 ];uint8_t minst =DEFAULT_MAS_INSTANCE ;uint8_t mtype =DEFAULT_MAS_MSG_TYPE ; +uint8_t supft =DEFAULT_MAP_SUPPORTED_FEATURES ;sdp_record_t *record;uuid_t uuid;@@ -339,6 +341,9 @@ static sdp_record_t *create_mas_record(uint8_t chan, const char *svc_name)sdp_attr_add_new (record,SDP_ATTR_SUPPORTED_MESSAGE_TYPES ,SDP_UINT8 , &mtype); +sdp_attr_add_new (record,SDP_ATTR_MAP_SUPPORTED_FEATURES ,SDP_UINT32 , + &supft); +sdp_list_free (seq,NULL );return record; --
Quoted 1 line
1.9.1
I recall supported features being introduced in 1.2, in that case it is probably not required to add it to the record since Android only support 1.1.
Signature · 1 line
Luiz Augusto von Dentz
RE: [PATCH ] android/socket: Add MAP supported features bits
Hi Luiz,
Quoted 53 lines
-----Original Message-----
From: [email protected] [mailto:linux-bluetooth- [email protected]] On Behalf Of Luiz Augusto von Dentz
Sent: Wednesday, December 10, 2014 12:58 PM
To: Gowtham Anandha Babu
Cc: [email protected]; Dmitry Kasatkin; Bharat Panda; [email protected]
Subject: Re: [PATCH ] android/socket: Add MAP supported features bitsHi Gowtham,
android/socket.c static sdp_record_t *create_mas_record(uint8_t
Quoted 18 lines · Gowtham Anandha Babu
Add MAP supported features in sdp record.
--- android/socket.c | 5 +++++ 1 file changed, 5 insertions(+)android/socket.c index renamed from android/socket.c +0
-0f2cfd07..d89c8c2 100644
android/socket.c +1
-0@@ -58,6 +58,7 @@/* Hardcoded MAP stuff needed for MAS SMS Instance.*/ #define DEFAULT_MAS_INSTANCE 0x00 +#define DEFAULT_MAP_SUPPORTED_FEATURES 0x0000001f#define DEFAULT_PBAP_SUPPORTED_FEATURES 0x00000003#define MAP_MSG_TYPE_SMS_GSM 0x02@@ -321,6 +322,7 @@ static sdp_record_t *create_mas_record(uint8_tchan, const char
*svc_name)android/socket.c static sdp_record_t *create_mas_record(uint8_t
Quoted 8 lines
android/socket.c +1
-0sdp_profile_desc_t profile[1 ];uint8_t minst =DEFAULT_MAS_INSTANCE ;uint8_t mtype =DEFAULT_MAS_MSG_TYPE ; +uint8_t supft =DEFAULT_MAP_SUPPORTED_FEATURES ;sdp_record_t *record;uuid_t uuid;@@ -339,6 +341,9 @@ static sdp_record_t *create_mas_record(uint8_tchan, const char
*svc_name)android/socket.c static sdp_record_t *create_mas_record(uint8_t · line 341
Quoted 1 line
android/socket.c +0
-0sdp_attr_add_new(record, SDP_ATTR_SUPPORTED_MESSAGE_TYPES,
SDP_UINT8,android/socket.c static sdp_record_t *create_mas_record(uint8_t chan, const char *svc_name)
Quoted 4 lines
android/socket.c +1
-0&mtype); + sdp_attr_add_new(record, SDP_ATTR_MAP_SUPPORTED_FEATURES,
SDP_UINT32,Quoted 5 lines
android/socket.c +3
-0+ + &supft); +sdp_list_free (seq,NULL );
Quoted 7 lines
Quoted 3 lines
return record;--
1.9.1I recall supported features being introduced in 1.2, in that case it is probably not required to add it to the record since Android only support 1.1.
Yes, this one is 1.2 feature. Then, I have to wait till 1.2 implementation. Btw, Right now in android,
Server (PBAP-PSE and MAP-MAS) records are added to SDP.
What happened to client(PBAP-PCE and MAP-MNS) records?
Will it be added only after implementing them?
Quoted 7 lines
--
Luiz Augusto von Dentz
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Regards,
Gowtham Anandha Babu
Luiz Augusto von Dentz
maintainerRe: [PATCH ] android/socket: Add MAP supported features bits
Hi Gowtham,
Quoted 63 lines · Gowtham Anandha Babu
Hi Luiz,
Quoted 53 lines
-----Original Message-----
From: [email protected] [mailto:linux-bluetooth- [email protected]] On Behalf Of Luiz Augusto von Dentz
Sent: Wednesday, December 10, 2014 12:58 PM
To: Gowtham Anandha Babu
Cc: [email protected]; Dmitry Kasatkin; Bharat Panda; [email protected]
Subject: Re: [PATCH ] android/socket: Add MAP supported features bitsHi Gowtham,
android/socket.c static sdp_record_t *create_mas_record(uint8_t
Quoted 18 lines · Gowtham Anandha Babu
Add MAP supported features in sdp record.
--- android/socket.c | 5 +++++ 1 file changed, 5 insertions(+)android/socket.c index renamed from android/socket.c +0
-0f2cfd07..d89c8c2 100644
android/socket.c +1
-0@@ -58,6 +58,7 @@/* Hardcoded MAP stuff needed for MAS SMS Instance.*/ #define DEFAULT_MAS_INSTANCE 0x00 +#define DEFAULT_MAP_SUPPORTED_FEATURES 0x0000001f#define DEFAULT_PBAP_SUPPORTED_FEATURES 0x00000003#define MAP_MSG_TYPE_SMS_GSM 0x02@@ -321,6 +322,7 @@ static sdp_record_t *create_mas_record(uint8_tchan, const char
*svc_name)android/socket.c static sdp_record_t *create_mas_record(uint8_t
Quoted 8 lines
android/socket.c +1
-0sdp_profile_desc_t profile[1 ];uint8_t minst =DEFAULT_MAS_INSTANCE ;uint8_t mtype =DEFAULT_MAS_MSG_TYPE ; +uint8_t supft =DEFAULT_MAP_SUPPORTED_FEATURES ;sdp_record_t *record;uuid_t uuid;@@ -339,6 +341,9 @@ static sdp_record_t *create_mas_record(uint8_tchan, const char
*svc_name)android/socket.c static sdp_record_t *create_mas_record(uint8_t · line 341
Quoted 1 line
android/socket.c +0
-0sdp_attr_add_new(record, SDP_ATTR_SUPPORTED_MESSAGE_TYPES,
SDP_UINT8,android/socket.c static sdp_record_t *create_mas_record(uint8_t chan, const char *svc_name)
Quoted 4 lines
android/socket.c +1
-0&mtype); + sdp_attr_add_new(record, SDP_ATTR_MAP_SUPPORTED_FEATURES,
SDP_UINT32,Quoted 5 lines
android/socket.c +3
-0+ + &supft); +sdp_list_free (seq,NULL );Quoted 7 lines
Quoted 3 lines
return record;--
1.9.1I recall supported features being introduced in 1.2, in that case it is probably not required to add it to the record since Android only support 1.1.
Quoted 5 lines
Yes, this one is 1.2 feature. Then, I have to wait till 1.2 implementation. Btw, Right now in android,
Server (PBAP-PSE and MAP-MAS) records are added to SDP.
What happened to client(PBAP-PCE and MAP-MNS) records?
Will it be added only after implementing them?
They don't seem to be supported by Android HAL, so we have to wait Google enable them in the upper layer.
Signature · 1 line
Luiz Augusto von Dentz
Hi Gowtham,
Quoted 15 lines · On Tuesday 09 of December 2014 19:16:58 Gowtham Anandha Babu wrote:
Hi Szymon,
Quoted 13 lines
-----Original Message-----
From: Szymon Janc [mailto:[email protected]]
Sent: Tuesday, December 09, 2014 6:54 PM
To: Gowtham Anandha Babu
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH ] android/socket: Add PBAP supported features bitsHi Gowtham,
Quoted 1 line · On Tuesday 09 of December 2014 18:21:27 Gowtham Anandha Babu wrote:
Add PBAP supported features in sdp record.
Quoted 8 lines
Quoted 1 line
Isn't that a 1.2 feature? (AOSP supports only 1.1).
Yes, this one is 1.2 feature. Then, I have to wait till 1.2 release. Btw, Right now in android,
Server (PBAP-PSE and MAP-MAS) records are getting added. What happened to client(PBAP-PCE and MAP-MNS) records? Will it be added only after implementing them?
Am I right?
I'm not sure if we really need PBAP client SDP record. Since there is no listening socket we wouldn't know when/if we should add it.
For MAP-MNS, that depends on what application implementing MAP client would support. Since AOSP doesn't provide such application and HAL and java API indicates no support for it I'd leave it until this gets clarified.
Signature · 2 lines
BR Szymon Janc
RE: [PATCH ] android/socket: Add MAP supported features bits
In reply to Luiz Augusto von DentzHi Luiz,
Quoted 79 lines
-----Original Message-----
From: [email protected] [mailto:linux-bluetooth- [email protected]] On Behalf Of Luiz Augusto von Dentz
Sent: Wednesday, December 10, 2014 2:13 PM
To: Gowtham Anandha Babu
Cc: [email protected]; Dmitry Kasatkin; Bharat Panda; [email protected]
Subject: Re: [PATCH ] android/socket: Add MAP supported features bitsHi Gowtham,
Quoted 44 lines · Gowtham Anandha Babu
Hi Luiz,
Quoted 42 lines
-----Original Message-----
From: [email protected] [mailto:linux-bluetooth- [email protected]] On Behalf Of Luiz Augusto von Dentz
Sent: Wednesday, December 10, 2014 12:58 PM
To: Gowtham Anandha Babu
Cc: [email protected]; Dmitry Kasatkin; Bharat Panda; [email protected]
Subject: Re: [PATCH ] android/socket: Add MAP supported features bitsHi Gowtham,
android/socket.c static sdp_record_t *create_mas_record(uint8_t
Quoted 18 lines · Gowtham Anandha Babu
Add MAP supported features in sdp record.
--- android/socket.c | 5 +++++ 1 file changed, 5 insertions(+)android/socket.c index renamed from android/socket.c +0
-0f2cfd07..d89c8c2 100644
android/socket.c +1
-0@@ -58,6 +58,7 @@/* Hardcoded MAP stuff needed for MAS SMS Instance.*/ #define DEFAULT_MAS_INSTANCE 0x00 +#define DEFAULT_MAP_SUPPORTED_FEATURES 0x0000001f#define DEFAULT_PBAP_SUPPORTED_FEATURES 0x00000003#define MAP_MSG_TYPE_SMS_GSM 0x02@@ -321,6 +322,7 @@ static sdp_record_t *create_mas_record(uint8_tchan, const char
*svc_name)android/socket.c static sdp_record_t *create_mas_record(uint8_t
Quoted 8 lines
android/socket.c +1
-0sdp_profile_desc_t profile[1 ];uint8_t minst =DEFAULT_MAS_INSTANCE ;uint8_t mtype =DEFAULT_MAS_MSG_TYPE ; +uint8_t supft =DEFAULT_MAP_SUPPORTED_FEATURES ;sdp_record_t *record;uuid_t uuid;@@ -339,6 +341,9 @@ static sdp_record_t *create_mas_record(uint8_tchan, const char
*svc_name)Quoted 1 line
android/socket.c +0
-0sdp_attr_add_new(record,
SDP_ATTR_SUPPORTED_MESSAGE_TYPES,Quoted 5 lines
Quoted 5 lines
SDP_UINT8,Quoted 4 lines
android/socket.c +1
-0&mtype); + sdp_attr_add_new(record,
SDP_ATTR_MAP_SUPPORTED_FEATURES,Quoted 6 lines
Quoted 6 lines
SDP_UINT32,Quoted 5 lines
android/socket.c +3
-0+ + &supft); +sdp_list_free (seq,NULL );Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
return record;--
1.9.1I recall supported features being introduced in 1.2, in that case it is probably not required to add it to the record since Android only support
1.1.
Quoted 2 lines
Quoted 1 line
Quoted 10 lines
Quoted 5 lines
Yes, this one is 1.2 feature. Then, I have to wait till 1.2 implementation. Btw, Right now in android,
Server (PBAP-PSE and MAP-MAS) records are added to SDP.
What happened to client(PBAP-PCE and MAP-MNS) records?
Will it be added only after implementing them?They don't seem to be supported by Android HAL, so we have to wait Google enable them in the upper layer.
Okay. Thanks for you information.
Quoted 6 lines
--
Luiz Augusto von Dentz
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Regards,
Gowtham Anandha Babu
Hi Szymon,
Quoted 38 lines
-----Original Message-----
From: [email protected] [mailto:linux-bluetooth- [email protected]] On Behalf Of Szymon Janc
Sent: Wednesday, December 10, 2014 2:15 PM
To: Gowtham Anandha Babu
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH ] android/socket: Add PBAP supported features bitsHi Gowtham,
Quoted 14 lines · On Tuesday 09 of December 2014 19:16:58 Gowtham Anandha Babu wrote:
Hi Szymon,
Quoted 12 lines
-----Original Message-----
From: Szymon Janc [mailto:[email protected]]
Sent: Tuesday, December 09, 2014 6:54 PM
To: Gowtham Anandha Babu
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH ] android/socket: Add PBAP supported features bitsHi Gowtham,
On Tuesday 09 of December 2014 18:21:27 Gowtham Anandha Babu
Quoted 10 lines · wrote:
Quoted 3 lines
Quoted 1 line
Add PBAP supported features in sdp record.
Isn't that a 1.2 feature? (AOSP supports only 1.1).
Yes, this one is 1.2 feature. Then, I have to wait till 1.2 release. Btw, Right now in android,
Server (PBAP-PSE and MAP-MAS) records are getting added. What happened to client(PBAP-PCE and MAP-MNS) records? Will it be added only after implementing them?
Am I right?
Quoted 6 lines
I'm not sure if we really need PBAP client SDP record. Since there is no listening socket we wouldn't know when/if we should add it.
For MAP-MNS, that depends on what application implementing MAP client would support. Since AOSP doesn't provide such application and HAL and java API indicates no support for it I'd leave it until this gets
clarified.
Quoted 1 line
I am new to Android and exploring it, anyway thanks for your information.
Quoted 5 lines
--
BR
Szymon Janc
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth"
in
Quoted 2 lines
the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Regards,
Gowtham Anandha Babu