Prefer channel from P2P Preferred channel list for P2P Group formation

In a STA connected case, the P2P prefers STA channel over the
channel from Preferred frequency list mentioned in config file
during P2P group formation. The current change prioritizes usage
of preferred frequency list over STA channel.

Bug: 197360994
Test: Tested P2P connection in STA disconnected,
      STA connected to 2G and STA connected to 5G cases.

Signed-off-by: Vinayak Yadawad <>
Change-Id: I3325a060b5975aedc247ee5eb8c01831a245efc4
Merged-In: I3325a060b5975aedc247ee5eb8c01831a245efc4
(cherry picked from commit 8db34573537efdb1c811e19c7b93ed4f3bb01d4a)
1 file changed