mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-04 23:28:08 +02:00
ifupdown: drop a bogus warning
The key might be a wireless setting that has already been processed, not a wireless-security setting.
This commit is contained in:
parent
6da97a8c48
commit
a5c204a69a
1 changed files with 4 additions and 6 deletions
|
|
@ -318,11 +318,9 @@ update_wireless_security_setting_from_if_block(NMConnection *connection,
|
|||
IfupdownStrDupeFunc dupe_func = map_by_mapping (dupe_mapping, curr->key+wireless_l);
|
||||
IfupdownStrToTypeFunc type_map_func = map_by_mapping (type_mapping, curr->key+wireless_l);
|
||||
GFreeFunc free_func = map_by_mapping (free_type_mapping, curr->key+wireless_l);
|
||||
if(!newkey || !dupe_func) {
|
||||
nm_log_warn (LOGD_SETTINGS, "no (wireless) mapping found for key: %s",
|
||||
curr->key);
|
||||
if(!newkey || !dupe_func)
|
||||
goto next;
|
||||
}
|
||||
|
||||
property_value = (*dupe_func) (curr->data, connection);
|
||||
nm_log_info (LOGD_SETTINGS, "setting wireless security key: %s=%s",
|
||||
newkey, property_value);
|
||||
|
|
@ -353,9 +351,9 @@ update_wireless_security_setting_from_if_block(NMConnection *connection,
|
|||
IfupdownStrDupeFunc dupe_func = map_by_mapping (dupe_mapping, curr->key+wpa_l);
|
||||
IfupdownStrToTypeFunc type_map_func = map_by_mapping (type_mapping, curr->key+wpa_l);
|
||||
GFreeFunc free_func = map_by_mapping (free_type_mapping, curr->key+wpa_l);
|
||||
if(!newkey || !dupe_func) {
|
||||
if(!newkey || !dupe_func)
|
||||
goto next;
|
||||
}
|
||||
|
||||
property_value = (*dupe_func) (curr->data, connection);
|
||||
nm_log_info (LOGD_SETTINGS, "setting wpa security key: %s=%s",
|
||||
newkey,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue