diff --git a/core/hdd/src/wlan_hdd_ioctl.c b/core/hdd/src/wlan_hdd_ioctl.c index 53afb626ddc2..1c8f70ac4738 100644 --- a/core/hdd/src/wlan_hdd_ioctl.c +++ b/core/hdd/src/wlan_hdd_ioctl.c @@ -1794,14 +1794,14 @@ static int hdd_set_app_type2_parser(hdd_adapter_t *adapter, memset(¶ms, 0, sizeof(tSirAppType2Params)); - ret = sscanf(arg, "%17s %16s %x %x %x %u %u %u %u %u %u %u %u %u %u", + ret = sscanf(arg, "%17s %16s %x %x %x %u %u %hu %hu %u %u %u %u %u %u", mac_addr, rc4_key, (unsigned int *)¶ms.ip_id, (unsigned int *)¶ms.ip_device_ip, (unsigned int *)¶ms.ip_server_ip, (unsigned int *)¶ms.tcp_seq, (unsigned int *)¶ms.tcp_ack_seq, - (unsigned int *)¶ms.tcp_src_port, - (unsigned int *)¶ms.tcp_dst_port, + (uint16_t *)¶ms.tcp_src_port, + (uint16_t *)¶ms.tcp_dst_port, (unsigned int *)¶ms.keepalive_init, (unsigned int *)¶ms.keepalive_min, (unsigned int *)¶ms.keepalive_max,