btmgmt: Add support to accept multiple PHY options
authorAnupam Roy <anupam.r@samsung.com>
Wed, 22 Aug 2018 14:42:55 +0000 (20:12 +0530)
committerhimanshu <h.himanshu@samsung.com>
Tue, 14 Jan 2020 08:53:35 +0000 (14:23 +0530)
commit6c60eced8be219f6990c84e89b6509a1325775c2
treed60aa350b2482fcba176a10b6b8e796f1bb3403e
parent96431ea85adfe6cb287087feffcc33d04cb96369
btmgmt: Add support to accept multiple PHY options

Before fix-
  [hci1]# phy 1MTX 1MRX 2MTX
  Too many arguments: 3 > 1

After Fix-
  [hci1]# phy 1MRX 1MTX 2MTX
  PHY Configuration successfully set

 btmon output -
 @ MGMT Command: Set PHY Configuration (0x0045) plen 4
         Selected PHYs: 0x0e00
           LE 1M TX
           LE 1M RX
           LE 2M TX
 < HCI Command: LE Set Default PHY (0x08|0x0031) plen 3
         All PHYs preference: 0x00
         TX PHYs preference: 0x03
           LE 1M
           LE 2M
         RX PHYs preference: 0x01
           LE 1M
 > HCI Event: Command Complete (0x0e) plen 4
        LE Set Default PHY (0x08|0x0031) ncmd 1
         Status: Success (0x00)
 @ MGMT Event: Command Complete (0x0001) plen 3
        Set PHY Configuration (0x0045) plen 0
         Status: Success (0x00)
 @ MGMT Event: PHY Configuration Changed (0x0026) plen 4
         Selected PHYs: 0x0e00
           LE 1M TX
           LE 1M RX
           LE 2M TX

Change-Id: I22e38e6d381b4c5aefc5a38314fd188874c7d83e
Signed-off-by: himanshu <h.himanshu@samsung.com>
tools/btmgmt.c