util: Add detection whether WiFi interface is ad hoc on macOS

This commit only introduces framework to detect WiFi interface type.
This function is not yet integrated in any other code.

Change-Id: I072d654f7fdbd89fe5fee00b0400133d5cea19cf
Refs: #4019
diff --git a/.waf-tools/osx-frameworks.py b/.waf-tools/osx-frameworks.py
index 5366b72..477a7f7 100644
--- a/.waf-tools/osx-frameworks.py
+++ b/.waf-tools/osx-frameworks.py
@@ -34,12 +34,16 @@
                            use='OSX_COREFOUNDATION', fragment=OSX_SYSTEMCONFIGURATION_CODE,
                            mandatory=True)
 
+            conf.check_cxx(framework_name='Foundation', uselib_store='OSX_FOUNDATION',
+                           mandatory=True, compile_filename='test.mm')
+            conf.check_cxx(framework_name='CoreWLAN', uselib_store='OSX_COREWLAN',
+                           use="OSX_FOUNDATION", mandatory=True, compile_filename='test.mm')
+
             conf.define('HAVE_OSX_FRAMEWORKS', 1)
             conf.env['HAVE_OSX_FRAMEWORKS'] = True
         except:
-            Logs.warn("Compiling on OSX, but CoreFoundation, CoreServices, Security, or SystemConfiguration " +
-                      "framework is not functional.")
-            Logs.warn("The frameworks are known to work only with the Apple clang compiler")
+            Logs.warn("Compiling on macOS, but required framework(s) is(are) not functional.")
+            Logs.warn("Note that the frameworks are known to work only with the Apple clang compiler.")
 
 @TaskGen.extension('.mm')
 def m_hook(self, node):