Re: [PATCH 7/8] Bluetooth: Fix checking for exact values of boolean mgmt parameters

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

 



Hi Johan,

On Wed, Jan 9, 2013 at 9:29 AM, Johan Hedberg <johan.hedberg@xxxxxxxxx> wrote:
> @@ -1219,6 +1247,10 @@ static int set_le(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
>                 return cmd_status(sk, hdev->id, MGMT_OP_SET_LE,
>                                   MGMT_STATUS_NOT_SUPPORTED);
>
> +       if (cp->val != 0x00 && cp->val != 0x01)
> +               return cmd_status(sk, hdev->id, MGMT_OP_SET_SSP,
> +                                 MGMT_STATUS_INVALID_PARAMS);
> +

I think you meant "MGMT_OP_SET_LE" here.

Can mgmt-tester be modified to check for this as well?

Regards,
-- 
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil
--
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