소스 검색

qcacld-3.0: On scan stuck trigger SSR only if self recovery is enabled

SSR is triggered on scan stuck even if self recovery
is not enabled.

Fix is to trigger SSR in case of scan stuck if self
recovery is enabled.

Change-Id: I2b5d116a71bf479b80e72d33469e5862f98384bf
CRs-Fixed: 2012655
yeshwanth sriram guntuka 8 년 전
부모
커밋
f4f1bdcb93
1개의 변경된 파일9개의 추가작업 그리고 4개의 파일을 삭제
  1. 9 4
      core/hdd/src/wlan_hdd_scan.c

+ 9 - 4
core/hdd/src/wlan_hdd_scan.c

@@ -1615,12 +1615,17 @@ static int __wlan_hdd_cfg80211_scan(struct wiphy *wiphy,
 				pHddCtx->last_scan_reject_timestamp = 0;
 				if (pHddCtx->config->enable_fatal_event) {
 					cds_flush_logs(WLAN_LOG_TYPE_FATAL,
-					    WLAN_LOG_INDICATOR_HOST_DRIVER,
-					    WLAN_LOG_REASON_SCAN_NOT_ALLOWED,
-					    false, true);
-				} else {
+					   WLAN_LOG_INDICATOR_HOST_DRIVER,
+					   WLAN_LOG_REASON_SCAN_NOT_ALLOWED,
+					   false,
+					   pHddCtx->config->enableSelfRecovery);
+				} else if (pHddCtx->config->
+					   enableSelfRecovery) {
 					hdd_err("Triggering SSR due to scan stuck");
 					cds_trigger_recovery(false);
+				} else {
+					hdd_err("QDF_BUG due to scan stuck");
+					QDF_BUG(0);
 				}
 			}
 		}