Skip to content

Commit bbe2808

Browse files
authored
Fix declaration of wireless config enums (#127)
***PUBLISH_RELEASE*** ***UPDATE_DEPENDENTS***
1 parent e1ae72c commit bbe2808

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/nanoFramework.System.Net/NetworkInformation/Wireless80211Configuration.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,13 @@ public enum ConfigurationOptions : byte
168168
/// Will auto connect when AP is available or after being disconnected.
169169
/// This option forces enabling the Wireless station.
170170
/// </summary>
171-
AutoConnect = 0x04 & Enable,
171+
AutoConnect = 0x04 | Enable,
172172

173173
/// <summary>
174174
/// Enables SmartConfig (if available) for this Wireless station.
175175
/// This option forces enabling the Wireless station.
176176
/// </summary>
177-
SmartConfig = 0x08 & Enable,
177+
SmartConfig = 0x08 | Enable,
178178
};
179179

180180
#region native methods

source/nanoFramework.System.Net/NetworkInformation/WirelessAPConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public enum ConfigurationOptions : byte
230230
/// Will automatically start the Soft AP when CLR starts.
231231
/// This option forces enabling the Wireless Soft AP.
232232
/// </summary>
233-
AutoStart = 0x04 & Enable,
233+
AutoStart = 0x04 | Enable,
234234

235235
/// <summary>
236236
/// The SSID for the Soft AP will be hidden.

0 commit comments

Comments
 (0)