File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -169,7 +169,18 @@ export class WiFiConfiguration {
169169 putWifiPortConfigurationService = async ( { input } : { input : WiFiConfigContext } ) : Promise < any > => {
170170 const wifiPortConfigurationService : AMT . Models . WiFiPortConfigurationService =
171171 input . message . Envelope . Body . AMT_WiFiPortConfigurationService
172- wifiPortConfigurationService . localProfileSynchronizationEnabled = 3
172+
173+ if ( input . amtProfile ?. localWifiSyncEnabled === true ) {
174+ // 3 = Unrestricted synchronization
175+ wifiPortConfigurationService . localProfileSynchronizationEnabled = 3
176+ } else if ( input . amtProfile ?. localWifiSyncEnabled === false ) {
177+ // 0 = Local synchronization disabled
178+ wifiPortConfigurationService . localProfileSynchronizationEnabled = 0
179+ } else {
180+ // Field not updated in DB (old profile), fallback to old default (3)
181+ wifiPortConfigurationService . localProfileSynchronizationEnabled = 3
182+ }
183+
173184 input . xmlMessage = input . amt ?. WiFiPortConfigurationService . Put ( wifiPortConfigurationService )
174185 return await invokeWsmanCall ( input , 2 )
175186 }
You can’t perform that action at this time.
0 commit comments