Support for Ubuntu iwlN wifi devices.

This commit is contained in:
Robin E. R. Davies
2024-11-25 18:14:32 -05:00
parent 8787073338
commit 7651bc97a2
5 changed files with 155 additions and 66 deletions
+3 -3
View File
@@ -100,10 +100,10 @@ PiPedalVersion::PiPedalVersion(PiPedalModel&model)
this->webAddresses_.push_back(MakeWebAddress(ethAddress,port));
}
// yyx: fix this for ubuntu.
std::string wlanAddr = GetInterfaceIpv4Address("wlan0");
if (wlanAddr.length() != 0)
auto wlanAddr = GetWlanIpv4Address();
if (wlanAddr)
{
this->webAddresses_.push_back(MakeWebAddress(wlanAddr,port));
this->webAddresses_.push_back(MakeWebAddress(*wlanAddr,port));
}
std::string p2pAddr = GetInterfaceIpv4Address("p2p-wlan0-0");