mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-19 01:58:38 +02:00
nmcli/devices: fix sorting of APs
Sort WEP access points as intended -- down, not up. Fixes:550e3bbdd8('cli: device: color WEP APs differently in "wifi list"') https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1224 (cherry picked from commit3d82380e4d)
This commit is contained in:
parent
adb1d43f66
commit
c2b9762422
1 changed files with 1 additions and 1 deletions
|
|
@ -1238,7 +1238,7 @@ compare_aps(gconstpointer a, gconstpointer b, gpointer user_data)
|
|||
NMAccessPoint *apb = *(NMAccessPoint **) b;
|
||||
|
||||
/* Sort the deprecated WEP connections last. */
|
||||
NM_CMP_DIRECT(_ap_is_wep(apb), _ap_is_wep(apa));
|
||||
NM_CMP_DIRECT(_ap_is_wep(apa), _ap_is_wep(apb));
|
||||
|
||||
NM_CMP_DIRECT(nm_access_point_get_strength(apb), nm_access_point_get_strength(apa));
|
||||
NM_CMP_DIRECT(nm_access_point_get_frequency(apa), nm_access_point_get_frequency(apb));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue