diff options
| -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", |
