From 248697d555d0f106c883e202d4c9479c79dda759 Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Sirasanagandla Date: Wed, 30 Aug 2017 12:27:45 +0530 Subject: [PATCH] qcacld-3.0: Fix incorrect argument in SETROAMMODE IOCTL handler qcacld-2.0 to qcacld-3.0 propagation While processing SETROAMMODE IOCTL, invalid argument is passed to kstrtou8() due to which error is returned for valid command. To fix this, invoke kstrtou8 with base 10. Change-Id: I78b10b6c13338c3afa420792e2ddbc7c945a7fec CRs-Fixed: 2101398 --- core/hdd/src/wlan_hdd_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_ioctl.c b/core/hdd/src/wlan_hdd_ioctl.c index 87b278c8e7ee..759df225da1b 100644 --- a/core/hdd/src/wlan_hdd_ioctl.c +++ b/core/hdd/src/wlan_hdd_ioctl.c @@ -3154,7 +3154,7 @@ static int drv_cmd_set_roam_mode(hdd_adapter_t *adapter, value = value + SIZE_OF_SETROAMMODE + 1; /* Convert the value from ascii to integer */ - ret = kstrtou8(value, SIZE_OF_SETROAMMODE, &roamMode); + ret = kstrtou8(value, 10, &roamMode); if (ret < 0) { /* * If the input value is greater than max value of datatype,