|
@@ -923,15 +923,15 @@ static int __wlan_hdd_cfg80211_scan(struct wiphy *wiphy,
|
|
|
pHddCtx->last_scan_reject_session_id = curr_session_id;
|
|
|
pHddCtx->last_scan_reject_reason = curr_reason;
|
|
|
pHddCtx->last_scan_reject_timestamp =
|
|
|
- jiffies_to_msecs(jiffies);
|
|
|
+ jiffies_to_msecs(jiffies) +
|
|
|
+ SCAN_REJECT_THRESHOLD_TIME;
|
|
|
} else {
|
|
|
- hdd_debug("curr_session id %d curr_reason %d time delta %lu",
|
|
|
+ hdd_debug("curr_session id %d curr_reason %d threshold time has elapsed? %d",
|
|
|
curr_session_id, curr_reason,
|
|
|
- (jiffies_to_msecs(jiffies) -
|
|
|
- pHddCtx->last_scan_reject_timestamp));
|
|
|
- if ((jiffies_to_msecs(jiffies) -
|
|
|
- pHddCtx->last_scan_reject_timestamp) >=
|
|
|
- SCAN_REJECT_THRESHOLD_TIME) {
|
|
|
+ qdf_system_time_after(jiffies_to_msecs(jiffies),
|
|
|
+ pHddCtx->last_scan_reject_timestamp));
|
|
|
+ if (qdf_system_time_after(jiffies_to_msecs(jiffies),
|
|
|
+ pHddCtx->last_scan_reject_timestamp)) {
|
|
|
pHddCtx->last_scan_reject_timestamp = 0;
|
|
|
if (pHddCtx->config->enable_fatal_event) {
|
|
|
cds_flush_logs(WLAN_LOG_TYPE_FATAL,
|