2006-10-25 Dan Williams <dcbw@redhat.com>

* src/NetworkManagerUtils.c
		- (nm_utils_supplicant_request_with_check): suppress messages for the
			"SCAN" command


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2085 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2006-10-25 04:11:05 +00:00
parent 9fa4a67aa5
commit f05b1fc87f
2 changed files with 15 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2006-10-25 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerUtils.c
- (nm_utils_supplicant_request_with_check): suppress messages for the
"SCAN" command
2006-10-24 Dan Williams <dcbw@redhat.com>
Reduce the number of times the Gnome applet wakes up, especially when

View file

@ -796,12 +796,19 @@ nm_utils_supplicant_request_with_check (struct wpa_ctrl *ctrl,
response = g_malloc (RESPONSE_SIZE);
len = RESPONSE_SIZE;
#ifdef SUPPLICANT_DEBUG
nm_info ("SUP: sending command '%s'", err_msg_cmd ? err_msg_cmd : command);
/* Hack: don't print anything out for SCAN commands since they
* happen so often.
*/
if (strcmp (command, "SCAN") != 0)
nm_info ("SUP: sending command '%s'", err_msg_cmd ? err_msg_cmd : command);
#endif
wpa_ctrl_request (ctrl, command, strlen (command), response, &len, NULL);
response[len] = '\0';
#ifdef SUPPLICANT_DEBUG
{
/* Hack: don't print anything out for SCAN commands since they
* happen so often.
*/
if (strcmp (command, "SCAN") != 0) {
response = kill_newline (response, &len);
nm_info ("SUP: response was '%s'", response);
}