Commit 49b88e5f authored by Karthikeyan Periyasamy's avatar Karthikeyan Periyasamy Committed by Kalle Valo

wifi: ath12k: replace ENOTSUPP with EOPNOTSUPP

ENOTSUPP is not a standard error code, don't use it. Replace with
EOPNOTSUPP instead.

No functional changes, compile tested only.
Signed-off-by: default avatarKarthikeyan Periyasamy <quic_periyasa@quicinc.com>
Acked-by: default avatarJeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: default avatarKalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240117080431.2907471-2-quic_periyasa@quicinc.com
parent 53a65445
// SPDX-License-Identifier: BSD-3-Clause-Clear // SPDX-License-Identifier: BSD-3-Clause-Clear
/* /*
* Copyright (c) 2018-2021 The Linux Foundation. All rights reserved. * Copyright (c) 2018-2021 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" #include "core.h"
...@@ -151,7 +151,7 @@ int ath12k_dp_tx(struct ath12k *ar, struct ath12k_vif *arvif, ...@@ -151,7 +151,7 @@ int ath12k_dp_tx(struct ath12k *ar, struct ath12k_vif *arvif,
if (!(info->flags & IEEE80211_TX_CTL_HW_80211_ENCAP) && if (!(info->flags & IEEE80211_TX_CTL_HW_80211_ENCAP) &&
!ieee80211_is_data(hdr->frame_control)) !ieee80211_is_data(hdr->frame_control))
return -ENOTSUPP; return -EOPNOTSUPP;
pool_id = skb_get_queue_mapping(skb) & (ATH12K_HW_MAX_QUEUES - 1); pool_id = skb_get_queue_mapping(skb) & (ATH12K_HW_MAX_QUEUES - 1);
...@@ -837,7 +837,7 @@ int ath12k_dp_tx_htt_h2t_ver_req_msg(struct ath12k_base *ab) ...@@ -837,7 +837,7 @@ int ath12k_dp_tx_htt_h2t_ver_req_msg(struct ath12k_base *ab)
if (dp->htt_tgt_ver_major != HTT_TARGET_VERSION_MAJOR) { if (dp->htt_tgt_ver_major != HTT_TARGET_VERSION_MAJOR) {
ath12k_err(ab, "unsupported htt major version %d supported version is %d\n", ath12k_err(ab, "unsupported htt major version %d supported version is %d\n",
dp->htt_tgt_ver_major, HTT_TARGET_VERSION_MAJOR); dp->htt_tgt_ver_major, HTT_TARGET_VERSION_MAJOR);
return -ENOTSUPP; return -EOPNOTSUPP;
} }
return 0; return 0;
......
// SPDX-License-Identifier: BSD-3-Clause-Clear // SPDX-License-Identifier: BSD-3-Clause-Clear
/* /*
* Copyright (c) 2018-2021 The Linux Foundation. All rights reserved. * Copyright (c) 2018-2021 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" #include "debug.h"
...@@ -247,7 +247,7 @@ int ath12k_hal_reo_cmd_send(struct ath12k_base *ab, struct hal_srng *srng, ...@@ -247,7 +247,7 @@ int ath12k_hal_reo_cmd_send(struct ath12k_base *ab, struct hal_srng *srng,
case HAL_REO_CMD_UNBLOCK_CACHE: case HAL_REO_CMD_UNBLOCK_CACHE:
case HAL_REO_CMD_FLUSH_TIMEOUT_LIST: case HAL_REO_CMD_FLUSH_TIMEOUT_LIST:
ath12k_warn(ab, "Unsupported reo command %d\n", type); ath12k_warn(ab, "Unsupported reo command %d\n", type);
ret = -ENOTSUPP; ret = -EOPNOTSUPP;
break; break;
default: default:
ath12k_warn(ab, "Unknown reo command %d\n", type); ath12k_warn(ab, "Unknown reo command %d\n", type);
......
...@@ -5055,7 +5055,7 @@ void ath12k_mac_drain_tx(struct ath12k *ar) ...@@ -5055,7 +5055,7 @@ void ath12k_mac_drain_tx(struct ath12k *ar)
static int ath12k_mac_config_mon_status_default(struct ath12k *ar, bool enable) static int ath12k_mac_config_mon_status_default(struct ath12k *ar, bool enable)
{ {
return -ENOTSUPP; return -EOPNOTSUPP;
/* TODO: Need to support new monitor mode */ /* TODO: Need to support new monitor mode */
} }
...@@ -5165,13 +5165,13 @@ static int ath12k_mac_start(struct ath12k *ar) ...@@ -5165,13 +5165,13 @@ static int ath12k_mac_start(struct ath12k *ar)
* such as rssi, rx_duration. * such as rssi, rx_duration.
*/ */
ret = ath12k_mac_config_mon_status_default(ar, true); ret = ath12k_mac_config_mon_status_default(ar, true);
if (ret && (ret != -ENOTSUPP)) { if (ret && (ret != -EOPNOTSUPP)) {
ath12k_err(ab, "failed to configure monitor status ring with default rx_filter: (%d)\n", ath12k_err(ab, "failed to configure monitor status ring with default rx_filter: (%d)\n",
ret); ret);
goto err; goto err;
} }
if (ret == -ENOTSUPP) if (ret == -EOPNOTSUPP)
ath12k_dbg(ab, ATH12K_DBG_MAC, ath12k_dbg(ab, ATH12K_DBG_MAC,
"monitor status config is not yet supported"); "monitor status config is not yet supported");
...@@ -5283,7 +5283,7 @@ static void ath12k_mac_stop(struct ath12k *ar) ...@@ -5283,7 +5283,7 @@ static void ath12k_mac_stop(struct ath12k *ar)
mutex_lock(&ar->conf_mutex); mutex_lock(&ar->conf_mutex);
ret = ath12k_mac_config_mon_status_default(ar, false); ret = ath12k_mac_config_mon_status_default(ar, false);
if (ret && (ret != -ENOTSUPP)) if (ret && (ret != -EOPNOTSUPP))
ath12k_err(ar->ab, "failed to clear rx_filter for monitor status ring: (%d)\n", ath12k_err(ar->ab, "failed to clear rx_filter for monitor status ring: (%d)\n",
ret); ret);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment