Re: [PATCH 2/2] Bluetooth: Add S4 configuration parameter set for CVSD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Fri, Sep 19, 2014, johan.hedberg@xxxxxxxxx wrote:
> The HFP 1.7 specification recommends a new S4 parameter set for CVSD SCO
> connections over BR/EDR Secure Connections based links. This patch adds
> this set to the sco_param_cvsd table and ensures that it is skipped for
> any link that's not using BR/EDR Secure Connections.
> 
> Signed-off-by: Johan Hedberg <johan.hedberg@xxxxxxxxx>
> ---
>  net/bluetooth/hci_conn.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
> index 2c3d11bbb4f7..2e955ea0d3ef 100644
> --- a/net/bluetooth/hci_conn.c
> +++ b/net/bluetooth/hci_conn.c
> @@ -40,6 +40,7 @@ struct sco_param {
>  };
>  
>  static const struct sco_param sco_param_cvsd[] = {
> +	{ EDR_ESCO_MASK & ~ESCO_2EV3, 0x000c,	0x02 }, /* S4 */
>  	{ EDR_ESCO_MASK & ~ESCO_2EV3, 0x000a,	0x01 }, /* S3 */
>  	{ EDR_ESCO_MASK & ~ESCO_2EV3, 0x0007,	0x01 }, /* S2 */
>  	{ EDR_ESCO_MASK | ESCO_EV3,   0x0007,	0x01 }, /* S1 */
> @@ -209,6 +210,10 @@ bool hci_setup_sync(struct hci_conn *conn, __u16 handle)
>  	case SCO_AIRMODE_CVSD:
>  		if (conn->attempt > ARRAY_SIZE(sco_param_cvsd))
>  			return false;
> +		/* Skip S4 for non-SC connections */
> +		if (conn->attempt == 1 && !test_bit(HCI_CONN_FIPS,
> +						    &conn->link->flags))
> +			conn->attempt++;

This SC-specific condition can probably be dropped since the HFP 1.7
spec mentions several different conditions for using S4:

"It is recommended to use the S4 or T2 settings when BR/EDR Secure
Connections is in use, when using complicated topologies, or when a
device wants to improve coexistence with other wireless technologies.
Note that devices qualified to earlier versions of this profile may
refuse the S4 setting, in which case the use of S3 is recommended."

So please ignore this patch as it is right now.

Johan
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux