diff options
| author | Rajeev Kumar <rajekuma@qca.qualcomm.com> | 2015-05-12 12:54:02 -0700 |
|---|---|---|
| committer | AnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com> | 2015-05-14 18:04:52 +0530 |
| commit | 1e1a0962fc2ed2cee0c116459d7fc584ca3053d3 (patch) | |
| tree | 3fd00d1c110b5a6841c5b09fb4bb4cf4da9b2790 | |
| parent | 8d37547159884002c2dd746680861a38cc9f1e2d (diff) | |
qcacld: Add sanity check for keep alive period
Add sanity check for keep alive period in HDD to avoid
target assert
Change-Id: I4d369bb45482fb7faa311a1b593ab71ae657a874
CRs-Fixed: 836818
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_wext.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_wext.c b/CORE/HDD/src/wlan_hdd_wext.c index 0e93fe5a4d51..5d56e608bc2b 100644 --- a/CORE/HDD/src/wlan_hdd_wext.c +++ b/CORE/HDD/src/wlan_hdd_wext.c @@ -8387,6 +8387,13 @@ static int __iw_set_keepalive_params(struct net_device *dev, return 0; } + if (pRequest->timePeriod > WNI_CFG_INFRA_STA_KEEP_ALIVE_PERIOD_STAMAX) { + hddLog(LOGE, FL("Value of timePeriod exceed Max limit %d"), + pRequest->timePeriod); + return -EINVAL; + } + + /* Debug display of request components. */ hddLog(VOS_TRACE_LEVEL_INFO, "%s: Set Keep Alive Request : TimePeriod %d size %zu", |
