Skip to content

Commit 9685091

Browse files
aotcherejmberg-intel
authored andcommitted
wifi: iwlwifi: replace ENOTSUPP with EOPNOTSUPP
ENOTSUPP isn't a standard error code, don't use it. Replace with EOPNOTSUPP instead. Signed-off-by: Andrei Otcheretianski <[email protected]> Reviewed-by: Gregory Greenman <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://msgid.link/20231219215605.a69f4347b5f8.I88429d5de8251287ec0b58ff26a588465b9049a5@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent 6f3afc6 commit 9685091

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

drivers/net/wireless/intel/iwlwifi/iwl-trans.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,7 +1316,7 @@ iwl_trans_get_rxq_dma_data(struct iwl_trans *trans, int queue,
13161316
struct iwl_trans_rxq_dma_data *data)
13171317
{
13181318
if (WARN_ON_ONCE(!trans->ops->rxq_dma_data))
1319-
return -ENOTSUPP;
1319+
return -EOPNOTSUPP;
13201320

13211321
return trans->ops->rxq_dma_data(trans, queue, data);
13221322
}
@@ -1338,7 +1338,7 @@ iwl_trans_txq_alloc(struct iwl_trans *trans,
13381338
might_sleep();
13391339

13401340
if (WARN_ON_ONCE(!trans->ops->txq_alloc))
1341-
return -ENOTSUPP;
1341+
return -EOPNOTSUPP;
13421342

13431343
if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) {
13441344
IWL_ERR(trans, "%s bad state = %d\n", __func__, trans->state);
@@ -1404,7 +1404,7 @@ static inline int iwl_trans_wait_tx_queues_empty(struct iwl_trans *trans,
14041404
u32 txqs)
14051405
{
14061406
if (WARN_ON_ONCE(!trans->ops->wait_tx_queues_empty))
1407-
return -ENOTSUPP;
1407+
return -EOPNOTSUPP;
14081408

14091409
/* No need to wait if the firmware is not alive */
14101410
if (trans->state != IWL_TRANS_FW_ALIVE) {
@@ -1418,7 +1418,7 @@ static inline int iwl_trans_wait_tx_queues_empty(struct iwl_trans *trans,
14181418
static inline int iwl_trans_wait_txq_empty(struct iwl_trans *trans, int queue)
14191419
{
14201420
if (WARN_ON_ONCE(!trans->ops->wait_txq_empty))
1421-
return -ENOTSUPP;
1421+
return -EOPNOTSUPP;
14221422

14231423
if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) {
14241424
IWL_ERR(trans, "%s bad state = %d\n", __func__, trans->state);

drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,7 @@ static ssize_t iwl_dbgfs_inject_packet_write(struct iwl_mvm *mvm,
15211521

15221522
/* supporting only MQ RX */
15231523
if (!mvm->trans->trans_cfg->mq_rx_supported)
1524-
return -ENOTSUPP;
1524+
return -EOPNOTSUPP;
15251525

15261526
rxb._page = alloc_pages(GFP_ATOMIC, 0);
15271527
if (!rxb._page)

drivers/net/wireless/intel/iwlwifi/mvm/ftm-responder.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static int iwl_mvm_ftm_responder_set_bw_v1(struct cfg80211_chan_def *chandef,
3939
*ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef);
4040
break;
4141
default:
42-
return -ENOTSUPP;
42+
return -EOPNOTSUPP;
4343
}
4444

4545
return 0;
@@ -77,7 +77,7 @@ static int iwl_mvm_ftm_responder_set_bw_v2(struct cfg80211_chan_def *chandef,
7777
}
7878
fallthrough;
7979
default:
80-
return -ENOTSUPP;
80+
return -EOPNOTSUPP;
8181
}
8282

8383
return 0;
@@ -291,7 +291,7 @@ iwl_mvm_ftm_responder_dyn_cfg_cmd(struct iwl_mvm *mvm,
291291
default:
292292
IWL_ERR(mvm, "Unsupported DYN_CONFIG_CMD version %u\n",
293293
cmd_ver);
294-
ret = -ENOTSUPP;
294+
ret = -EOPNOTSUPP;
295295
}
296296

297297
return ret;
@@ -333,7 +333,7 @@ int iwl_mvm_ftm_respoder_add_pasn_sta(struct iwl_mvm *mvm,
333333

334334
if (cmd_ver < 3) {
335335
IWL_ERR(mvm, "Adding PASN station not supported by FW\n");
336-
return -ENOTSUPP;
336+
return -EOPNOTSUPP;
337337
}
338338

339339
if ((!hltk || !hltk_len) && (!tk || !tk_len)) {

drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ int iwl_mvm_op_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant)
298298
/* This has been tested on those devices only */
299299
if (mvm->trans->trans_cfg->device_family != IWL_DEVICE_FAMILY_9000 &&
300300
mvm->trans->trans_cfg->device_family != IWL_DEVICE_FAMILY_22000)
301-
return -ENOTSUPP;
301+
return -EOPNOTSUPP;
302302

303303
if (!mvm->nvm_data)
304304
return -EBUSY;

drivers/net/wireless/intel/iwlwifi/mvm/sta.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2550,7 +2550,7 @@ int iwl_mvm_add_mcast_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
25502550

25512551
if (WARN_ON(vif->type != NL80211_IFTYPE_AP &&
25522552
vif->type != NL80211_IFTYPE_ADHOC))
2553-
return -ENOTSUPP;
2553+
return -EOPNOTSUPP;
25542554

25552555
/*
25562556
* In IBSS, ieee80211_check_queues() sets the cab_queue to be
@@ -3234,7 +3234,7 @@ int iwl_mvm_sta_tx_agg_oper(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
32343234
* should be updated as well.
32353235
*/
32363236
if (buf_size < IWL_FRAME_LIMIT)
3237-
return -ENOTSUPP;
3237+
return -EOPNOTSUPP;
32383238

32393239
ret = iwl_mvm_sta_tx_agg(mvm, sta, tid, queue, true);
32403240
if (ret)

0 commit comments

Comments
 (0)