]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: ath11k: replace ENOTSUPP with EOPNOTSUPP
authorKarthikeyan Periyasamy <quic_periyasa@quicinc.com>
Wed, 17 Jan 2024 08:04:30 +0000 (13:34 +0530)
committerKalle Valo <quic_kvalo@quicinc.com>
Thu, 18 Jan 2024 05:50:08 +0000 (07:50 +0200)
ENOTSUPP is not a standard error code, don't use it. Replace with
EOPNOTSUPP instead.

No functional changes, compile tested only.

Signed-off-by: Karthikeyan Periyasamy <quic_periyasa@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240117080431.2907471-3-quic_periyasa@quicinc.com
drivers/net/wireless/ath/ath11k/dp_tx.c
drivers/net/wireless/ath/ath11k/hal_rx.c

index c1072e66e3e8fd07f921466b014c271e08f5d3ba..272b1c35f98df2db0afbc9ff90b90796cfd289a9 100644 (file)
@@ -1,7 +1,7 @@
 // SPDX-License-Identifier: BSD-3-Clause-Clear
 /*
  * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
  */
 
 #include "core.h"
@@ -103,7 +103,7 @@ int ath11k_dp_tx(struct ath11k *ar, struct ath11k_vif *arvif,
 
        if (unlikely(!(info->flags & IEEE80211_TX_CTL_HW_80211_ENCAP) &&
                     !ieee80211_is_data(hdr->frame_control)))
-               return -ENOTSUPP;
+               return -EOPNOTSUPP;
 
        pool_id = skb_get_queue_mapping(skb) & (ATH11K_HW_MAX_QUEUES - 1);
 
@@ -1018,7 +1018,7 @@ int ath11k_dp_tx_htt_h2t_ver_req_msg(struct ath11k_base *ab)
        if (dp->htt_tgt_ver_major != HTT_TARGET_VERSION_MAJOR) {
                ath11k_err(ab, "unsupported htt major version %d supported version is %d\n",
                           dp->htt_tgt_ver_major, HTT_TARGET_VERSION_MAJOR);
-               return -ENOTSUPP;
+               return -EOPNOTSUPP;
        }
 
        return 0;
index e758ee8e17c90459e48c750ea09c46eabc7ee630..8f7dd43dc1bd8ee7e9df4096ec1771d806e6b5f8 100644 (file)
@@ -1,7 +1,7 @@
 // SPDX-License-Identifier: BSD-3-Clause-Clear
 /*
  * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
  */
 
 #include "debug.h"
@@ -246,7 +246,7 @@ int ath11k_hal_reo_cmd_send(struct ath11k_base *ab, struct hal_srng *srng,
        case HAL_REO_CMD_UNBLOCK_CACHE:
        case HAL_REO_CMD_FLUSH_TIMEOUT_LIST:
                ath11k_warn(ab, "Unsupported reo command %d\n", type);
-               ret = -ENOTSUPP;
+               ret = -EOPNOTSUPP;
                break;
        default:
                ath11k_warn(ab, "Unknown reo command %d\n", type);