diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2004-07-04 15:41:53 +0000 | 
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2004-07-04 15:41:53 +0000 | 
| commit | 50111729540851e01dd1471d4ce742ee44f437e7 (patch) | |
| tree | 9686d48b501bafc9c2968fdb548343d4d4fb24bc /hidd/sdp.c | |
| parent | f21d9765a64fc97cf269727b7762fd1d277fedec (diff) | |
Make use of new subclass field
Diffstat (limited to 'hidd/sdp.c')
| -rw-r--r-- | hidd/sdp.c | 8 | 
1 files changed, 3 insertions, 5 deletions
| @@ -49,7 +49,7 @@  #include "hidd.h" -int get_hid_device_info(bdaddr_t *src, bdaddr_t *dst, uint8_t *subclass, struct hidp_connadd_req *req) +int get_hid_device_info(bdaddr_t *src, bdaddr_t *dst, struct hidp_connadd_req *req)  {  	uint32_t range = 0x0000ffff;  	sdp_session_t *s; @@ -124,10 +124,8 @@ int get_hid_device_info(bdaddr_t *src, bdaddr_t *dst, uint8_t *subclass, struct  	pdlist = sdp_data_get(rec, 0x0201);  	req->parser = pdlist ? pdlist->val.uint16 : 0x0100; -	if (subclass) { -		pdlist = sdp_data_get(rec, 0x0202); -		*subclass = pdlist ? pdlist->val.uint8 : 0; -	} +	pdlist = sdp_data_get(rec, 0x0202); +	req->subclass = pdlist ? pdlist->val.uint8 : 0;  	pdlist = sdp_data_get(rec, 0x0203);  	req->country = pdlist ? pdlist->val.uint8 : 0; | 
