libtool-cross 2.2.6[ab]: Drop legacy staging, taken from poky
[openembedded.git] / recipes / networkmanager / networkmanager-0.7 / cx3110_bring_up.patch
blobdb420ce2badc54c2048a2833f737f026e7c91d27
1 Index: NetworkManager-0.7.0/src/nm-device-wifi.c
2 ===================================================================
3 --- NetworkManager-0.7.0.orig/src/nm-device-wifi.c
4 +++ NetworkManager-0.7.0/src/nm-device-wifi.c
5 @@ -364,6 +364,15 @@ real_get_generic_capabilities (NMDevice
6 const char *iface = nm_device_get_iface (dev);
7 gboolean success;
9 + /* The cx3110 driver has to be UP in order to get its capabilities. */
10 + gboolean no_firmware = FALSE;
11 + const char *driver = nm_device_get_driver (dev);
12 + if (driver && !strcmp ("wlan-omap", driver) && !nm_system_device_is_up (dev)) {
13 + if (!nm_device_hw_bring_up (dev, TRUE, &no_firmware))
14 + nm_warning ("(%s): couldn't bring up interface to get capabilities.",
15 + iface);
16 + }
18 memset (&range, 0, sizeof (struct iw_range));
19 success = wireless_get_range (NM_DEVICE_WIFI (dev), &range, &response_len);
20 if (!success)