[PATCH] P2P: Fix association frequency conflict check with BSS_SELECTION
Stan.Wu
stan.cc.wu at realtek.com
Tue Nov 17 02:31:32 PST 2026
Hi,
Please find the attached patch for a false frequency conflict in
wpas_start_assoc_cb() when WPA_DRIVER_FLAGS_BSS_SELECTION is enabled on
single-channel concurrency drivers.
When WPA_DRIVER_FLAGS_BSS_SELECTION (e.g., WIPHY_FLAG_SUPPORTS_FW_ROAM)
is enabled, wpas_start_assoc_cb() intentionally skips setting
params.freq.freq (leaving it 0) when ssid->bssid_set is unset so the
driver is not restricted to a single channel, and instead provides the
target BSS frequency in params.freq_hint (see commits 22628eca3440 and
7ac7fd43aa6e).
However, the single-channel concurrency check in wpas_start_assoc_cb()
still compares the active shared radio frequency only against
params.freq.freq. As a result, whenever another interface (such as a P2P
group) is active, reconnecting an infrastructure STA even on the exact
same channel triggers a false conflict ('Assoc conflicting freq found
(<freq> != 0)') and passes 0 to wpas_p2p_handle_frequency_conflicts().
This patch falls back to params.freq_hint when params.freq.freq is 0
and requires target_freq > 0 before flagging a frequency conflict so an
unspecified target frequency (0) is not treated as a valid channel. Note
that sme_send_authentication() unconditionally sets params.freq =
bss->freq and is not affected.
Verified on a single-channel concurrency driver
(num_different_channels=1 with WIPHY_FLAG_SUPPORTS_FW_ROAM) for both
same-channel concurrent reconnection and cross-channel conflict
handling.
The patch is attached to avoid whitespace corruption by the mail client.
Signed-off-by: Stan Wu <stan.cc.wu at realtek.com>
BR
Stan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-P2P-Fix-association-frequency-conflict-check-with-BS.patch
Type: application/octet-stream
Size: 2460 bytes
Desc: 0001-P2P-Fix-association-frequency-conflict-check-with-BS.patch
URL: <http://lists.infradead.org/pipermail/hostap/attachments/20261117/fe269459/attachment.obj>
More information about the Hostap
mailing list