aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi
Commit message (Collapse)AuthorAgeFilesLines
...
* | wifi: iwlwifi: mvm: don't remove all keys in mcast rekeyMiri Korenblit2025-07-112-38/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the current code, if there was a rekey, we remove all the existing keys from mac80211, then re-add the ones that the FW sent with ieee80211_gtk_rekey_add, (newer FW will send also the existing GTKs/BIGTKs) and then update the sequence number. Instead of removing and re-adding the existing keys for no good reason, we can just update the sequence of all keys, also of the ones that are going to be replaced, and update again after the replace. This change is required because ieee80211_gtk_rekey_add is going to be changed to lookup the cipher from the old key instead of receiving it as an argument, and for this it will need the old key(s), so we can't remove all keys. Note that with this change, in case that a key that existed before wowlan is replaced, mac80211 will now call the driver to remove the old key and add the new one (as opposed the previous behaviour, in which the key was removed by the driver itself). Of course we don't want to run the set_key callbacks in this case, so just return early. Reviewed-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250710212632.10091484e38e.I45daf089189f606f3879ca4538fb46303d761710@changeid
* | wifi: iwlwifi: mvm: always set the key idx in gtk_seqMiri Korenblit2025-07-111-11/+6
| | | | | | | | | | | | | | | | | | | | For older APIs, gtk_seq[0].key_id will be set to -1, while other code assumes that it will always be a valid gtk key idx. Since the FW does provide the idx for those APIs, simply set it. Reviewed-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250710212632.2a5a5e4d7b19.Ib795751119070495c0c95526cd36bd7f87594f56@changeid
* | wifi: iwlwifi: mvm: set gtk id also in older FWsMiri Korenblit2025-07-111-0/+2
| | | | | | | | | | | | | | | | | | | | We use gtk[i].id, but it is not even set in older FW APIs (iwl_wowlan_status_v6 and iwl_wowlan_status_v7). Set it also in older FWs. Reviewed-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250710212632.e91e49590414.I27d2fdbed1c54aee59929fa11ec169f07e159406@changeid
* | wifi: iwlwifi: fix HE/EHT capabilitiesJohannes Berg2025-07-111-63/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The default capabilities were set to much more than the hardware currently is intended to support, and then masked off for only the GL MAC type. However, this was due to some miscommunication and is incorrect, it should've been masked off for all current and planned MACs/RFs. Instead of doing this removing and adding of capabilities, simply list the ones that currently apply to all devices. If this changes for a new device type we can change the code, but at least the driver won't erroneously advertise some capabilities that aren't actually implemented in hardware. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250710212632.69b9dac7d906.I7885499bc80453d5a84285ec927f5e89f9adfb21@changeid
* | wifi: iwlwifi: add iwl_trans_is_dead() APIRotem Kerem2025-07-115-4/+9
| | | | | | | | | | | | | | | | | | | | Add iwl_trans_is_dead() function to be called by the op modes instead of directly checking the trans status bits. This hides the trans internal implementation details from callers. Signed-off-by: Rotem Kerem <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250710212632.cd89d8013261.I214b7ffbabc393593fb57831d61d1a9ffa318a1e@changeid
* | wifi: iwlwifi: add iwl_trans_device_enabled() APIRotem Kerem2025-07-114-4/+9
| | | | | | | | | | | | | | | | | | | | add iwl_trans_device_enabled() function to be called by the op modes instead of directly checking the trans status bits. This hides the trans internal implementation details. Signed-off-by: Rotem Kerem <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250710212632.bb957ba9e130.I6ab825caf41308fb0f7aa1c266f50457fd0c496e@changeid
* | wifi: iwlwifi: add suppress_cmd_error_once() APIRotem Kerem2025-07-113-2/+7
| | | | | | | | | | | | | | | | | | | | Add iwl_trans_suppress_cmd_error_once() function to be called by the op modes instead of directly checking the trans status bits. This hides the trans internal implementation details from callers. Signed-off-by: Rotem Kerem <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250710212632.e061ae241fd3.Ie2043c4e237196ebcfe195006d3d76371de48a55@changeid
* | wifi: iwlwifi: mld: restrict puncturing disable to FMJohannes Berg2025-07-111-5/+9
| | | | | | | | | | | | | | | | | | Later RFs will always do puncturing, regardless of BIOS configuration, and earlier RFs aren't supported in MLD. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250710212632.6fa9c44964c1.I46a4cd744a769ec2ac3c8f9a04882140449394b8@changeid
* | wifi: iwlwifi: mvm: remove regulatory puncturing setupJohannes Berg2025-07-113-9/+0
| | | | | | | | | | | | | | | | | | | | We don't have puncturing before EHT, and EHT devices aren't supported in iwlmvm, so remove the regulatory puncturing setup code. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250710212632.b2a28a99725b.I72ba276cb705c02cea8f68e27ef3935d5120cfee@changeid
* | wifi: iwlwifi: mld: update expected range response notification versionAvraham Stern2025-07-111-1/+1
| | | | | | | | | | | | | | | | | | The last version for the range response notification is 10. Update the expected version accordingly. Signed-off-by: Avraham Stern <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250710212632.377d24e29ac6.I44119a4e793bba35b46e1d35e2c378ce6f901bfd@changeid
* | wifi: iwlwifi: mld: update the P2P device mac before starting the GOAvraham Stern2025-07-111-7/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | When a GO is started, the P2P device mac is updated to indicate that frames for the P2P device mac should be filtered in while the GO is active. However, this configuration is done after the GO is already started so it doesn't take effect. Fix it by updating the P2P device mac before adding the broadcast station, which actually starts the GO. Signed-off-by: Avraham Stern <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250710212632.463a0ad545f9.I85a25484d787b65f6a27e794285911e319df0b2d@changeid
* | wifi: iwlwifi: mld: fix scan request validationAvraham Stern2025-07-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | The scan request validation function uses bitwise and instead of logical and. Fix it. Signed-off-by: Avraham Stern <[email protected]> Reviewed-by: Daniel Gabay <[email protected]> Reviewed-by: Ilan Peer <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250710212632.ec7d665f56a4.I416816b491fafa5d3efdf0a4be78356eedf2bd95@changeid
* | wifi: iwlwifi: mvm: fix scan request validationAvraham Stern2025-07-101-1/+1
| | | | | | | | | | | | | | | | | | | | The scan request validation function uses bitwise and instead of logical and. Fix it. Signed-off-by: Avraham Stern <[email protected]> Reviewed-by: Ilan Peer <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709230308.3fbc1f27871b.I7a8ee91f463c1a2d9d8561c8232e196885d02c43@changeid
* | wifi: iwlwifi: pcie: add a missing includeMiri Korenblit2025-07-101-0/+2
| | | | | | | | | | | | | | | | pcie/utils.h needs to include iwl-io.h for the iwl_read/iwl_write calls. Add it. Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709230308.716e8b54ebcb.If75c28a85b5ba4c2661bdf4ce20b97dbe7d2abb2@changeid
* | wifi: iwlwifi: trans: remove retake_ownership parameter from sw_resetItamar Shalev2025-07-103-4/+4
| | | | | | | | | | | | | | | | | | | | Remove the retake_ownership parameter from the sw_reset function, as it was always set to true and is not needed by other opmodes. Simplify the sw_reset API function. Signed-off-by: Itamar Shalev <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709230308.0a103d021815.I2a3da6f83aa691496a53a548bd73bddd4d4d2db8@changeid
* | wifi: iwlwifi: assign a FW API range for GFMiri Korenblit2025-07-104-23/+31
| | | | | | | | | | | | | | | | | | | | GF device is frozen on API 100, so it is not allowed to use FW APIs higher than that. Make sure of that by assigning a MIN and MAX API range for GF. Reviewed-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709230308.3409de06db40.I2110ee6c0a2f5ff1e16156c5875f83d7a1723857@changeid
* | wifi: iwlwifi: assign a FW API range for HRMiri Korenblit2025-07-105-40/+48
| | | | | | | | | | | | | | | | | | | | HR device is frozen on API 100, so it is not allowed to use FW APIs higher than that. Make sure of that by assigning a MIN and MAX API range for HR. Reviewed-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709230308.ea54c00de44d.I47340ecaefbf40bb0bd254485d242b7f39df85b1@changeid
* | wifi: iwlwifi: pcie: accept new devices for MVM-only configsJohannes Berg2025-07-102-2/+3
| | | | | | | | | | | | | | | | | | | | For newer MACs, the MVM opmode may be used for older firmware images or when the RF isn't EHT/WiFi7 capable. List such devices in the PCI device list when MLD isn't built. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709230308.483c8112f655.Ic05530048fc0b67b1cd8772882a595d56b204e65@changeid
* | wifi: iwlwifi: pcie: inform me when op mode leavingItamar Shalev2025-07-103-1/+25
| | | | | | | | | | | | | | | | Transport gen2 didn't inform ME when the op mode is leaving. Signed-off-by: Itamar Shalev <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709230308.abd840f5e998.I3a3fe174ea55a30daa04a0a3e9a6264913677045@changeid
* | wifi: iwlwifi: simplify iwl_poll_bits_mask return valueItamar Shalev2025-07-104-14/+14
| | | | | | | | | | | | | | | | | | Update iwl_poll_bits_mask to return 0 on success or an error code. Remove timing information from the return value, as it is unused. Signed-off-by: Itamar Shalev <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709230308.f77b9f484a78.Iae8ef99a94e25c23044e2c36244cda2b55328447@changeid
* | wifi: iwlwifi: mvm: remove support for iwl_wowlan_status_v9Miri Korenblit2025-07-103-56/+2
| | | | | | | | | | | | | | | | FWs with this version are no longer supported on any device. Reviewed-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709230308.22864efb5074.I51f270f8848970fd2ca1078c14ad31f4a8853e7d@changeid
* | wifi: iwlwifi: mvm: remove support for iwl_wowlan_status_v12Miri Korenblit2025-07-103-53/+1
| | | | | | | | | | | | | | | | FWs with this version are no longer supported on any device. Reviewed-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709230308.1b9177bfbe1d.I53c1527cc5097f05df352b6f2f99282b00a5d7ac@changeid
* | wifi: iwlwifi: add a reference to iwl_wowlan_info_notif_v3Miri Korenblit2025-07-101-1/+2
| | | | | | | | | | | | | | | | | | Mark this structure as one of the structures that represent WOWLAN_INFO_NOTIFICATION Reviewed-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709230308.19ebfa430c5c.Ie5aca3f0af11cc3137c6b6862a13777bae0cb06b@changeid
* | wifi: iwlwifi: mvm: remove support for iwl_wowlan_info_notif_v2Miri Korenblit2025-07-103-58/+6
| | | | | | | | | | | | | | | | FWs with this version are no longer supported on any device. Reviewed-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709230308.d92f63207232.I8961ffbe04d0d9439d48a17840497ac926967914@changeid
* | wifi: iwlwifi: bump minimum API version for SO/MA/TYMiri Korenblit2025-07-101-1/+1
| | | | | | | | | | | | | | | | Stop supporting older FWs. Reviewed-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709230308.64f504f3690d.Idc95ca09101e52b4980b292945abe944c24fc5d1@changeid
* | wifi: iwlwifi: assign a FW API range for JFMiri Korenblit2025-07-103-17/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | JF device is frozen on API 77. This prevented us from bumping the minimum FW API of SO (and get rid of older FWs). This is because SO can be combined with JF and then FW API 77 should be used. Now as we have separate FW API ranges for the mac and the crf, we can define for JF its own FW API range. This will allow bumping the minimum FW API of SO Independently. Do that now. Signed-off-by: Miri Korenblit <[email protected]> Reviewed-by: Johannes Berg <[email protected]> Link: https://patch.msgid.link/[email protected]
* | wifi: iwlwifi: handle non-overlapping API rangesMiri Korenblit2025-07-101-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | The option to set an api_version_min/max also to the RF was added. In the case that both the MAC and the RF has a range defined, we take the narrower range of both. This doesn't work for non-overlapping ranges. In this case, we should just take the lower range of both. Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/[email protected]
* | wifi: iwlwifi: mvm: remove support for iwl_wowlan_info_notif_v4Miri Korenblit2025-07-092-19/+15
| | | | | | | | | | | | | | | | FWs with this version are no longer supported on any device. Reviewed-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709081300.1668a7430521.I488d69251aed62f0b11a2553f972a1730bc8b6cf@changeid
* | wifi: iwlwifi: bump minimum API version in BZMiri Korenblit2025-07-091-1/+1
| | | | | | | | | | | | | | | | Stop supporting older FWs Reviewed-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709081300.71404c289481.Iea4f3d36e18029a817ec5d6641d08ac5ee025678@changeid
* | wifi: iwlwifi: mvm: remove unneeded argumentMiri Korenblit2025-07-091-4/+3
| | | | | | | | | | | | | | | | iwl_mvm_set_key_rx_seq is called only once when the installed argument is false. Remove this argument. Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709081300.2586112afd70.Iddf9a2b24546cb3a1506d68ca41ed215f88cff5c@changeid
* | wifi: iwlwifi: mvm: remove MLO GTK rekey codeMiri Korenblit2025-07-091-200/+10
| | | | | | | | | | | | | | | | iwlmvm driver does not support MLO. Remove this code Reviewed-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709081300.4957e50dee91.I2a432256dbc3069e0300e1f833e10a93d203f538@changeid
* | wifi: iwlwifi: pcie: rename iwl_pci_gen1_2_probe() argumentJohannes Berg2025-07-092-6/+6
| | | | | | | | | | | | | | | | | | Using 'trans' for the mac config is confusing, rename the argument to 'mac_cfg'. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709081300.72d87406f8d7.I8b39f01e06ad7791efe718c267cbf367233920a3@changeid
* | wifi: iwlwifi: match discrete/integrated to fix some namesJohannes Berg2025-07-094-20/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some device names were wrong because our internal data suggested that discrete Ga devices have B-step RF, when they actually have C-step. However, matching the step for them is bad anyway. Change the code to be able to find the devinfo depending on the device being integrated or discrete. This is only for the names, since the RF config cannot be different for the same RF because it's discrete or integrated, so add a kunit test that ensures both (a) the RF config is the same and (b) the name is different (the latter really only because that's the whole point of having a match on the discrete/integrated bit.) Remove the RF step matching since it's no longer needed now. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709081300.e048a94659f1.Ie5919c70e9d8e3a28152aaf3cdffd19ed3d4f5c7@changeid
* | wifi: iwlwifi: remove Intel driver load messageJohannes Berg2025-07-091-2/+0
| | | | | | | | | | | | | | | | | | There's really not much value in printing something just because the driver loaded, remove that message. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709081300.fe33c279a45d.I16a9cbcfce92a1d1b8b26a20ea9911e8a5a0b1cc@changeid
* | wifi: iwlwifi: mvm/mld: make PHC messages debug messagesJohannes Berg2025-07-092-13/+13
| | | | | | | | | | | | | | | | | | These have no real value for normal users, print them as debug messages instead. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709081300.bd2df0705d89.Ic6f042588ef17719653c077ff89a8b9149c22f92@changeid
* | wifi: iwlwifi: trans: remove iwl_trans_initMiri Korenblit2025-07-093-42/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We needed it for setting up trans parameters that could change later in the probe flow. This is no longer true, now we know all the parameters before we allocate the trans, so we can just send the right parameters to iwl_trans_alloc and have all initializations done there. Reviewed-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> .../net/wireless/intel/iwlwifi/iwl-trans.c | 25 ++-------- .../net/wireless/intel/iwlwifi/iwl-trans.h | 8 +-- .../intel/iwlwifi/pcie/gen1_2/trans.c | 50 ++++++++++++------- 3 files changed, 41 insertions(+), 42 deletions(-) Link: https://patch.msgid.link/20250709081300.9602fde079de.Iaede14c91095560852f9b441f1e16546b0a06bdd@changeid
* | wifi: iwlwifi: pcie move common probe logicMiri Korenblit2025-07-093-41/+47
| | | | | | | | | | | | | | | | Move the parts of the probe that are not gen specific to the common probe function. Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709081300.91aee0874e79.Ib762365933d4dd4fc0bf07833226cd7118dee0a1@changeid
* | wifi: iwlwifi: bump FW API to 102 for BZ/SC/DRMiri Korenblit2025-07-093-3/+3
| | | | | | | | | | | | | | Start supporting FW API version 102 on those devices. Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709081300.da98a7b6be42.I77150bbf55eb160dbe0ef75c3e28afc053f27ec3@changeid
* | wifi: iwlwifi: pcie: Move txcmd size/align calculation to callersYedidya Benshimol2025-07-093-16/+19
| | | | | | | | | | | | | | | | | | Refactor iwl_trans_init to accept txcmd_size and txcmd_align as parameters instead of calculating them internally. Signed-off-by: Yedidya Benshimol <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709081300.237285d81461.I3552860dd062a523606c8a5c85c9a6f0d4f04262@changeid
* | wifi: iwlwifi: pcie move gen1_2 probe to gen1_2/trans.cYedidya Benshimol2025-07-094-329/+335
| | | | | | | | | | | | | | | | | | | | In the process of splitting the transport's different generations, move gen1_2's probe flow and relevant helper functions to the gen1_2 subfolder Signed-off-by: Yedidya Benshimol <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709081300.29b909144e1a.Idaa77eddd6650cf6f113833d2fbc8d3ef08cfd8f@changeid
* | wifi: iwlwifi: use PNVM data embedded in .ucode filesJohannes Berg2025-07-097-16/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given compatibility issues with external PNVM data that doesn't match the firmware it was designed with/for, future firmware releases will include the PNVM data in the firmware files directly, avoiding those mismatch issues. Make the driver load and use that embedded PNVM data in preference of external files, falling back to the external file if it isn't present. Co-developed-by: Emmanuel Grumbach <[email protected]> Signed-off-by: Emmanuel Grumbach <[email protected]> Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709081300.c843f77aa2d3.I7200f8dd40ef82aff1f5574fdd3966913cda592c@changeid
* | wifi: iwlwifi: Add an helper function for polling bitsRotem Kerem2025-07-095-31/+30
| | | | | | | | | | | | | | | | | | Add iwl_poll_bits helper to simplify calls to iwl_poll_bit for the case when the bits and mask arguments are equal. Signed-off-by: Rotem Kerem <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709081300.6bbc4bccc597.Ic7a10a7f8a9a32a9a9feecaf6e3a48fa37479f2d@changeid
* | wifi: iwlwifi: Fix error code in iwl_op_mode_dvm_start()Dan Carpenter2025-07-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Preserve the error code if iwl_setup_deferred_work() fails. The current code returns ERR_PTR(0) (which is NULL) on this path. I believe the missing error code potentially leads to a use after free involving debugfs. Fixes: 90a0d9f33996 ("iwlwifi: Add missing check for alloc_ordered_workqueue") Signed-off-by: Dan Carpenter <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Miri Korenblit <[email protected]>
* | Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski2025-06-261-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cross-merge networking fixes after downstream PR (net-6.16-rc4). Conflicts: Documentation/netlink/specs/mptcp_pm.yaml 9e6dd4c256d0 ("netlink: specs: mptcp: replace underscores with dashes in names") ec362192aa9e ("netlink: specs: fix up indentation errors") https://lore.kernel.org/[email protected] Adjacent changes: Documentation/netlink/specs/fou.yaml 791a9ed0a40d ("netlink: specs: fou: replace underscores with dashes in names") 880d43ca9aa4 ("netlink: specs: clean up spaces in brackets") Signed-off-by: Jakub Kicinski <[email protected]>
| * wifi: iwlwifi: mvm: assume '1' as the default mac_config_cmd versionMiri Korenblit2025-06-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Unfortunately, FWs of some devices don't have the version of the iwl_mac_config_cmd defined in the TLVs. We send 0 as the 'def argument to iwl_fw_lookup_cmd_ver, so for such FWs, the return value will be 0, leading to a warning, and to not sending the command. Fix this by assuming that the default version is 1. Fixes: 83f3ac2848b4 ("wifi: iwlwifi: Fix incorrect logic on cmd_ver range checking") Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/[email protected]
* | Merge tag 'iwlwifi-next-2025-06-25' of ↵Johannes Berg2025-06-2568-612/+781
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-next Miri Korenblit says: ==================== iwlwifi-next - iwlwifi features Mostly cleanups. A few fixes and small features. ==================== Signed-off-by: Johannes Berg <[email protected]>
| * | wifi: iwlwifi: dvm: fix potential overflow in rs_fill_link_cmd()Rand Deeb2025-06-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'index' variable in the rs_fill_link_cmd() function can reach LINK_QUAL_MAX_RETRY_NUM during the execution of the inner loop. This variable is used as an index for the lq_cmd->rs_table array, which has a size of LINK_QUAL_MAX_RETRY_NUM, without proper validation. Modify the condition of the inner loop to ensure that the 'index' variable does not exceed LINK_QUAL_MAX_RETRY_NUM - 1, thereby preventing any potential overflow issues. Found by Linux Verification Center (linuxtesting.org) with SVACE. Signed-off-by: Rand Deeb <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Miri Korenblit <[email protected]>
| * | iwlwifi: Add missing check for alloc_ordered_workqueueJiasheng Jiang2025-06-251-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add check for the return value of alloc_ordered_workqueue since it may return NULL pointer. Fixes: b481de9ca074 ("[IWLWIFI]: add iwlwifi wireless drivers") Signed-off-by: Jiasheng Jiang <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Miri Korenblit <[email protected]>
| * | wifi: iwlwifi: Fix memory leak in iwl_mvm_init()Xiu Jianfeng2025-06-251-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When iwl_opmode_register() fails, it does not unregster rate control, which will cause a memory leak issue, this patch fixes it. Fixes: 9f66a397c877 ("iwlwifi: mvm: rs: add ops for the new rate scaling in the FW") Signed-off-by: Xiu Jianfeng <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Miri Korenblit <[email protected]>
| * | iwlwifi: api: delete repeated wordsRuffalo Lavoisier2025-06-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | - Delete the repeated word 'the' in the comment. Signed-off-by: Ruffalo Lavoisier <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Miri Korenblit <[email protected]>