Skip to content

Commit

Permalink
FIX: [droid] ignore wifi-direct net intf (p2p)
Browse files Browse the repository at this point in the history
  • Loading branch information
koying committed Mar 29, 2016
1 parent 916ec38 commit da31259
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions xbmc/network/linux/NetworkLinux.cpp
Expand Up @@ -116,6 +116,12 @@ bool CNetworkInterfaceLinux::IsEnabled()

bool CNetworkInterfaceLinux::IsConnected()
{
#ifdef TARGET_ANDROID
// ignore wifi direct interfaces
if (StringUtils::StartsWithNoCase(m_interfaceName, "p2p"))
return false;
#endif

struct ifreq ifr;
int zero = 0;
memset(&ifr,0,sizeof(struct ifreq));
Expand Down

0 comments on commit da31259

Please sign in to comment.