incorrect sorting when using dBm

Bug #617993 reported by landroni
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
wicd
Confirmed
Undecided
sandwood

Bug Description

When using dBm, wicd incorrectly sorts the list of available networks. For example, here I get the following list:
4 bars, wlan 1, -41dBm
3 bars, wlan 2, -64dBm
3 bars, wlan 3, -62dBm
3 bars, wlan 4, -65dBm
3 bars, wlan 5, -64dBm
3 bars, wlan 6, -69dBm
2 bars, wlan 6, -77dBm

At least from what I see, the sorting by dBm is more or less random. I also attach a screenshot.

Using 1.7.0 on Debian testing.

Tags: sorting
Revision history for this message
landroni (landroni) wrote :
Revision history for this message
landroni (landroni) wrote :

Attaching my log file.

sandwood (keysandwood)
Changed in wicd:
status: New → Confirmed
assignee: nobody → sandwood (keysandwood)
Revision history for this message
sandwood (keysandwood) wrote :

I confirm that the sorting by dBm is not done. This affect all the GUI (gtk, curses)

I have a patch for that :
1/ remove the sorting from networking.py , because this is not where it should be done, as the "view" (by strenght/by dBm) is not managed in this module
2/ Do it in wicd-daemon.py depending on the signal display type . Btw the sorting order depends on the sorting type, reverse shall be false for dBm as we want the highest on top

I attach a patch, but I am not sure how to proceed and if the patch is done against the correct version, this patch is for the 1.7.4.2 release. At least on my machine it's working correctly, I get network sorted appropriately.

Revision history for this message
sandwood (keysandwood) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.