From: Vadim Zeitlin Date: Sat, 5 Feb 2011 16:14:24 +0000 (+0000) Subject: Check for WLAN interface names in wxDialUpManager under Unix. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/55dffc4f13e3919e6254467ffe86e2b870a6d747 Check for WLAN interface names in wxDialUpManager under Unix. Recognize "wlan" and "ath" interfaces as well as the "eth" ones. Closes 12923. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/dialup.cpp b/src/unix/dialup.cpp index 60f48784b4..2482dfb28a 100644 --- a/src/unix/dialup.cpp +++ b/src/unix/dialup.cpp @@ -608,7 +608,10 @@ wxDialUpManagerImpl::CheckProcNet() while (fgets(output, 256, f) != NULL) { - if ( strstr(output, "eth") ) // network card + // Test for the known network interface names + if ( strstr(output, "eth") + || strstr(output, "wlan") + || strstr(output, "ath") ) { netDevice |= NetDevice_LAN; }