--- sock.c_orig 2004-07-08 16:39:29.000000000 +0200 +++ sock.c 2004-07-08 16:47:28.000000000 +0200 @@ -407,7 +407,7 @@ write_lock_bh(&rfcomm_sk_list.lock); for (channel = 1; channel < 31; channel++) - if (!__rfcomm_get_sock_by_addr(channel, src)) { + if (!__rfcomm_get_sock_by_channel(0, channel, src)) { rfcomm_pi(sk)->channel = channel; err = 0; break;