hostapd/src/p2p
Sreeramya Soratkal d5a9331f97 P2P: Copy only valid opclasses while filtering out 6 GHz channels
Copy channels from only valid operating classes in the source channel
list while preparing a non-6 GHz channel/op-classes list when the 6 GHz
band is not used for P2P GO negotiation.

Earlier, during preparation of P2P channels for GO negotiation, a union
of the GO channels and the P2P Client channels is used. While generating
the union in p2p_channels_union_inplace() as the first list itself has
P2P_MAX_REG_CLASSES number of entries, the operating classes from the
second list which are not in the first list were not getting considered.

Fix this by not setting the dst->reg_classes to too large a value.

Fixes: f7d4f1cbec ("P2P: Add a mechanism for allowing 6 GHz channels in channel lists")
Signed-off-by: Sreeramya Soratkal <quic_ssramya@quicinc.com>
2022-03-30 20:42:14 +03:00
..
Makefile build: Make more library things common 2020-10-12 20:20:35 +03:00
p2p.c P2P: Do not stop Listen state if it is moving to correct channel 2021-08-12 17:52:28 +03:00
p2p.h P2P: Allow connection on 6 GHz channels if requested 2021-06-14 20:24:37 +03:00
p2p_build.c P2P: Align p2p_buf_add_pref_channel_list() prototype with definition 2021-08-26 16:04:58 +03:00
p2p_dev_disc.c P2PS: Refactor p2p_data::query_hash and p2p_data::query_count use 2015-06-15 17:30:01 +03:00
p2p_go_neg.c P2P: Make p2p_check_pref_chan_no_recv() easier for static analyzers 2021-09-30 18:27:37 +03:00
p2p_group.c P2P: Stop listen state if Action frame TX is needed on another channel 2019-02-17 16:53:03 +02:00
p2p_i.h P2P: Align p2p_buf_add_pref_channel_list() prototype with definition 2021-08-26 16:04:58 +03:00
p2p_invitation.c P2P: Allow connection on 6 GHz channels if requested 2021-06-14 20:24:37 +03:00
p2p_parse.c P2P: Filter control chars in group client device name similarly to peer 2015-10-26 23:43:45 +02:00
p2p_pd.c Replace "sanity" with "validity" 2021-10-11 20:25:21 +03:00
p2p_sd.c P2P: Do not use wait_time for SD Response TX for last fragmentation 2017-04-01 14:25:26 +03:00
p2p_utils.c P2P: Copy only valid opclasses while filtering out 6 GHz channels 2022-03-30 20:42:14 +03:00