Advertisement
Guest User

Untitled

a guest
Apr 11th, 2011
1,031
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.96 KB | None | 0 0
  1. diff -ruN network-manager.orig/src/nm-device-wifi.c network-manager/src/nm-device-wifi.c
  2. --- network-manager.orig/src/nm-device-wifi.c   2010-02-20 16:51:36.000000000 +0100
  3. +++ network-manager/src/nm-device-wifi.c        2010-08-18 21:07:38.861447651 +0200
  4. @@ -1714,15 +1714,13 @@
  5.         case NM_DEVICE_STATE_CONFIG:
  6.         case NM_DEVICE_STATE_NEED_AUTH:
  7.         case NM_DEVICE_STATE_IP_CONFIG:
  8. -               /* Don't scan when unusable or activating */
  9. +       case NM_DEVICE_STATE_ACTIVATED:
  10. +               /* Don't scan when unusable, activating or already activated */
  11.                 return FALSE;
  12.         case NM_DEVICE_STATE_DISCONNECTED:
  13.         case NM_DEVICE_STATE_FAILED:
  14.                 /* Can always scan when disconnected */
  15.                 return TRUE;
  16. -       case NM_DEVICE_STATE_ACTIVATED:
  17. -               /* Need to do further checks when activated */
  18. -               break;
  19.         }
  20.  
  21.         /* Don't scan if the supplicant is busy */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement