P2P: Prefer driver preferred channels if no user preferred channels

During P2P group formation, user preferred channel would be
preferred over the STA channel only if STA is on 2.4GHz channel.
Due to this, driver preferred channel is preferred over the
user preferred channel for P2P group formation in standalone P2P and
the cases where STA connected on 5GHz channel.

When the STA is not on 2.4GHz channel, consider the driver preferred
frequency only when there is no user preferred channel list specified
in the config file for P2P group formation.

Bug: 225823592
Test: Manual - P2P + STA connection tests in different bands
Fixes: 70e5f9dc ("Prefer channel from P2P Preferred channel list for P2P Group formation"
Change-Id: Id9ffba87b9a8b477e4c4d8be6d803d94fd0aaa14
Signed-off-by: Sreeramya Soratkal <quic_ssramya@quicinc.com>
1 file changed