Skip to content

Commit

Permalink
Extend WifiAccessPointsEnumerate to provide access point capabilities.
Browse files Browse the repository at this point in the history
  • Loading branch information
abeltrano committed Jul 27, 2024
1 parent c8fd895 commit c117987
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions protocol/protos/NetRemoteWifi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ message WifiAccessPointsEnumerateResultItem
string AccessPointId = 1;
string MacAddress = 2;
Microsoft.Net.Wifi.Dot11AccessPointCapabilities Capabilities = 3;
Microsoft.Net.Wifi.Dot11AccessPointAttributes Attributes = 5;
bool IsEnabled = 4;
}

Expand Down
2 changes: 2 additions & 0 deletions src/common/service/NetRemoteService.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ IAccessPointToNetRemoteAccessPointResultItem(IAccessPoint& accessPoint)
id.assign(std::cbegin(interfaceName), std::cend(interfaceName));

std::string macAddress = Ieee80211MacAddressToString(accessPoint.GetMacAddress());
auto dot11AccessPointAttributes = ToDot11AccessPointAttributes(accessPoint.GetAttributes());

auto accessPointController = accessPoint.CreateController();
if (accessPointController == nullptr) {
Expand Down Expand Up @@ -242,6 +243,7 @@ IAccessPointToNetRemoteAccessPointResultItem(IAccessPoint& accessPoint)
item.set_macaddress(std::move(macAddress));
item.set_isenabled(isEnabled);
*item.mutable_capabilities() = std::move(dot11AccessPointCapabilities);
*item.mutable_attributes() = std::move(dot11AccessPointAttributes);

return item;
}
Expand Down

0 comments on commit c117987

Please sign in to comment.