Bugzilla – Attachment 211852 Details for
Bug 375639
main-menu shows wrong SSID
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
Patch
gnome-main-menu-bnc375639-display-correct-ap.patch (text/x-patch), 1.43 KB, created by
Magnus Boman
on 2008-05-02 03:48:45 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Magnus Boman
Created:
2008-05-02 03:48:45 UTC
Size:
1.43 KB
patch
obsolete
>--- openSUSE:Factory/gnome-main-menu/gnome-main-menu-0.9.10/main-menu/src/network-status-agent.c 2008-04-14 09:29:20.000000000 +1000 >+++ network-status-agent.c 2008-05-02 13:47:51.000000000 +1000 >@@ -226,23 +226,23 @@ > > if (NM_IS_DEVICE_802_11_WIRELESS(device)) > { >- const GPtrArray *aps; >- gint i; >- info->type = DEVICE_TYPE_802_11_WIRELESS; >+ NMAccessPoint * activeap = NULL; >+ const GByteArray * ssid; > >+ info->type = DEVICE_TYPE_802_11_WIRELESS; > info->speed_mbs = nm_device_802_11_wireless_get_bitrate (NM_DEVICE_802_11_WIRELESS(device)); > info->hw_addr = g_strdup (nm_device_802_11_wireless_get_hw_address (NM_DEVICE_802_11_WIRELESS(device))); >- aps = nm_device_802_11_wireless_get_access_points (NM_DEVICE_802_11_WIRELESS(device)); >- for (i = 0; aps && i < aps->len; i++) >+ >+ activeap = nm_device_802_11_wireless_get_active_access_point (NM_DEVICE_802_11_WIRELESS(device)); >+ if (activeap) > { >- const GByteArray * ssid; >- ssid = nm_access_point_get_ssid (NM_ACCESS_POINT (g_ptr_array_index (aps, i))); >+ ssid = nm_access_point_get_ssid (NM_ACCESS_POINT (activeap)); > if (ssid) > info->essid = g_strdup (nm_utils_escape_ssid (ssid->data, ssid->len)); >- else >- info->essid = g_strdup ("(none)"); >- break; //fixme - we only show one for now >- } >+ } /* FIXME; Do we need to free activeap and ssid? */ >+ >+ if (! info->essid) >+ info->essid = g_strdup ("(none)"); > } > else if (NM_IS_DEVICE_802_3_ETHERNET (device)) > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 375639
:
211852
|
213335