home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Thomson (Residential)
/
TGSTPv7203.iso
/
mac
/
HIW
/
xml
/
mod_settings_wirelessconfig.xml
< prev
next >
Wrap
Extensible Markup Language
|
2008-02-11
|
6KB
|
131 lines
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fsm SYSTEM "fsm.dtd">
<!--
Shows the wireless configuration pages.
The user is presented the choice for manual or automatic configuration.
If manual is chosen, the wireless config expert page is shown, otherwise it's
skipped.
Input properties:
- profile: The profile object.
Output properties:
- profile: The modified profile object.
Exit events:
- finished: User passed the page(s).
-->
<fsm>
<property key="profile" required="yes"/>
<property key="ssid" required="yes"/>
<property key="networkKey" required="yes"/>
<property key="securityMode" required="yes"/>
<property key="allowedSecurityModes" required="yes"/>
<states>
<state type="showPageWirelessSecurity" name="wirelessSecurityPage">
<property key="registerPage" value="1"/>
<property key="backEnabled" value="1"/>
</state>
<state type="checkOSVersion" name="checkXP">
<property key="match" value="winxp"/>
</state>
<state type="compare" name="checkSP2">
<property key="type" value="number"/>
<property key="operator" value="equal"/>
<property key="input1" value="2"/>
<property key="input2" value="0"/>
</state>
<state type="countFiles" name="checkWPA2hotfix">
<property key="path" value="%WINDIR%"/>
<property key="fileFilter" value="*KB893357*"/>
<property key="filter" value="dirs|hidden"/>
</state>
<state type="compare" name="checkMixedMode">
<property key="type" value="string"/>
<property key="operator" value="equal"/>
<property key="input1" value="wpa2-mixed"/>
</state>
<state type="compare" name="checkWPA2Allowed">
<property key="type" value="number"/>
<property key="operator" value="equal"/>
<property key="input1" value="1"/>
</state>
</states>
<events>
<event name="finished"/>
</events>
<transitions>
<!-- on XP SP2 the WPA2 hotfix needs to be installed to be able to use WPA2,
otherwise the XPWiFi adaptormgr can't configure the wireless link -->
<transition startstate="checkXP"/>
<transition fromstate="checkXP" tostate="checkSP2" event="true">
<propertymap target="input2" function="$servicePackMajor"/>
</transition>
<transition fromstate="checkSP2" tostate="checkWPA2hotfix" event="true">
<propertymap target="input2" function="$servicePackMajor"/>
</transition>
<!-- hotfix installed -->
<transition fromstate="checkWPA2hotfix" tostate="wirelessSecurityPage" event="singleFileFound|multipleFilesFound">
<propertymap target="fsm.wpa2Available" function="1"/>
<propertymap target="profile" function="$fsm.profile"/>
<propertymap target="ssid" function="$fsm.ssid"/>
<propertymap target="networkKey" function="$fsm.networkKey"/>
<propertymap target="securityMode" function="$fsm.securityMode"/>
<propertymap target="allowedSecurityModes" function="$fsm.allowedSecurityModes"/>
</transition>
<!-- hotfix not installed: remove WPA2 from the allowed modes list;
WPA2+WPA mixed is still allowed, but we'll have to use WPA for configuring the wireless link later -->
<transition fromstate="checkWPA2hotfix" tostate="wirelessSecurityPage" event="noFilesFound">
<propertymap target="fsm.wpa2Available" function="0"/>
<propertymap target="profile" function="$fsm.profile"/>
<propertymap target="ssid" function="$fsm.ssid"/>
<propertymap target="networkKey" function="$fsm.networkKey"/>
<propertymap target="securityMode" function="$fsm.securityMode"/>
<propertymap target="allowedSecurityModes" function="remove($fsm.allowedSecurityModes, 'wpa2-psk')"/>
</transition>
<!-- not XP -->
<transition fromstate="checkXP" tostate="wirelessSecurityPage" event="false">
<propertymap target="fsm.wpa2Available" function="1"/>
<propertymap target="profile" function="$fsm.profile"/>
<propertymap target="ssid" function="$fsm.ssid"/>
<propertymap target="networkKey" function="$fsm.networkKey"/>
<propertymap target="securityMode" function="$fsm.securityMode"/>
<propertymap target="allowedSecurityModes" function="$fsm.allowedSecurityModes"/>
</transition>
<!-- not XP SP 2 -->
<transition fromstate="checkSP2" tostate="wirelessSecurityPage" event="false">
<propertymap target="fsm.wpa2Available" function="1"/>
<propertymap target="profile" function="$fsm.profile"/>
<propertymap target="ssid" function="$fsm.ssid"/>
<propertymap target="networkKey" function="$fsm.networkKey"/>
<propertymap target="securityMode" function="$fsm.securityMode"/>
<propertymap target="allowedSecurityModes" function="$fsm.allowedSecurityModes"/>
</transition>
<!-- user has selected the security mode. If he has selected mixed mode, we must
decide which WPA version to use for wireless setup -->
<transition fromstate="wirelessSecurityPage" tostate="checkMixedMode" event="pageNext">
<!-- output --><propertymap target="fsm.ssid" function="$ssid"/>
<!-- output --><propertymap target="fsm.securityMode" function="$securityMode"/>
<!-- output --><propertymap target="fsm.networkKey" function="$networkKey"/>
<!-- output --><propertymap target="fsm.profile" function="$profile"/>
<propertymap target="input2" function="$securityMode"/>
</transition>
<!-- user selected mixed mode: see if WPA2 is available -->
<transition fromstate="checkMixedMode" tostate="checkWPA2Allowed" event="true">
<propertymap target="input2" function="$fsm.wpa2Available"/>
</transition>
<!-- WPA2 is available -->
<transition fromstate="checkWPA2Allowed" toexit="finished" event="true">
<!-- output --><propertymap target="fsm.securityMode" function="wpa2-psk"/>
</transition>
<!-- WPA2 is not available, use WPA -->
<transition fromstate="checkWPA2Allowed" toexit="finished" event="false">
<!-- output --><propertymap target="fsm.securityMode" function="wpa-psk"/>
</transition>
<!-- no mixed mode -->
<transition fromstate="checkMixedMode" toexit="finished" event="false"/>
</transitions>
</fsm>