mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 17:00:29 +01:00
settings: quiet warning when checking for AdHoc WPA connections
This commit is contained in:
parent
085d822f28
commit
8126947e08
1 changed files with 2 additions and 1 deletions
|
|
@ -1049,7 +1049,8 @@ is_adhoc_wpa (NMConnection *connection)
|
|||
*/
|
||||
|
||||
s_wifi = nm_connection_get_setting_wireless (connection);
|
||||
g_return_val_if_fail (s_wifi != NULL, FALSE);
|
||||
if (!s_wifi)
|
||||
return FALSE;
|
||||
|
||||
mode = nm_setting_wireless_get_mode (s_wifi);
|
||||
if (g_strcmp0 (mode, NM_SETTING_WIRELESS_MODE_ADHOC) != 0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue