]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Ignore association events when GO is not active
authorHuang Chenming <chenhuan@qti.qualcomm.com>
Tue, 14 Oct 2025 11:41:33 +0000 (17:11 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 17 Oct 2025 13:48:51 +0000 (16:48 +0300)
commit15edb9b3db02511368c3ae526b1dc8fcdc6931ee
treeb072a9ea6177049d6e1de68cc10d138e2769c76c
parenta1ceb3240dabd4db5127aea488a365436600ba51
P2P: Ignore association events when GO is not active

Address an issue observed in the following scenario:
- DUT operating in STA+AP SCC mode on 5200 MHz, with P2P GO initially
  on 5745 MHz.
- Driver PCL restrictions forced GO to switch to 5200 MHz.
- hostapd attempted to revert to 5745 MHz, as 5200 MHz was listed in the
  avoid frequency range reported by the driver.
- Driver again enforced SCC on 5200 MHz.
- Channel switch triggered from hostapd and driver again and again.
- Leftover association events triggered crashes during channel switch
  failure and group restart.

Fix: Add an early check in hostapd_notif_assoc() to ignore association
events when the P2P GO instance is not started or has been disabled.

Signed-off-by: Huang Chenming <chenhuan@qti.qualcomm.com>
src/ap/drv_callbacks.c