From ea42719efacbbc595c8f8fa6761ae7c800b346cc Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Date: Mon, 10 Feb 2014 17:16:41 -0800 Subject: qcacld: Increasing hostapd driver command buffer size check In batch scan driver command string buffer length is coming as 4096 so increasing driver command string buffer size check in hostapd dev ioctl handler Change-Id: Ie31752ef2622cfdfc6566a34c0c1ec53936e455e CRs-Fixed: 613978 --- CORE/HDD/inc/wlan_hdd_hostapd.h | 2 +- CORE/HDD/src/wlan_hdd_hostapd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CORE/HDD/inc/wlan_hdd_hostapd.h b/CORE/HDD/inc/wlan_hdd_hostapd.h index 40d3cb984cdb..c3e855a0cdda 100644 --- a/CORE/HDD/inc/wlan_hdd_hostapd.h +++ b/CORE/HDD/inc/wlan_hdd_hostapd.h @@ -53,7 +53,7 @@ -------------------------------------------------------------------------*/ /* max length of command string in hostapd ioctl */ -#define HOSTAPD_IOCTL_COMMAND_STRLEN_MAX 2048 +#define HOSTAPD_IOCTL_COMMAND_STRLEN_MAX 4096 hdd_adapter_t* hdd_wlan_create_ap_dev( hdd_context_t *pHddCtx, tSirMacAddr macAddr, tANI_U8 *name); diff --git a/CORE/HDD/src/wlan_hdd_hostapd.c b/CORE/HDD/src/wlan_hdd_hostapd.c index 409c79ae704a..2f03453046f4 100644 --- a/CORE/HDD/src/wlan_hdd_hostapd.c +++ b/CORE/HDD/src/wlan_hdd_hostapd.c @@ -236,7 +236,7 @@ int hdd_hostapd_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) * To avoid addition overflow total_len should be * smaller than INT_MAX. */ VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_FATAL, - "%s: integer out of range\n", __func__); + "%s: integer out of range len %d", __func__, priv_data.total_len); ret = -EFAULT; goto exit; } -- cgit v1.2.3