Skip to content

Commit e1ae72c

Browse files
authored
Update Wireless ConfigurationOptions (#126)
***PUBLISH_RELEASE*** ***UPDATE_DEPENDENTS***
1 parent 27472a8 commit e1ae72c

File tree

3 files changed

+26
-13
lines changed

3 files changed

+26
-13
lines changed

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

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,25 +149,32 @@ public static Wireless80211Configuration[] GetAllWireless80211Configurations()
149149
public enum ConfigurationOptions : byte
150150
{
151151
/// <summary>
152-
/// No flags set.
152+
/// No option set.
153153
/// </summary>
154154
None = 0,
155155

156+
/// <summary>
157+
/// Disables the Wireless station.
158+
/// </summary>
159+
Disable = 0x01,
160+
156161
/// <summary>
157162
/// Enables the Wireless station.
158163
/// If not set the wireless station is disabled.
159164
/// </summary>
160-
Enable = 0x01,
165+
Enable = 0x02,
161166

162167
/// <summary>
163168
/// Will auto connect when AP is available or after being disconnected.
169+
/// This option forces enabling the Wireless station.
164170
/// </summary>
165-
AutoConnect = 0x02,
171+
AutoConnect = 0x04 & Enable,
166172

167173
/// <summary>
168-
/// Enables SmartConfig (if available) for this Wireless station
174+
/// Enables SmartConfig (if available) for this Wireless station.
175+
/// This option forces enabling the Wireless station.
169176
/// </summary>
170-
SmartConfig = 0x04,
177+
SmartConfig = 0x08 & Enable,
171178
};
172179

173180
#region native methods

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

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,25 +211,31 @@ public void DeAuthStation(int stationIndex)
211211
public enum ConfigurationOptions : byte
212212
{
213213
/// <summary>
214-
/// No flags set.
214+
/// No option set.
215215
/// </summary>
216216
None = 0,
217217

218+
/// <summary>
219+
/// Disables the Wireless Soft AP.
220+
/// </summary>
221+
Disable = 0x01,
222+
218223
/// <summary>
219224
/// Enables the Wireless Soft AP.
220-
/// If not set the wireless Soft AP is disabled.
225+
/// If not set the Wireless Soft AP is disabled.
221226
/// </summary>
222-
Enable = 0x01,
227+
Enable = 0x02,
223228

224229
/// <summary>
225-
/// Will automatically start AP when CLR starts.
230+
/// Will automatically start the Soft AP when CLR starts.
231+
/// This option forces enabling the Wireless Soft AP.
226232
/// </summary>
227-
AutoStart = 0x02,
233+
AutoStart = 0x04 & Enable,
228234

229235
/// <summary>
230-
/// The SSID for the Soft AP will be hidden
236+
/// The SSID for the Soft AP will be hidden.
231237
/// </summary>
232-
HiddenSSID = 0x04,
238+
HiddenSSID = 0x08,
233239
};
234240

235241
#region native methods

source/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3-
"version": "1.4.1-preview.{height}",
3+
"version": "1.5.0-preview.{height}",
44
"assemblyVersion": {
55
"precision": "revision"
66
},

0 commit comments

Comments
 (0)