Преглед изворни кода

qcacld-3.0: Return EOPNOTSUPP if fw_mem_dump is not supported

wlan_hdd_cfg80211_get_fw_mem_dump() currently returns ENOTSUPP
if the feature is not supported by firmware. Return EOPNOTSUPP
instead of ENOTSUPP, which looks more appropriate.

Change-Id: I1ca2ebd3fa572ba3caae29ef9f1e396693378fb2
CRs-Fixed: 2088667
Srinivas Dasari пре 7 година
родитељ
комит
3030f5987c
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      core/hdd/src/wlan_hdd_memdump.c

+ 1 - 1
core/hdd/src/wlan_hdd_memdump.c

@@ -211,7 +211,7 @@ static int __wlan_hdd_cfg80211_get_fw_mem_dump(struct wiphy *wiphy,
 
 	if (!hdd_ctx->fw_mem_dump_enabled) {
 		hdd_notice("FW memory dump not supported by this FW");
-		return -ENOTSUPP;
+		return -EOPNOTSUPP;
 	}
 	qdf_ctx = cds_get_context(QDF_MODULE_ID_QDF_DEVICE);
 	if (!qdf_ctx) {