From: Andre Guedes Date: Wed, 26 Feb 2014 23:21:49 +0000 (-0300) Subject: Bluetooth: Connection parameters and auto connection X-Git-Tag: v3.15-rc1~113^2~159^2^2~37^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cef952ce760a1113207b277af65a6ea2644a1b4a;p=pandora-kernel.git Bluetooth: Connection parameters and auto connection This patch modifies hci_conn_params_add() and hci_conn_params_del() so they also add/delete pending LE connections according to the auto_ connect option. This way, background scan is automatically triggered/ untriggered when connection parameters are added/removed. For instance, when a new connection parameters with HCI_AUTO_CONN_ALWAYS option is added and we are not connected to the device, we add a pending LE connection for that device. Likewise, when the connection parameters are updated we add or delete a pending LE connection according to its new auto_connect option. Finally, when the connection parameter is deleted we also delete the pending LE connection (if any). Signed-off-by: Andre Guedes Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed