Return-Path: From: Pali =?utf-8?q?Roh=C3=A1r?= To: Pavel Machek Subject: Re: [PATCH v2] Bluetooth: Add hci_h4p driver Date: Mon, 30 Dec 2013 14:54:47 +0100 Cc: Marcel Holtmann , =?utf-8?q?=D0=98=D0=B2=D0=B0=D0=B9=D0=BB=D0=BE?= =?utf-8?q?_=D0=94=D0=B8=D0=BC=D0=B8=D1=82=D1=80=D0=BE=D0=B2?= , "Gustavo F. Padovan" , Johan Hedberg , "linux-kernel" , "linux-bluetooth@vger.kernel.org development" , Ville Tervo , Sebastian Reichel References: <1379703710-5757-1-git-send-email-pali.rohar@gmail.com> <20131230121350.GB31236@amd.pavel.ucw.cz> In-Reply-To: <20131230121350.GB31236@amd.pavel.ucw.cz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1836865.HXRv868oZn"; protocol="application/pgp-signature"; micalg=pgp-sha1 Message-Id: <201312301454.51096@pali> List-ID: --nextPart1836865.HXRv868oZn Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Monday 30 December 2013 13:13:50 Pavel Machek wrote: > > > + > > > + if (not_valid) { > > > + dev_info(info->dev, "Valid bluetooth address not=20 found, > > > setting some random\n"); + /* When address is not valid, > > > use some random but Nokia MAC */ + memcpy(info- >bd_addr, > > > nokia_oui, 3); > > > + get_random_bytes(info->bd_addr + 3, 3); > > > + } > >=20 > > This behavior is extremely dangerous. I would rather have > > the device init or powering on the device fail instead of > > making up a number that might clash with a real Nokia > > device. >=20 > Perhaps people can donate bt addresses from their > no-longer-functional bluetooth devices and we can select from > such pool here? ;-). >=20 > Is there some experimental range we can allocate from? >=20 Wifi driver wl1251 (it is already in mainline) is doing same:=20 https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/driver= s/net/wireless/ti/wl1251/main.c#n1431 =2D-=20 Pali Roh=C3=A1r pali.rohar@gmail.com --nextPart1836865.HXRv868oZn Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAlLBeycACgkQi/DJPQPkQ1IlUACaAmpBaeylZYc0Zr3uMiTZOFQl gKcAnR/ETx1+3TLn8xM0o5z1v4aKRQJ6 =hJZ3 -----END PGP SIGNATURE----- --nextPart1836865.HXRv868oZn--