소스 검색

qcacld-3.0: Add fw down check to validate context

Is firmware down check is added explicity in some api's and insome
northbound interfaces it is not added resulting in waiting for
firmware response even when the firmware is down.

Move firmware down check to validate context umbrella where
other driver states are validated.

Change-Id: I42a520f8a573825fde55a40dd03bb942f8a34b9c
CRs-Fixed: 2188938
Arunk Khandavalli 7 년 전
부모
커밋
2859fa1f8b
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      core/hdd/src/wlan_hdd_main.c

+ 6 - 0
core/hdd/src/wlan_hdd_main.c

@@ -844,6 +844,12 @@ int wlan_hdd_validate_context(struct hdd_context *hdd_ctx)
 		return -ENODEV;
 	}
 
+	if (cds_is_fw_down()) {
+		hdd_debug("%pS FW is down: 0x%x Ignore!!!",
+			(void *)_RET_IP_, cds_get_driver_state());
+		return -ENODEV;
+	}
+
 	return 0;
 }