Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Issue 992006: Changed DisableTechnology to do a full device disable. (Closed)

Created:
10 years, 9 months ago by Eric Shienbrood
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org
Visibility:
Public.

Description

Changed DisableTechnology to do a full device disable. This causes a disconnect to occur on all devices with the specified technology, including teardown of ip state. This fixes issue 1821. I added a call to set_carrier() in __connman_device_disable. Testing included the following scenarios, running test-manager and route -n after each one to check that things were in the expected state. Note that there is a separate, pre-existing bug in which a technology can be shown in the list of "connected technologies" even when the technology is disabled. I will fix that in a separate CL. - Start up connman with wifi disabled. Enable wifi, connect to GoogleGuest, then disable wifi. - Start up connman with wifi enabled. Connect to GoogleGuest. Disable wifi, then re-enable it and connect to GoogleGuest. - Do the above two tests with 3G (except that the service connected to is not GoogleGuest). - With wifi connected, establish a 3G connection. Then disable wifi and make sure that all the expected routing table entries exist. Enable wifi and connect to GoogleGuest, and make sure everything goes back to the state it was in before wifi was disabled. - The above test, but with Ethernet taking the place of wifi, and wifi taking the place of 3G. - With wifi and 3G connected, plug in the Ethernet. Then disable wifi. Then unplug the Ethernet. Check that routing is set up for 3G, and load a web page.

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use set_carrier, not set_powered, and move to device_disable. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M files/src/device.c View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Eric Shienbrood
10 years, 9 months ago (2010-03-16 18:00:03 UTC) #1
Sam Leffler
Please also indicate the testing done. http://codereview.chromium.org/992006/diff/1/2 File files/src/device.c (right): http://codereview.chromium.org/992006/diff/1/2#newcode1289 files/src/device.c:1289: return set_powered(device, FALSE); ...
10 years, 9 months ago (2010-03-16 19:25:46 UTC) #2
Eric Shienbrood
The testing I did is described in the revised CL description. http://codereview.chromium.org/992006/diff/1/2 File files/src/device.c (right): ...
10 years, 9 months ago (2010-03-17 22:26:54 UTC) #3
Sam Leffler
LGTM after you do one more test for me: disable and reboot and verify the ...
10 years, 9 months ago (2010-03-17 23:47:34 UTC) #4
Eric Shienbrood
10 years, 9 months ago (2010-03-18 00:19:16 UTC) #5
OK, I ran the two tests you requested, and everything checks out. You're right
that we should be looking for opportunities to eliminate duplicate code. For
this bug, I was just trying to make a minimally disruptive change to fix the
problem.

Powered by Google App Engine
This is Rietveld 408576698