Skip to content

Commit

Permalink
Fixing configuration block deployment and Wireless AP Network type (#386
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Ellerbach authored Jan 27, 2025
1 parent 53dadec commit f435ea7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,12 @@ public enum NetworkInterfaceType : byte
/// </summary>
[Description("Wi-Fi (802.11)")]
Wireless80211 = 71,


/// <summary>
/// The network interface uses a wireless Soft AP connection (IEEE 802.11 standard).
/// </summary>
[Description("Wi-Fi Access Point (802.11)")]
WirelessAP = 72,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4147,7 +4147,7 @@ public DeviceConfiguration.NetworkConfigurationProperties GetNetworkConfiguraton
networkConfiguration.StartupAddressMode = (byte)AddressMode.Invalid;
}

if (networkConfiguration.InterfaceType > (byte)NetworkInterfaceType.Wireless80211)
if (networkConfiguration.InterfaceType > (byte)NetworkInterfaceType.WirelessAP)
{
// fix this to invalid
networkConfiguration.InterfaceType = (byte)NetworkInterfaceType.Unknown;
Expand Down Expand Up @@ -4776,7 +4776,8 @@ public UpdateDeviceResult UpdateDeviceConfiguration<T>(T configuration, uint blo
{
Commands.Monitor_UpdateConfiguration cmd = new Commands.Monitor_UpdateConfiguration
{
Configuration = (uint)GetDeviceConfigurationOption(configuration)
Configuration = (uint)GetDeviceConfigurationOption(configuration),
BlockIndex = blockIndex,
};

// get packet length, either the maximum allowed size or whatever is still available to TX
Expand Down

0 comments on commit f435ea7

Please sign in to comment.