UPSTREAM: P2P: Implement wpas_p2p_move_go_csa()

Use channel switch mechanism to move a P2P GO to a new channel,
when required. In order to be able to reconfigure the GO channel,
split wpa_supplicant_conf_ap() function, so the frequency
configuration part can be reused to find additional CSA settings.

Cherry-picked from commit 73afc20d409652b89cbc2f5e3cf8583d6bf4dcaa

BUG=b:118785695
TEST=Successfully compiled

Change-Id: Ifbba8091ad4c4b9cc6ba87d4b339c7bf5ab82fb6
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Signed-off-by: Ratheesh S P <ratheesh.sp@globaledgesoftware.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/1358038
Commit-Ready: Ratheesh Selvakumar Pappa <ratheeshs@google.com>
Tested-by: Ratheesh Selvakumar Pappa <ratheeshs@google.com>
Reviewed-by: Srinivasa duvvuri <sduvvuri@google.com>
3 files changed