|
@@ -925,14 +925,19 @@ static int __wlan_hdd_cfg80211_scan(struct wiphy *wiphy,
|
|
|
pHddCtx->last_scan_reject_timestamp =
|
|
|
jiffies_to_msecs(jiffies) +
|
|
|
SCAN_REJECT_THRESHOLD_TIME;
|
|
|
+ pHddCtx->scan_reject_cnt = 0;
|
|
|
} else {
|
|
|
- hdd_debug("curr_session id %d curr_reason %d threshold time has elapsed? %d",
|
|
|
- curr_session_id, curr_reason,
|
|
|
+ pHddCtx->scan_reject_cnt++;
|
|
|
+ hdd_debug("curr_session id %d curr_reason %d count %d threshold time has elapsed? %d",
|
|
|
+ curr_session_id, curr_reason, pHddCtx->scan_reject_cnt,
|
|
|
qdf_system_time_after(jiffies_to_msecs(jiffies),
|
|
|
pHddCtx->last_scan_reject_timestamp));
|
|
|
- if (qdf_system_time_after(jiffies_to_msecs(jiffies),
|
|
|
+ if ((pHddCtx->scan_reject_cnt >=
|
|
|
+ SCAN_REJECT_THRESHOLD) &&
|
|
|
+ qdf_system_time_after(jiffies_to_msecs(jiffies),
|
|
|
pHddCtx->last_scan_reject_timestamp)) {
|
|
|
pHddCtx->last_scan_reject_timestamp = 0;
|
|
|
+ pHddCtx->scan_reject_cnt = 0;
|
|
|
if (pHddCtx->config->enable_fatal_event) {
|
|
|
cds_flush_logs(WLAN_LOG_TYPE_FATAL,
|
|
|
WLAN_LOG_INDICATOR_HOST_DRIVER,
|
|
@@ -954,6 +959,7 @@ static int __wlan_hdd_cfg80211_scan(struct wiphy *wiphy,
|
|
|
pHddCtx->last_scan_reject_timestamp = 0;
|
|
|
pHddCtx->last_scan_reject_session_id = 0xFF;
|
|
|
pHddCtx->last_scan_reject_reason = 0;
|
|
|
+ pHddCtx->scan_reject_cnt = 0;
|
|
|
|
|
|
/* Check whether SAP scan can be skipped or not */
|
|
|
if (pAdapter->device_mode == QDF_SAP_MODE &&
|