Procházet zdrojové kódy

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 před 7 roky
rodič
revize
3030f5987c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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) {