P2P: Use best-overall channel in p2p_reselect_channel()
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 14 Mar 2013 14:05:47 +0000 (16:05 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 14 Mar 2013 14:05:47 +0000 (16:05 +0200)
commit62e10e6e3d720d44df83941b047213e3df17adff
treecf97d27e32eff4cac6ab4afa9a5dbbd50029c364
parenta70a52c316b2e8674ee6e60c63a1314b1a28ba58
P2P: Use best-overall channel in p2p_reselect_channel()

Commit 50285f5ca8086cca45afa42cd23c3a3c1cd58f40 ended up forcing channel
re-selection in number of cases where the peer would actually have
accepted our initial preference. Fix the parts related to best channel
information by using best_freq_overall as the highest priority and by
skipping the band changes if the peer supports the channel that we
picked since these were based on the assumption that
p2p_reselect_channel() is called only if the peer could not accept our
initial choice which is not the case anymore.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/p2p/p2p_go_neg.c