[PATCH v2] PR: Update device capabilities for OOB discovery in PASN wrapper

Jouni Malinen j at w1.fi
Mon Aug 17 14:42:58 PDT 2026


On Wed, Aug 12, 2026 at 03:00:06AM +0000, Emily Xia wrote:
> Previously a peer device discovered by out-of-band (OOB) discovery has
> empty capabilities in pr_caps, ntb_caps, and edca_caps. This caused the
> final decision of format_bw in wpas_pr_ranging_params to evaluate to 0
> because peer_format_bw was always 0.
> 
> When processing the PASN ranging wrapper for peers discovered via OOB
> discovery, update dev->pr_caps, dev->ntb_caps, and dev->edca_caps with
> the parsed capabilities in standalone statements after matching checks
> succeed.

Thanks, applied with some cleanup.

> v2:
> - Improve coding style by separating OOB capability assignment statements
>   from conditional error check blocks into standalone statements.

This v2 was on top of v1, but should really have been rebased on top of
hostap.git main branch. Anyway, I applied these two patches and squashed
them into a single commit.
 
-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list