OSDN Git Service

Rematch wifi networks when the avoid bad wifi setting changes.
authorLorenzo Colitti <lorenzo@google.com>
Wed, 21 Sep 2016 05:22:33 +0000 (14:22 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Wed, 21 Sep 2016 06:10:14 +0000 (15:10 +0900)
commit836d8788a8ed4eb44dbd7e3a24c77c2cc435573e
tree21d499d90cfd6455923db9d61358decce4b7662f
parent7e5b9e3d326095d9c49fb968db015a69ab01b9c4
Rematch wifi networks when the avoid bad wifi setting changes.

Currently, when the avoid bad wifi setting changes, we rematch
all networks and requests, but do not update any NetworkFactories
with new scores. This means that if a wifi network's score goes
down as a result of enabling bad wifi avoidance, we will not look
for another network (e.g., cell data) to satisfy its requests.

This makes it so that when the user enables avoiding bad wifi,
we will attempt to bring up cell data will if it is not already
connected.

Bug: 31075769
Change-Id: Ie5b685be8676999adea8c9ecbbc1abb92f81a74f
services/core/java/com/android/server/ConnectivityService.java