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,