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

Side by Side Diff: src/udev.c

Issue 6673092: flimflam: Support all gobi devices. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/flimflam.git@master
Patch Set: Style police Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * 2 *
3 * Connection Manager 3 * Connection Manager
4 * 4 *
5 * Copyright (C) 2007-2009 Intel Corporation. All rights reserved. 5 * Copyright (C) 2007-2009 Intel Corporation. All rights reserved.
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify 7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as 8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation. 9 * published by the Free Software Foundation.
10 * 10 *
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 */ 430 */
431 has_modem = TRUE; 431 has_modem = TRUE;
432 goto done; 432 goto done;
433 } 433 }
434 434
435 parent = udev_device_get_parent(device); 435 parent = udev_device_get_parent(device);
436 if (parent == NULL) 436 if (parent == NULL)
437 goto done; 437 goto done;
438 438
439 driver = udev_device_get_driver(parent); 439 driver = udev_device_get_driver(parent);
440 » if (g_strcmp0(driver, "QCUSBNet2k") == 0) { 440 » if (g_strcmp0(driver, "QCUSBNet2k") == 0 ||
441 » » /* QCUSBNet2k is always associated with modems */ 441 » g_strcmp0(driver, "GobiNet") == 0 ||
442 » g_strcmp0(driver, "gobi") == 0) {
443 » » /*
444 » » * This family of drivers is always associated with Gobi 3G
445 » » * modems.
446 » » */
442 has_modem = TRUE; 447 has_modem = TRUE;
443 goto done; 448 goto done;
444 } 449 }
445 450
446 if (g_strcmp0(driver, "cdc_ether") != 0 && 451 if (g_strcmp0(driver, "cdc_ether") != 0 &&
447 g_strcmp0(driver, "cdc_ncm") != 0) 452 g_strcmp0(driver, "cdc_ncm") != 0)
448 goto done; 453 goto done;
449 454
450 /* 455 /*
451 * cdc_ether could be a USB ethernet controller or the packet 456 * cdc_ether could be a USB ethernet controller or the packet
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 device_list = NULL; 591 device_list = NULL;
587 592
588 if (udev_ctx == NULL) 593 if (udev_ctx == NULL)
589 return; 594 return;
590 595
591 udev_monitor_filter_remove(udev_mon); 596 udev_monitor_filter_remove(udev_mon);
592 597
593 udev_monitor_unref(udev_mon); 598 udev_monitor_unref(udev_mon);
594 udev_unref(udev_ctx); 599 udev_unref(udev_ctx);
595 } 600 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698