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
while (fgets(output, 256, f) != NULL)
{
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;
}
{
netDevice |= NetDevice_LAN;
}