From: Johan Hedberg Date: Mon, 7 Jul 2014 11:40:22 +0000 (+0300) Subject: Bluetooth: Enable passive scanning whenever we're connectable X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~73^2~87^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b7be33e60c631b3080099baf14c43505fa8017d;p=pandora-kernel.git Bluetooth: Enable passive scanning whenever we're connectable Enabling passive scanning always when we're connectable aligns us with the BR/EDR page scanning. This is also consistent with the fact that the code dealing with passive scanning results will actively try to connect any direct advertising event when we're connectable. This patch implements the feature by adding the connectable condition to hci_update_background_scan() checks for starting scanning and by calling hci_update_background_scan() whenever the connectable state changes. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed