diff options
| -rw-r--r-- | CORE/MAC/src/pe/lim/limTimerUtils.c | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/CORE/MAC/src/pe/lim/limTimerUtils.c b/CORE/MAC/src/pe/lim/limTimerUtils.c index 2968a47bdf69..8953530cb524 100644 --- a/CORE/MAC/src/pe/lim/limTimerUtils.c +++ b/CORE/MAC/src/pe/lim/limTimerUtils.c @@ -1111,12 +1111,23 @@ limDeactivateAndChangeTimer(tpAniSirGlobal pMac, tANI_U32 timerId) limLog(pMac, LOGE, FL("BTC Active Scan Min Time is Not Set")); } } - if (tx_timer_change(&pMac->lim.limTimers.gLimPeriodicProbeReqTimer, - val, 0) != TX_SUCCESS) + if (val) { - // Could not change min channel timer. - // Log error - limLog(pMac, LOGP, FL("Unable to change periodic timer")); + if (tx_timer_change(&pMac->lim.limTimers.gLimPeriodicProbeReqTimer, + val, 0) != TX_SUCCESS) + { + // Could not change min channel timer. + // Log error + limLog(pMac, LOGP, FL("Unable to change periodic timer")); + } + } + else + { + limLog(pMac, LOGE, FL("Do not change gLimPeriodicProbeReqTimer values," + "value = %d minchannel time = %d" + "maxchannel time = %d"), val, + pMac->lim.gpLimMlmScanReq->minChannelTime, + pMac->lim.gpLimMlmScanReq->maxChannelTime); } break; |
