From: Johan Hedberg Date: Tue, 8 Oct 2013 13:52:18 +0000 (+0200) Subject: Bluetooth: Fix changing advertising setting while LE is connected X-Git-Tag: v3.13-rc1~105^2~55^2^2~54^2~93 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f74ca9b8094b1b067a0b4069732065f2e1595c73;p=pandora-kernel.git Bluetooth: Fix changing advertising setting while LE is connected We only (re)enable advertising when LE is disconnected. Trying to enable advertising using mgmt_set_advertising while connected should simply change the flag but not do anything else (until the connection gets dropped). This patch fixes this by making an LE connection lookup to determine whether there are any connected devices or not. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed