diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2019-08-28 22:31:29 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-10-01 09:49:33 +0200 |
commit | 31a2710f113ba8b335cdb3cc972b1e7cb91e40d6 (patch) | |
tree | 0028106be50c6e07c19c154c27e75ac4de8f50cd | |
parent | 82e79e40a5ca05b5fa9a40cfb55c9c775ac8c849 (diff) | |
download | NetworkManager-31a2710f113ba8b335cdb3cc972b1e7cb91e40d6.tar.gz |
meson: Simplified WiFi detection when IWD is enabled
-rw-r--r-- | meson.build | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/meson.build b/meson.build index 9dc059ee64..85b5f6a306 100644 --- a/meson.build +++ b/meson.build @@ -280,9 +280,7 @@ config_h.set_quoted('NM_DIST_VERSION', dist_version) enable_wifi = get_option('wifi') enable_iwd = get_option('iwd') -if enable_iwd - assert(enable_wifi, 'Enabling iwd support requires Wi-Fi support as well') -endif +assert((not enable_iwd) or enable_wifi, 'Enabling iwd support requires Wi-Fi support as well') config_h.set10('WITH_IWD', enable_iwd) enable_wext = get_option('wext') |