diff options
| author | Pagadala Yesu Anjaneyulu <[email protected]> | 2025-06-09 18:21:19 +0000 |
|---|---|---|
| committer | Miri Korenblit <[email protected]> | 2025-06-25 07:57:32 +0000 |
| commit | 2110d001db47dd5a6b58c399ea3524dc3c572065 (patch) | |
| tree | 964b0f37d8227efe41c9235058f6d63f75babb20 /drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c | |
| parent | wifi: iwlwifi: move dBm averaging function into utils (diff) | |
| download | kernel-2110d001db47dd5a6b58c399ea3524dc3c572065.tar.gz kernel-2110d001db47dd5a6b58c399ea3524dc3c572065.zip | |
wifi: iwlwifi: Remove unused cfg parameter from iwl_nvm_get_regdom_bw_flags
Refactor iwl_nvm_get_regdom_bw_flags() by removing the unused cfg
parameter to enhance code clarity and maintainability
Signed-off-by: Pagadala Yesu Anjaneyulu <[email protected]>
Signed-off-by: Miri Korenblit <[email protected]>
Link: https://patch.msgid.link/20250609211928.987b1a749b78.I11a67c0737fb39b594831c10f62de1a195ed24e3@changeid
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c')
| -rw-r--r-- | drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c b/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c index 56bac0a9755a..c5c80f72696f 100644 --- a/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c +++ b/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c @@ -1632,8 +1632,7 @@ IWL_EXPORT_SYMBOL(iwl_parse_nvm_data); static u32 iwl_nvm_get_regdom_bw_flags(const u16 *nvm_chan, int ch_idx, u16 nvm_flags, - struct iwl_reg_capa reg_capa, - const struct iwl_rf_cfg *cfg) + struct iwl_reg_capa reg_capa) { u32 flags = NL80211_RRF_NO_HT40; @@ -1820,8 +1819,8 @@ iwl_parse_nvm_mcc_info(struct iwl_trans *trans, } reg_rule_flags = iwl_nvm_get_regdom_bw_flags(nvm_chan, ch_idx, - ch_flags, reg_capa, - cfg); + ch_flags, + reg_capa); /* we can't continue the same rule */ if (ch_idx == 0 || prev_reg_rule_flags != reg_rule_flags || |
