From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: why scan_disable during hciops_power_off From: Marcel Holtmann To: Johan Hedberg Cc: Pavan Savoy , Luiz Augusto von Dentz , linux-bluetooth@vger.kernel.org In-Reply-To: <20110125160830.GA14610@jh-x301> References: <20110125160830.GA14610@jh-x301> Content-Type: text/plain; charset="UTF-8" Date: Tue, 25 Jan 2011 17:11:42 +0100 Message-ID: <1295971902.1520.52.camel@aeonflux> Mime-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Johan, > > >> 1. are there controllers there which even after doing hci0 down, > > >> allows other devices to be scanned? > > >> for those what do hci0 down mean ? radio not switched off ? > > > > > > Good point, perhaps this is driver dependent, so we do it just be safe guard. > > > > I hope all devices and drivers out there consider the hci0 down as the > > radio OFF, > > I don't think there is a reason for it to be otherwise.... > > so why the safe-guard ? > > IIRC Marcel added this due to paranoia with the non-connectable GAP test > case with the BITE tester. The test kept failing even though the device > was in DOWN state. we also had the case where we considered non-connectable as off when the HCI devdown was not working properly. However this is a long time ago and has been fixed properly. So we might can remove this now. Regards Marcel