summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2026-10-14wifi: iwlwifi: mld: report UHR LTF symbols for non-TB PPDUsJohannes Berg
For TB (trigger-based) PPDUs we were already reporting this, but I missed it in the non-TB PPDU case. Add it now. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Link: https://patch.msgid.link/20261001161715.a8228ab59708.I6c58f3e4f30bb0fb7e57a6c49782bf79d280371d@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: mld: add UHR sniffer supportJohannes Berg
Add UHR sniffer support as supported by the hardware. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Link: https://patch.msgid.link/20261001161715.a1e1090ec775.I47fb568ddcd9d6aca634400b2d4850c1fef035ca@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: mld: add STA_CONFIG_CMD version 4Emmanuel Grumbach
Version 4 replaces the unused trig_rnd_alloc field with cip_defer and epp_robust: - cip_defer tells the firmware to delay the usage of the unicast control frame protection key until after association. - epp_robust tells the firmware that EPP robust individually addressed management frame support was negotiated, so that the protected action categories are used for specific unicast action frames. Add the matching EPP_ROBUST_CONNECTION flag to the WoWLAN config command flags for the D3 path. Assisted-by: LLM Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Link: https://patch.msgid.link/20261001161715.b62474b1ccef.I51756391283ec42a40dd38a3586ad89759fb82d1@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: mld: remove unused fields from the firmware APIEmmanuel Grumbach
ENABLE_STORE_BEACON is not defined in the firmware API and is never set by the driver. STA_CONFIG_CMD's trig_rnd_alloc was never used by the firmware either. Remove both. Assisted-by: LLM Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Link: https://patch.msgid.link/20260930121740.157e71ac8641.Iac2bd1f57b2c4bbdfe33efab31111a7de02bdf16@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: trans: bring virtualization backMiri Korenblit
We removed virtualization because PCIe is the only bus. The problem with the if-else approach is that it causes a dual dependency: the generic trans needs to include the bus specific, and vice-versa. Besides being a bad design, it also has pratical problems: 1. small functions that could be static inline ones - can't, because only iwl-trans.c has the bus specific include. 2. while in pcie we have one giant header file, ironically called internal.h, that has all the declarations needed by the generic trans, in USB there will be several ones, and including them means including all the USB internal logic, which should not be exposed. This commit brings back the virtualization. Since gen1 and gen2 were never split properly, and since they share almost all the callbacks, pcie registers with a single ops struct. This also fixed the debug code to call a generic API for fw reset handshake, instead of calling the pcie directly. Assisted-by: GitHubCopilot:claude-opus-4.8 Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Link: https://patch.msgid.link/20260930121740.c0dde34db029.I0b53f83df3faad21c0c39b3e709896e7dde6ac35@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: mld: test TX gp2 timestampsDaniel Gabay
Add KUnit tests for the gp2 estimate: timestamp arithmetic and u32 wraparounds, zero offsets, zero timestamp handling, and the expiry and refresh thresholds driven by valid_until. Exercise the thresholds with jiffies near wraparound. Signed-off-by: Daniel Gabay <daniel.gabay@intel.com> Assisted-by: LLM Link: https://patch.msgid.link/20260930121740.16628072486e.Ia0ead71cdc521a3c5db80bfd2e11a718692b3ab2@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: call generic trans API and not pcie oneMiri Korenblit
iwl_trans_pcie_reset is currently called from outside of pcie, like in mvm opmode. This is wrong and contradicts the architecture. Add a generic trans API which will call the PCIE implementation. Link: https://patch.msgid.link/20260930121740.444e257d5a49.I4c4892ca6bcae0095639341f3c2aba76bcd1ee86@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: move iwl-io functions to iwl-transMiri Korenblit
This commit completes the removal of iwl-io. Now that all io helpers use the iwl_trans_ prefix, move them to iwl-trans.h/c. Includers are updated to pull in iwl-trans.h No functional change. Assisted-by: GitHubCopilot:claude-opus-4.8 Link: https://patch.msgid.link/20260930121740.28c8b1af4303.I93a06977d9f5affa16c699d32e0e0577e49a534e@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: rename io helpers to iwl_trans_ prefixMiri Korenblit
The iwl-io is a wrapper layer for all the device memory access operations. But all it really does is either a combination of other operations, or tracing and calling the trans function, which calls the bus-specific implementation. This makes the code hard to follow. Those helpers are really part of the transports functionality, so there is no reason to keep this complexity. This and the following commit will remove iwl-io.c/h: this renames the functions to have the trans prefix, and a next one will move them to iwl-trans. No functional change. Assisted-by: GitHubCopilot:claude-opus-4.8 Link: https://patch.msgid.link/20260930121740.96f5fe1d78b9.Ie580d7156b6b0175bf45e24c93dd4cce1da065ea@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: pcie: rename pcie-internal functionsMiri Korenblit
Functions that are in pcie level should have the pcie prefix. In particular, the functions renamed in this commit are easy to be confused with the generic trans ones. Rename those functions to have a pcie prefix. Assisted-by: GitHubCopilot:claude-opus-4.8 Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Link: https://patch.msgid.link/20260930121740.09af8a4d712b.I5867c6f937d569349e1950733361bf83a5e49fbb@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: collapse iwl_read_prph_no_grab() into the transport APIMiri Korenblit
iwl_read_prph_no_grab() was a thin wrapper that read via iwl_trans_read_prph_no_grab() and emitted the ioread_prph32 tracepoint. Fold the tracepoint into the bus-specific implementation (iwl_trans_pcie_read_prph()) and remove the wrapper, so callers use the transport API (or the pcie primitive from within pcie) directly. No functional change intended. Assisted-by: GitHubCopilot:claude-opus-4.8 Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Link: https://patch.msgid.link/20260930121740.592c74d42694.I329ccec5de9d0a6ec87538aceabce17149258841@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: rename iwl_trans_read_prphMiri Korenblit
Functions that assume that nic access was acquired should have a _no_grab postfix, so the caller will know that he is responsible to have access when calling it. Add the postfix. Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Link: https://patch.msgid.link/20260930121740.3441b513bd7f.If88dcac92f705918b550fd3e524196be1f8d92d0@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: avoid unnecessary indirectionMiri Korenblit
Some helpers in iwl-io are no more than thin wrappers that do tracing and call the underlying iwl_trans_* function, which in turn calls the bus specific implementation. This forces an unneeded indirection for calls from within pcie, and in general makes the code harder to follow. Move the tracing to the pcie implementation and get rid of those wrappers: change the pcie callers to call the pcie implementation directly, and the callers outside the transport - to call the iwl_trans_* API. This also improves the current callers of the pcie specific implementations to include tracing, which they didn't have before this commit. Assisted-by: GitHubCopilot:claude-opus-4.8 Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Link: https://patch.msgid.link/20260930121740.8a85afed9cd7.If4806e645949ec73b8c734486605d7d4ea8ada4e@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: mld: report RX time from channel surveyBenjamin Berg
Newer firmware versions will start reporting a separate RX time value that represents for how long the channel was busy with Wi-Fi frames. Previously the reported value for RX time was equal to the busy time. As such, report the information as it will be useful in the future. Signed-off-by: Benjamin Berg <benjamin.berg@intel.com> Link: https://patch.msgid.link/20260930121740.727c05ab3c58.I9509587622fa7c6493b6baee53372c548bf60ed8@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: mld: add gp2 timestamps to TX commandsDaniel Gabay
TX command v12 adds a driver timestamp in the gp2 clock domain. Firmware uses it to age out frames deferred by CCA for more than four seconds. Without it, a blocked queue can stall until the datapath monitor fires LMAC assert 0x4433. Reading the gp2 register per frame is too expensive for the TX path. Instead, use a worker to measure its offset from host boottime and publish the offset and validity deadline using atomic stores. TX then estimates gp2 without allocation or locking for timestamp reads. TX requests a refresh after five seconds, while the estimate remains valid for ten seconds to tolerate worker delays and bound clock drift. Successful refreshes require no periodic work while traffic is idle. A failed read invalidates the estimate and schedules a retry after roughly one second, rounded for timer coalescing, even without traffic. Invalidate the estimate before D3 entry and firmware shutdown, and refresh it on resume or reload because gp2 restarts with firmware. Frames without a valid estimate carry a zero timestamp, which firmware ignores. Signed-off-by: Daniel Gabay <daniel.gabay@intel.com> Assisted-by: LLM Link: https://patch.msgid.link/20260930121740.a5016741a467.Ie4d4af8d7100a656a8469edc0c38ec81b0b58860@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: mld: fake a valid NSS field when neededEmmanuel Grumbach
We hit a WARNING in mac80211 in sniffer that complains that rx_status->nss is 0. This happens on frames that the firmware doesn't really understand and when that happens, somehow the STBC bit is set. The driver divides the number of antennas by 2 to get the NSS with STBC set because each stream requires 2 antennas. Since NSTS=1, NSS end up being 0. Since we don't have devices with more than 2 antennas, just consider that when we receive STBC traffic, we have one spatial stream. Since this problem has been seen on HE traffic only, don't apply this logic on VHT / HT code paths. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Reviewed-by: Johannes Berg <johannes.berg@intel.com> Link: https://patch.msgid.link/20260930121740.2589668e377b.Ib41003bd4e10f0fe6d7f4aa1038291be330c3175@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: move pcie-only functions to pcieMiri Korenblit
There are several helpers that exported to the opmodes but are really only called from the pcie transport. Define those functions there. No functional change intended. Assisted-by: GitHubCopilot:claude-opus-4.8 Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Link: https://patch.msgid.link/20260930121740.480246f9b623.I88de3ad2bbd8a8444ff2a154f7eb1f08ecb7b7ea@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: add _no_grab postfix to some functionsMiri Korenblit
A function that accesses the nic memory without grabbing nic access first, needs to have a _no_grab postfix. It makes it clear to the caller that he is responsible for grabbing it. Add it to iwl_trans_write_prph and iwl_trans_pcie_write_prph as well. Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Link: https://patch.msgid.link/20260930121740.68337f23f322.I38ed9c92bf6358158974b0af025d8bf8fdd7e4f5@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: disable HE ER modeShahar Tzarfati
HE ER mode (~3 Mbps) provides marginal range benefit over legacy rates, while effective coverage remains constrained by beacon reception. In addition, ~3 Mbps is insufficient for laptop connectivity. Furthermore, any range benefit in 5 and 6 GHz is more easily achieved by roaming to 2.4 GHz, while avoiding degrading 5 and 6 GHz aggregate network capacity with low-rate links. Therefore, disable HE ER mode. Signed-off-by: Shahar Tzarfati <shahar.tzarfati@intel.com> Link: https://patch.msgid.link/20260926201527.aac48f46b60e.I5dcf9ed88b2b73bc09c81c0d9c841dc624447faf@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: drop the orphaned nic_access annotationsMiri Korenblit
commit 5b63d0ae94cc ("compiler-context-analysis: Remove Sparse support") deleted the Sparse implementation of the lock annotations. __acquires()/__releases()/__acquire()/__release() are gone; the macros now only map onto clang's context analysis and expand to nothing for gcc. The nic_access annotations describe nothing anymore: - Every one of them is a __releases() with no matching __acquires(). The acquire side was the __cond_lock() wrapper around _iwl_trans_grab_nic_access(), which went away together with __cond_lock() itself. The names don't even agree - PCIe releases nic_access_nobh while the generic wrapper calling it claims nic_access. - The __acquire()/__release(reg_lock) pairs only existed to silence Sparse Use lockdep_assert_held() instead, which unlike the annotations actually runs, and add the missing assertion to iwl_trans_pcie_resched_with_nic_access(). Reviewed-by: Johannes Berg <johannes.berg@intel.com> Link: https://patch.msgid.link/20260926201527.f818a7e09def.Iccecaabe0f37525430377ae1c0db6fd7bbf7625a@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: support RX BAID modify command version 3Emmanuel Grumbach
Version 3 of the RX BAID allocation modify command shrinks the tid field to a u8 and adds a window size field, so that the window size can be updated while moving a BAID to a new AP. A window size of 0 tells the firmware to keep the current one, which is what we need for now. Add the new layout and pick it based on the command version. Assisted-by: LLM Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Link: https://patch.msgid.link/20260926201527.46c77de75c0b.Ie41b1d43f945a0c5e2bb68981a0cec0c62111233@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: add support for the new MPDU descriptorEmmanuel Grumbach
The firmware now reports in DW-12 bits 31:24 the RU/MRU/DRU that was used for the received frame, in trigger-like format. The MAC context byte moved to bits 31:24 of DW-10. It isn't used by the driver, so just follow the new layout. Assisted-by: LLM Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Link: https://patch.msgid.link/20260926201527.cf236c23d1aa.Ie2d919c884f7db8cd76b4cb6a9f4584eb285eea5@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: move iwl_force_nmi() to where it belongsMiri Korenblit
iwl_force_nmi() forces a firmware NMI and has nothing to do with the register I/O helpers in iwl-io.c. Move it to iwl-trans.c and rename it to iwl_trans_force_nmi() to match the transport API naming. Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Link: https://patch.msgid.link/20260926201527.c3312fb2f2cc.Ie0d3ea9b23e35d7ff4b67e129c7b97ccb7c6c453@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: open code iwl_trans_sync_nmi_with_addr()Miri Korenblit
iwl_trans_sync_nmi_with_addr() had a single caller, iwl_trans_pcie_sync_nmi(). There is no reason to keep it as a separate exported function in iwl-io.c, so embed its body directly in the caller and drop the now-unused declaration. Link: https://patch.msgid.link/20260926201527.a2048732f45f.I23611eb40d875c6a69df0c08add3834f6f7d8528@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: pcie: remove iwl_dbgfs_fh_reg_readMiri Korenblit
This is no longer needed, and adds lots of parsing code Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Link: https://patch.msgid.link/20260926201527.3e2f229ac9f6.I122eaf364743ffc42bd18a84a766d7920ec5700d@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: pcie: order RX reads after the write pointerEmmanuel Grumbach
iwl_pcie_rx_handle() reads the last closed RB index from rb_stts and then reads the completion descriptor and the RB contents that this index makes visible. Nothing orders those two reads: there is no barrier, the descriptor address derives from rxq->read rather than from the index just read, so there is no address dependency, and the "while (i != r)" test is only a control dependency, which does not order loads on arm64. The CPU can therefore speculate past the loop test, perform the completion descriptor load early and sample the value from before the device's DMA, then resolve the rb_stts load to the value from after it. On arm64 (Jetson AGX Orin) this showed up as recurring "Invalid rxb from HW <vid>" naming an in-range rbid the driver still owned, and "frame on invalid queue" for an RB tagged with the queue that used it before the wrap. Both force an NMI and a firmware restart. x86 never shows it because loads are not reordered with loads there. Add a dma_rmb() after reading the write pointer, as other NIC drivers do when consuming a DMA descriptor ring. It is a no-op on x86 and a dmb on arm64. Verified to stop the warnings on Orin. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Assisted-by: GitHub-Copilot:claude-opus-5 Link: https://patch.msgid.link/20260926201527.1bff8cebef69.I24dec81516e37a33674e87ed3359c41e59d12e5e@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: fw: add Samsung to TAS and PPAG allow listsPagadala Yesu Anjaneyulu
Allow platforms reporting the exact manufacturer string "Samsung" to use TAS and PPAG, while retaining the existing Samsung Electronics entry. Signed-off-by: Pagadala Yesu Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com> Link: https://patch.msgid.link/20260926201527.e2e2e1f720af.I18a7292b5a8bd878d074b114b45ce99e1309897e@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: fw: harden UEFI reduced-power TLV parsingPagadala Yesu Anjaneyulu
UEFI reduced-power parsing advanced by ALIGN(tlv_len, 4) but validated only tlv_len. When remaining bytes were between these values, len could underflow and parsing could continue past the buffer boundary. Validate remaining bytes against the aligned length before advancing in both TLV walkers. Signed-off-by: Pagadala Yesu Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com> Assisted-by: GitHubCopilot:GPT-5.3-Codex Link: https://patch.msgid.link/20260926201527.2552432e98e8.I570750f27d9530d4c76922d2699a272d9c60a0ab@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: uefi: Fix SAR enable check to use mode parameter correctlyPagadala Yesu Anjaneyulu
The iwl_uefi_set_sar_profile() function was receiving a bool parameter, which would treat any non-zero value as enabled. This is incorrect because the SAR mode value contains additional bits beyond the enable flag. Change the parameter from bool enabled to u32 mode and properly extract the enable bit using IWL_SAR_ENABLE_MSK bitmask. This ensures that only the designated enable bit determines whether SAR is enabled, not arbitrary non-zero values. Signed-off-by: Pagadala Yesu Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com> Link: https://patch.msgid.link/20260926201527.60160602581b.Ib184c201e677cb6d95f64e725a1e39148234fa41@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: send standalone SAR to firmwarePagadala Yesu Anjaneyulu
Plumb the standalone WRSS/EWSS SAR data and send the standalone profile to firmware. Add REDUCE_TX_POWER_CMD version 12 support with the IWL_TX_POWER_MODE_SET_STANDALONE_CHAINS set_mode, and rename iwl_dev_tx_power_cmd_v11 to iwl_dev_tx_power_cmd_v12 to match the updated command layout. This enables higher transmit power limits for standalone firmware operation while preserving the existing concurrent SAR handling. Signed-off-by: Pagadala Yesu Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com> Link: https://patch.msgid.link/20260926201527.d5315e93c1ce.Ic02190e91e795dcfe660710721b47de71f2b2c86@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: Revert "wifi: iwlwifi: pcie: move generation specific files ↵Miri Korenblit
to a folder" This reverts commit a6fafaedb5d6 ("wifi: iwlwifi: pcie: move generation specific files to a folder"). The pcie/gen1_2/ subfolder was introduced to prepare for a future pcie-transport, which will not happen eventually. Move all the files back to the pcie folder and remove the gen1_2 folder. Link: https://patch.msgid.link/20260926201527.91ac209ad70d.I25521996309a25ac779cb31f2c93477b25be9ac3@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: Revert "wifi: iwlwifi: gen1_2: move gen specific code to a ↵Miri Korenblit
function" This reverts commit df70a9a86eee ("wifi: iwlwifi: gen1_2: move gen specific code to a function"). The remove flow body was factored out into into a new function to prepare for a new pcie-transport, which will not happen eventually. Inline the code back. Link: https://patch.msgid.link/20260926201527.44edf3234ede.Ic19d96486253518e2107d91e512654596689a426@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: pcie: drop gen1_2 prefix from several functionsMiri Korenblit
As a preparation of a future pcie-transport, we added a gen1_2 prefix to some functions to distinguish them from the new implementation. Since the new pcie-transport will not happen eventaully, remove this prefix from those functions. Link: https://patch.msgid.link/20260926201527.dc1a22771b0e.I20e77f228e1536c6eb327dc077b030dbea889ac2@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: add standalone WRSS/EWSS BIOS table loadingPagadala Yesu Anjaneyulu
Add support for reading WRSS and EWSS standalone SAR tables from the BIOS in the ACPI and UEFI paths. WRDS/EWRD tables describe SAR limits for concurrent Wi-Fi and Bluetooth operation. When Bluetooth is not active, those limits can unnecessarily restrict Wi-Fi transmit power. WRSS/EWSS provide separate standalone SAR profiles for Wi-Fi-only operation, allowing the firmware to select the appropriate higher-power limits while still respecting the platform-specific regulatory constraints. Signed-off-by: Pagadala Yesu Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com> Link: https://patch.msgid.link/20260923160318.9a8eb3ff9512.Id79836e772136e1e38f107b578007faf39b13b4e@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: mvm: validate BAID from FWShahar Tzarfati
The BAID from the ADD_STA response is used to access mvm->baid_map[] without an upper bound check. Check and reject an invalid value. Signed-off-by: Shahar Tzarfati <shahar.tzarfati@intel.com> Link: https://patch.msgid.link/20260923160318.22624c6dfa10.I9a99a140ab72cb1790a03a130ae7c8aa93cfac01@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: support for another device IDMiri Korenblit
Add support of another flavor of AX231. Link: https://patch.msgid.link/20260923160318.af9e8f9c1548.I1fd3aa97da28065966952c36edcdb99acd5313cb@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: regulatory: use GLUI as root-of-trust for connectivity variablesShahar Tzarfati
The BIOS tables can be sourced from either UEFI or ACPI. The UEFI copies are writable, so they may be trusted only when the platform attests they are locked. Resolve this trust from a single source, preferring the UEFI GUID Lock Indicator (GLUI) and consulting the ACPI GLAI whenever GLUI does not attest the tables as locked or in test mode. Add iwl_bios_get_guid_lock_status() as that entry point and have the mvm and mld op-modes use it instead of the ACPI-only helper, so trust is resolved consistently regardless of whether a platform ships GLUI or GLAI. Signed-off-by: Shahar Tzarfati <shahar.tzarfati@intel.com> Assisted-by: GitHub-Copilot:claude-opus-4-8 Link: https://patch.msgid.link/20260923160318.c6a2252dafb9.I46f8c4d55bd22d98a7200cce8f528c5e182f443c@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: uefi: add a way to probe connectivity UEFI variablesShahar Tzarfati
The connectivity UEFI variables are only trusted when the platform attests they are locked. When the lock status is unknown, the trust of each variable has to be discovered on its own by checking whether it is write protected. Probing depends on trying to rewrite UEFI variables and it is only attempted on non-x86 platforms. If the write is rejected the variable is considered locked and therefore trusted, otherwise it is treated as not trusted. Separate reading such a variable into two steps: iwl_uefi_get_variable_guid() only fetches and validates the variable, while iwl_uefi_get_verified_variable_guid() layers the trust decision on top of it. The latter now takes an iwl_fw_runtime so it can consult the lock status. Rename its WiFi-GUID wrapper from iwl_uefi_get_verified_variable() to iwl_uefi_get_verified_wifi_var(). With the trust check now performed by every iwl_uefi_get_*() reached through the GET_BIOS_TABLE() macro, the per-table lock-status gate in that macro is redundant, so drop it here. This move, and the new unknown-status handling, affect only the tables reached through GET_BIOS_TABLE(), i.e. those that have both a UEFI and an ACPI source. Assisted-by: GitHub-Copilot:claude-opus-4-8 Signed-off-by: Shahar Tzarfati <shahar.tzarfati@intel.com> Link: https://patch.msgid.link/20260923160318.6caa9ca17ffe.I877c0d6ab5126edb3e4f1f187ca1e20e563b2ec4@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: uefi: add UEFI GUID Lock Indicator (GLUI) definitionsShahar Tzarfati
The platform provides a root-of-trust mechanism for connectivity UEFI variables via a dedicated UEFI GUID Lock Indicator (GLUI) variable. The GLUI may remain locked in both production and testing modes. A UEFI indicator is used rather than relying on the ACPI GLAI alone, so the mechanism also works on platforms that do not expose ACPI. Add the building blocks for consuming this variable and iwl_uefi_get_guid_lock_status() to read its value and store it, so the driver can use its lock state to decide whether the connectivity UEFI variables are trusted. Signed-off-by: Shahar Tzarfati <shahar.tzarfati@intel.com> Assisted-by: GitHub-Copilot:claude-opus-4-8 Link: https://patch.msgid.link/20260923160318.55d7dc9c9531.If4c9949de70fe78951464b983caf2c9d974061b3@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: mvm: validate mpdu len before relying on itMiri Korenblit
iwl_mvm_rx_mpdu_mq path only checks that the mpdu_len fits into the pkt len, but it doesn't validate len itself before dereferencing parts of the mpdu: the header, the padding, and the mic_crc_len. Check that the mpdu len covers the hdrlen, the padding (if exists) and the mic_crc_len. Reviewed-by: Johannes Berg <johannes.berg@intel.com> Link: https://patch.msgid.link/20260923160318.fbf29ec27bc0.I4bb0dbd739ff1ddf969e51bbd68c42ca9e4e0634@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: bump maximum core version for BZ/SC/DR to 108Miri Korenblit
Start supporting Core 108 FW on these devices. The BZ/FM combination is frozen on Core107 (while each of BZ, FM is not yet frozen and is still supported in other combinations). Indicate this in the relevant FW file mames, for modinfo. While at it, remove names that are no longer needed. Link: https://patch.msgid.link/20260923160318.61c292103e38.I0e2918e21f8a20d200d371c1861ed2c5deac829d@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: support net detect match info version 3Miri Korenblit
Since API 77, firmware reports scan offload profile matches using SCAN_OFFLOAD_PROFILE_MATCH_RESULTS_S_VER_3, which has more channels (16 byte instead of 7). Somehow we missed this change, and the driver only handles the 5- and 7-byte layouts, so on such firmware it misparsed the match (reading band as energy) and could not recover matches beyond the first 56 channels. Add the version 3 match structure and select it based on the SCAN_OFFLOAD_PROFILES_QUERY_CMD notification version (in MVM, in MLD, this is the only version supported). In MVM, while walking the matched-channels bitmap, bound the channel index with IWL_FW_CHECK so firmware that sets a bit beyond n_nd_channels can no longer trigger an out-of-bounds read of nd_channels[]. Reviewed-by: Ilan Peer <ilan.peer@intel.com> Link: https://patch.msgid.link/20260923160318.07738ca44b54.I58162891250af9f46220fd01db667460e6dd621b@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: mld: correct EHT U-SIG-1 B20:25 reportJohannes Berg
This needs to be combined from two places, fix that. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Link: https://patch.msgid.link/20260923160318.e65cdac4424f.I23b05c26fc788081ad8aa2673e104e2215697416@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: mld: fix some UHR ELR bitsJohannes Berg
These were wrong in the driver based on the hardware definitions, fix them. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Link: https://patch.msgid.link/20260923160318.3fa552b3d795.I8098855c931e1f9df16951e2d527bb079eca0549@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: advertise 2xLDPC RX support for UHRJohannes Berg
In UHR, currently supported devices have 2x LDPC support. Enable the bit. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Link: https://patch.msgid.link/20260923160318.9771e88dbc3b.I22693891ed85fd0449ae17106e2502ec4ee2e086@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: mvm: fix LARI_CONFIG_EXTENSION version checkPagadala Yesu Anjaneyulu
The version guard used `< 1` instead of `!= 1`. With `< 1` the command would be sent for any firmware version >= 1, including future versions that may have a different structure, which could trigger a firmware assert due to a size/format mismatch. Fix the check to `!= 1` so the command is only sent when the firmware supports exactly version 1. Signed-off-by: Pagadala Yesu Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com> Link: https://patch.msgid.link/20260923160318.27693f88a8d7.Id6a4b91938cd7758c2be3b98379f1057e574cdad@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: mvm: debugfs: validate TAS response and loop boundsPagadala Yesu Anjaneyulu
iwl_dbgfs_tas_get_status_read() trusted the FW response layout and iterated with rsp->in_dual_radio + 1 without capping to the tas_status_mac array size. A malformed or inconsistent response could lead to out-of-bounds access while printing TAS status. Validate the GET_TAS_STATUS payload length before dereferencing rsp, free the response on early allocation failure, and cap both TAS loops with array size. This keeps the existing behavior for valid responses and hardens the debugfs path against invalid firmware data. Signed-off-by: Pagadala Yesu Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com> Link: https://patch.msgid.link/20260923160318.f03b511b938e.Ib5069ecf15340506498a28d965c49387cab609b1@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: mvm: remove indirection_tbl debugfs entryEmmanuel Grumbach
The RSS indirection table debugfs knob is not used, and its pattern repetition logic triggered a static analysis out-of-bounds report on the trailing copy that forms a one-past-the-end pointer. Rather than reworking unused code, drop the entry entirely. Assisted-by: GitHub-Copilot:claude-opus-5 Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Link: https://patch.msgid.link/20260923160318.bc19cf5a20b9.I04cbf6a929070775a7e0cb04c7330421e6777f4e@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: mld: separate HT/VHT/HE/EHT LDPC/STBC capabilitiesJohannes Berg
It appears that there are some APs that advertise STBC for HT and VHT, but don't actually support it for HE. Since the FW TLC will only use the mode we set (or fall back to legacy rates), we can set the bits according to the mode for STBC and LDPC. For EHT, there's no STBC at all, but LDPC support is more complex to determine. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Link: https://patch.msgid.link/20260922144819.cf235dddcbb3.I315c8089e341c6f7b2108276a32560595a8571fd@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2026-10-14wifi: iwlwifi: fw: fix dbg dest TLV size check by versionPagadala Yesu Anjaneyulu
Validate FW_DBG_DEST TLV size before using it: Validate the version byte first, then check the length of each version of the payload. Signed-off-by: Pagadala Yesu Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com> Link: https://patch.msgid.link/20260922144819.7eb8d71ff962.I81295f046c785da613331c6a619897ccf66007d6@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>