[PATCH ath-next] wifi: ath12k: Avoid accessing uninitialized arvif->ar during beacon miss

Jeff Johnson jeff.johnson at oss.qualcomm.com
Mon Jun 23 07:48:39 PDT 2025


On Thu, 19 Jun 2025 00:26:35 +0530, Rameshkumar Sundaram wrote:
> During beacon miss handling, ath12k driver iterates over active virtual
> interfaces (vifs) and attempts to access the radio object (ar) via
> arvif->deflink->ar.
> 
> However, after commit aa80f12f3bed ("wifi: ath12k: defer vdev creation for
> MLO"), arvif is linked to a radio only after vdev creation, typically when
> a channel is assigned or a scan is requested.
> For P2P capable devices, a default P2P interface is created by
> wpa_supplicant along with regular station interfaces, these serve as dummy
> interfaces for P2P-capable stations, lack an associated netdev and initiate
> frequent scans to discover neighbor p2p devices. When a scan is initiated
> on such P2P vifs, driver selects destination radio (ar) based on scan
> frequency, creates a scan vdev, and attaches arvif to the radio. Once the
> scan completes or is aborted, the scan vdev is deleted, detaching arvif
> from the radio and leaving arvif->ar uninitialized.
> 
> [...]

Applied, thanks!

[1/1] wifi: ath12k: Avoid accessing uninitialized arvif->ar during beacon miss
      commit: 36670b67de18f1e5d34900c5d2ac60a8970c293c

Best regards,
-- 
Jeff Johnson <jeff.johnson at oss.qualcomm.com>




More information about the ath12k mailing list