Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 222339 Details for
Bug 308085
net-misc/networkmanager-0.8 - patch for disabling background network scanning when connected to an AP
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch disables background network scanning when connected to an AP
networkmanager-0.8-disable-background-scanning.patch (text/plain), 1.05 KB, created by
Dereck
on 2010-03-06 20:29:35 UTC
(
hide
)
Description:
Patch disables background network scanning when connected to an AP
Filename:
MIME Type:
Creator:
Dereck
Created:
2010-03-06 20:29:35 UTC
Size:
1.05 KB
patch
obsolete
>diff -Nuar NetworkManager-0.8/src/nm-device-wifi.c NetworkManager-0.8-dev/src/nm-device-wifi.c >--- NetworkManager-0.8/src/nm-device-wifi.c 2010-02-18 10:47:45.000000000 -0500 >+++ NetworkManager-0.8-dev/src/nm-device-wifi.c 2010-03-06 14:45:49.162054195 -0500 >@@ -1722,7 +1722,8 @@ > return TRUE; > case NM_DEVICE_STATE_ACTIVATED: > /* Need to do further checks when activated */ >- break; >+ /* Don't scan when actived, and screw the checks */ >+ return FALSE; > } > > /* Don't scan if the supplicant is busy */ >@@ -1789,11 +1790,16 @@ > NMDeviceWifi *self = NM_DEVICE_WIFI (user_data); > NMDeviceWifiPrivate *priv = NM_DEVICE_WIFI_GET_PRIVATE (self); > gboolean backoff = FALSE; >+ NMDeviceState state; >+ >+ state = nm_device_get_state (NM_DEVICE (self)); > > if (check_scanning_allowed (self)) { > if (nm_supplicant_interface_request_scan (priv->supplicant.iface)) { >- /* success */ >- backoff = TRUE; >+ if ((state == NM_DEVICE_STATE_ACTIVATED) || (nm_supplicant_interface_request_scan (priv->supplicant.iface))) { >+ /* success */ >+ backoff = TRUE; >+ } > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 308085
:
222309
|
222337
|
222339
|
222369