mesh: do not switch primary/secondary channels

Since we use mesh and AP together, both have to be on the same channel.
Even though mesh only sends scan request on primary channel, driver may
cache scan results from earlier and send those to wpa_supplicant. If
primary channel happens to be quiet, and a cached scan result from
secondary channel is sent to supplicant, a primary/secondary channel
switch may happen. Bypass the logic if supplicant is in mesh mode.

BUG=b:31891869
TEST=manually on gale and verify the code block is not executed anymore.

Change-Id: I1007c1cdf1ab577bbd09c0684ff533ad429d13c9
Reviewed-on: https://chromium-review.googlesource.com/394166
Commit-Ready: Julan Hsu <julanhsu@google.com>
Tested-by: Julan Hsu <julanhsu@google.com>
Reviewed-by: Srinivasa duvvuri <sduvvuri@chromium.org>
1 file changed