summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Mikuda <simon.mikuda@streamunlimited.com>2023-03-28 07:26:18 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-03-28 13:44:35 -0700
commitcedace72c3f71d356fc1895787569c7412ee94b2 (patch)
treebacf804908dceb2e7b03070a8a7566d7bdc2bbd6 /tools
parent011e562a98a8b8c278391bc64d9dc2c8df0a5585 (diff)
downloadbluez-cedace72c3f71d356fc1895787569c7412ee94b2.tar.gz
l2test: Enable hex input for PSM
Diffstat (limited to 'tools')
-rw-r--r--tools/l2test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/l2test.c b/tools/l2test.c
index 5aae4b687..232247b78 100644
--- a/tools/l2test.c
+++ b/tools/l2test.c
@@ -1416,7 +1416,7 @@ int main(int argc, char *argv[])
break;
case 'P':
- psm = atoi(optarg);
+ psm = strtoul(optarg, NULL, 0);
break;
case 'I':