summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRajeev Kumar <rajekuma@qca.qualcomm.com>2014-02-10 17:16:41 -0800
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-02-11 19:54:41 -0800
commitea42719efacbbc595c8f8fa6761ae7c800b346cc (patch)
treef7dd2c87a4915870c2848ca6692f007e0f5ef18d
parentff517cd8042b149b380f2f60e9927f07dc5c7c30 (diff)
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
-rw-r--r--CORE/HDD/inc/wlan_hdd_hostapd.h2
-rw-r--r--CORE/HDD/src/wlan_hdd_hostapd.c2
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;
}