Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Matlo committed Jun 26, 2015
1 parent ed73502 commit f13fbe5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/connectors/btds4.c
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ static int listen_accept_sdp(int channel, bdaddr_t * src)
*/
str2ba(states[i].ps4_bdaddr, &cmp);

if(!memcmp(&src, &cmp, sizeof(src)))
if(!bacmp(src, &cmp))
{
states[i].ps4_channels.sdp.id = channel;
l2cap_abs_get()->add_source(channel, i, read_ps4_sdp, process, close_ps4_sdp);
Expand Down Expand Up @@ -759,7 +759,7 @@ static int listen_accept_control(int channel, bdaddr_t * src)
*/
str2ba(states[i].ds4_bdaddr, &cmp);

if(!memcmp(src, &cmp, sizeof(*src)))
if(!bacmp(src, &cmp))
{
states[i].ds4_channels.control.id = channel;
if(states[i].ps4_channels.control.id >= 0 && !states[i].ps4_channels.control.pending)
Expand Down Expand Up @@ -791,7 +791,7 @@ static int listen_accept_interrupt(int channel, bdaddr_t * src)
*/
str2ba(states[i].ds4_bdaddr, &cmp);

if(!memcmp(src, &cmp, sizeof(*src)))
if(!bacmp(src, &cmp))
{
states[i].ds4_channels.interrupt.id = channel;
if(states[i].ps4_channels.interrupt.id >= 0 && !states[i].ps4_channels.interrupt.pending)
Expand Down

0 comments on commit f13fbe5

Please sign in to comment.