hostap/src/p2p
Jouni Malinen 79329ae0aa P2P: Verify local driver preferred frequencies for P2P use cases
Previously the peer operating channel preference was accepted if the
indicated frequency was listed in the local preference list from the
driver. This was assuming that the driver included only channels that
are currently enabled for GO operation. Since that might not be the
case, filter the local preference list by doing an explicit validation
of the indicated channels for P2P support.

This moves the similar validation steps from two other code paths in
p2p_check_pref_chan_recv() and p2p_check_pref_chan_no_recv() into a
common filtering step in p2p_check_pref_chan() for all three cases.

This avoids issues to start the GO in cases where the preferred
frequency list from the driver may include channels that are not
currently enabled for P2P GO use (e.g., 5 GHz band in world roaming
configuration).

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2017-02-16 12:40:57 +02:00
..
Makefile tests: Add p2p-fuzzer 2015-04-22 11:44:19 +03:00
p2p.c P2P: Add P2P_SET override_pref_op_chan to allow overriding preference 2017-02-16 12:08:22 +02:00
p2p.h P2P: Add P2P_SET override_pref_op_chan to allow overriding preference 2017-02-16 12:08:22 +02:00
p2p_build.c P2PS: Correct config_methods for different P2P cases 2016-05-19 19:16:10 +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: Verify local driver preferred frequencies for P2P use cases 2017-02-16 12:40:57 +02:00
p2p_group.c P2P: Fix common frequencies calculation for a group 2016-09-22 23:48:14 +03:00
p2p_i.h P2P: Add P2P_SET override_pref_op_chan to allow overriding preference 2017-02-16 12:08:22 +02:00
p2p_invitation.c P2P: Reduce off channel wait time for some P2P Action frames 2016-02-06 18:19:03 +02: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 P2P: Clear old P2PS provision data 2016-10-29 00:55:49 +03:00
p2p_sd.c P2P: Do not use wait_time for SD Response TX without fragmentation 2016-12-21 00:18:03 +02:00
p2p_utils.c P2P: Fix the calculation of group common freqs 2015-09-25 21:05:42 +03:00