<?xml version="1.0" encoding="utf-8"?>
<!-- 
============================================================================
Copyright (c) 2008-2009  Marvell International, Ltd. All Rights Reserved

                         Marvell Confidential
============================================================================
-->

<!-- 
Wifi Configuration 
-->
<WifiConfig>
  <WifiConfigurationList>
    <!-- Netgear DG834G hw: v4 V5.03.08 2.5.2009-->
    <WifiDeviceConfig title="Netgear DG834G" realm="Netgear DG834G" user="admin" password="password" page="/wire_sel.htm" server="">
      <Field name="routerPresentCheck" type="FOUND" required="FALSE" match="(content=&quot;DG834 1049&quot;&gt;)" skipLogin="true" page="/"></Field>
      <Field name="Postloginfind" type="FOUND" match="(DG834)" set="modelname=DG834G" page="/setup.cgi?next_file=s_status.htm"></Field>
      <Field type="SET" name="modelName" property="Input" match="content=&quot;(DG834)" page="/menu.htm" />
      <Field name="SSID" type="SSID" match="name=&quot;ssid&quot; value=&quot;([^&quot;]*)&quot;" page="/wire_off.htm" />
      <Field name="SECURITY" type="SECURITY" match="next_file=wire_([\w]*).htm&quot;&gt;" page="/wire_sel.htm" property="ChoiceInt">
        <Choice result="off" value="1" set="sm=none" />
        <Choice result="wep" value="2" set="sm=wep" />
        <Choice result="wpap" value="3" set="sm=wpa" />
        <Choice result="wpa" value="3" set="sm=wpa" />
        <Choice result="wpa2" value="3" set="sm=wpa" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="input type=&quot;hidden&quot; name=&quot;h_wepenc&quot; value=&quot;([\d]*)&quot;&gt; " page="/wire_wep.htm">
        <Choice result="64" value="1" />
        <Choice result="128" value="2" />
      </Field>
      <Field name="WEPMODESET" type="WEPMODE" property="ChoiceInt" validate="sm=wep" match="name=&quot;h_wep_auth&quot; value=&quot;([\d])&quot;&gt;" page="/wire_wep.htm">
        <Choice result="1" value="0" />
        <Choice result="2" value="1" />
        <Choice result="3" value="2" />
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="name=&quot;ascii_key1&quot;[^&gt;]*value=&quot;([\w]*)&quot;" page="/wire_wep.htm"></Field>
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="name=&quot;ascii_key2&quot;[^&gt;]*value=&quot;([\w]*)&quot;" page="/wire_wep.htm"></Field>
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="name=&quot;ascii_key3&quot;[^&gt;]*value=&quot;([\w]*)&quot;" page="/wire_wep.htm"></Field>
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="name=&quot;ascii_key4&quot;[^&gt;]*value=&quot;([\w]*)&quot;" page="/wire_wep.htm"></Field>
      <!--Router makes no mention of TKIP/AES, so assume support only TKIP.-->
      <Field name="WPATYPE" type="WPATYPE" property="ChoiceValidateInt" validate="sm=wpa">
        <Choice value="0" />
      </Field>
      <!--This router is not handling special characters correctly.-->
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" match="name=&quot;wpakey&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;" page="/wire_wpa.htm"></Field>
      <!--WPSMODE is not supported on DG834-->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!--SMC WBR14T-G H/W 01 F/W V2.02 2.10.2009-->
    <WifiDeviceConfig title="SMC WBR14T-G" page="/login.stm" login="/cgi-bin/login.exe" password="smcadmin" data="pws=%password%" server="Apache/0.6.5">
      <Field name="routerPresentCheck" type="FOUND" required="FALSE" match="(SMCWBR14T-G)" skipLogin="FALSE" page="/"></Field>
      <Field name="Postloginfind" type="FOUND" match="(SMCWBR14T-G)" set="modelname=SMCWBR14T-G" page="/status_main.stm"></Field>
      <Field name="modelName" type="SET" property="Input" match="var PM=&quot;(SMCWBR14T)" page="/" skiplogin="true" />
      <Field name="ssid" type="SSID" match="name=&quot;ssid&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;" page="/wireless_id.stm" />
      <Field name="WirelessEncryption" type="NOOP" property="ChoiceInt" match="&lt;option value=([\d])[\s]*selected[\s]*&gt;[^&lt;]*&lt;/option&gt;" page="/wireless_e.stm">
        <Choice result="0" set="wirelessenc=none" />
        <Choice result="1" set="wirelessenc=wep" />
        <Choice result="2" set="wirelessenc=wpa" />
      </Field>
      <Field name="WPAAuthentication" type="NOOP" property="ChoiceInt" match="var WPAPSK=([\d])" page="/wireless_wpa.stm">
        <Choice result="1" set="wpa=wpapsk" />
        <Choice result="0" set="wpa=enterprise" />
      </Field>
      <Field name="Security" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="wirelessenc=none" value="1" set="sm=none" />
        <Choice validate="wirelessenc=wep" value="2" set="sm=wep" />
        <Choice validate="wirelessenc=wpa;wpa=wpapsk" value="3" set="sm=wpa" />
        <Choice validate="wirelessenc=wpa;wpa=enterprise" value="0" set="sm=notsupported" />
      </Field>
      <!--NO indication of OPEN/SHARED/AUTO key auth modes. This is a Guess.-->
      <Field name="wireless_auth" type="WEPMODE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <!--If The user chooses ASCII wep key, it may not be retrieved correctly.-->
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceInt" match="Key Entry Method&lt;/td&gt;[^\[]*var iDOD =  (\d)" page="/wireless_wep.stm">
        <Choice value="0" result="0" />
        <Choice value="1" result="1"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="document.form0.wep_len\[([\d])\].defaultChecked=true;" page="/wireless_wep.stm">
        <Choice result="0" value="1" />
        <Choice result="1" value="2" />
      </Field>
      <Field name="KEY1" type="WEPKEY1" validate="sm=wep" match="document.form0.key1.value=&quot;([\S]*)&quot;" page="/wireless_wep.stm"></Field>
      <Field name="KEY2" type="WEPKEY2" validate="sm=wep" match="document.form0.key2.value=&quot;([\S]*)&quot;" page="/wireless_wep.stm"></Field>
      <Field name="KEY3" type="WEPKEY3" validate="sm=wep" match="document.form0.key3.value=&quot;([\S]*)&quot;" page="/wireless_wep.stm"></Field>
      <Field name="KEY4" type="WEPKEY4" validate="sm=wep" match="document.form0.key4.value=&quot;([\S]*)&quot;" page="/wireless_wep.stm"></Field>
      <Field name="CipherSuite" type="WPATYPE" validate="sm=wpa" property="ChoiceValidateInt">
        <!--When set to WPA PSK, "TKIP or AES" and "AES" are the only options.-->
        <Choice value="1"></Choice>
      </Field>
      <Field name="PreSharedKey" type="WPAPASS" validate="sm=wpa" entity="\\(.)" match="document.form0.sharedkey.value=&quot;(.+)&quot;;" page="/wireless_wpa.stm"></Field>
      <!--No WPS support.-->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
    </WifiDeviceConfig>
    <!--3COM 3CRWER300-73 Version 1.02.00 2.20.2009-->
    <WifiDeviceConfig title="3COM 3CRWER300-73" server="Apache/0.6.5" user="" password="admin" page="/menu_admin.stm" login="/cgi-bin/login.exe" data="pws=%password%">
      <Field name="routerPresentCheck" required="false" type="FOUND" match="(FORM\sname=&quot;tF&quot;\saction=&quot;/cgi-bin/login.exe)" page="/" skipLogin="true"></Field>
      <Field name="modelname" type="SET" match="&lt;META http-equiv=&quot;3Cnumber&quot; content=&quot;(3CRWER300)-73&quot;&gt;" page="/menu_admin.stm" />
      <Field name="Postloginfind" type="FOUND" match="(go\sto\sthe\s&quot;Password&quot;\sand\s&quot;Wizard&quot;\stabs\sto\sconfigure\syour\sRouter)" page="/notice_board.stm"></Field>
      <Field name="SSID" type="SSID" match="var w_ssid=&quot;([^&quot;]*)&quot;;" page="/wireless_id11g.stm" entity="&amp;#([\d]*)"></Field>
      <Field name="dot1x" type="SET" match="var DOT1X = ([\d]);" page="/wireless_sec.stm"></Field>
      <Field name="wpsenable" type="SET" match="document.tF.wps_enable.checked = ([\w]*);document.tF.wps_pin.value" page="/wireless_wps.stm"></Field>
      <Field name="weprequire" type="SET" match="var wepreq = ([\d]);" page="/wireless_sec.stm"></Field>
      <Field name="128bit" type="SET" match="var wepmode = ([\d]);" page="/wireless_sec.stm"></Field>
      <Field name="wpavar" type="SET" match="var ssnpsk = ([\d]);" page="/wireless_sec.stm"></Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="wpavar=0;weprequire=0;dot1x=0;" value="1" set="sm=disabled" />
        <Choice validate="weprequire=1" value="2" set="sm=wep" />
        <Choice validate="wpavar=1" value="3" set="sm=wpa" />
        <Choice value="0" set="sm=nosupport" />
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice validate="sm=wep" value="0" />
        <Choice validate="sm=nosupport" value="0" />
        <Choice validate="wpsenable=true;dot1x=0" value="3" />
        <Choice value="1" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="var\sw_encrypt_enable=&quot;(\d+).*&quot;;" page="/status.stm">
        <Choice value="1" result="64"></Choice>
        <Choice value="2" result="128"></Choice>
      </Field>
      <!--Default to open wepmode.-->
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <!--Obtain hex pairs for all 4 64 bit WEP keys.-->
      <Field name="64keys1" type="SET" validate="sm=wep;128bit=0" match="document.tF.k11.value=&quot;([\w]*)&quot;;" page="/wireless40.stm"></Field>
      <Field name="64keys2" type="SET" validate="sm=wep;128bit=0" match="document.tF.k12.value=&quot;([\w]*)&quot;;" page="/wireless40.stm"></Field>
      <Field name="64keys3" type="SET" validate="sm=wep;128bit=0" match="document.tF.k13.value=&quot;([\w]*)&quot;;" page="/wireless40.stm"></Field>
      <Field name="64keys4" type="SET" validate="sm=wep;128bit=0" match="document.tF.k14.value=&quot;([\w]*)&quot;;" page="/wireless40.stm"></Field>
      <Field name="64keys5" type="SET" validate="sm=wep;128bit=0" match="document.tF.k15.value=&quot;([\w]*)&quot;;" page="/wireless40.stm"></Field>
      <!--Reconstruct the 64 bit keys.-->
      <Field name="64WEPKEY1" type="WEPKEY1" property="ChoiceValidate" validate="sm=wep;128bit=0">
        <Choice value="%64keys1%%64keys2%%64keys3%%64keys4%%64keys5%" />
      </Field>
      <Field name="64keys6" type="SET" validate="sm=wep;128bit=0" match="document.tF.k21.value=&quot;([\w]*)&quot;;" page="/wireless40.stm"></Field>
      <Field name="64keys7" type="SET" validate="sm=wep;128bit=0" match="document.tF.k22.value=&quot;([\w]*)&quot;;" page="/wireless40.stm"></Field>
      <Field name="64keys8" type="SET" validate="sm=wep;128bit=0" match="document.tF.k23.value=&quot;([\w]*)&quot;;" page="/wireless40.stm"></Field>
      <Field name="64keys9" type="SET" validate="sm=wep;128bit=0" match="document.tF.k24.value=&quot;([\w]*)&quot;;" page="/wireless40.stm"></Field>
      <Field name="64keys10" type="SET" validate="sm=wep;128bit=0" match="document.tF.k25.value=&quot;([\w]*)&quot;;" page="/wireless40.stm"></Field>
      <!--Reconstruct the 64 bit keys.-->
      <Field name="64WEPKEY2" type="WEPKEY2" property="ChoiceValidate" validate="sm=wep;128bit=0">
        <Choice value="%64keys6%%64keys7%%64keys8%%64keys9%%64keys10%" />
      </Field>
      <Field name="64keys31" type="SET" validate="sm=wep;128bit=0" match="document.tF.k31.value=&quot;([\w]*)&quot;;" page="/wireless40.stm"></Field>
      <Field name="64keys32" type="SET" validate="sm=wep;128bit=0" match="document.tF.k32.value=&quot;([\w]*)&quot;;" page="/wireless40.stm"></Field>
      <Field name="64keys33" type="SET" validate="sm=wep;128bit=0" match="document.tF.k33.value=&quot;([\w]*)&quot;;" page="/wireless40.stm"></Field>
      <Field name="64keys34" type="SET" validate="sm=wep;128bit=0" match="document.tF.k34.value=&quot;([\w]*)&quot;;" page="/wireless40.stm"></Field>
      <Field name="64keys35" type="SET" validate="sm=wep;128bit=0" match="document.tF.k35.value=&quot;([\w]*)&quot;;" page="/wireless40.stm"></Field>
      <!--64bit key 3-->
      <Field name="64WEPKEY3" type="WEPKEY3" property="ChoiceValidate" validate="sm=wep;128bit=0">
        <Choice value="%64keys31%%64keys32%%64keys33%%64keys34%%64keys35%" />
      </Field>
      <Field name="64keys41" type="SET" validate="sm=wep;128bit=0" match="document.tF.k41.value=&quot;([\w]*)&quot;;" page="/wireless40.stm"></Field>
      <Field name="64keys42" type="SET" validate="sm=wep;128bit=0" match="document.tF.k42.value=&quot;([\w]*)&quot;;" page="/wireless40.stm"></Field>
      <Field name="64keys43" type="SET" validate="sm=wep;128bit=0" match="document.tF.k43.value=&quot;([\w]*)&quot;;" page="/wireless40.stm"></Field>
      <Field name="64keys44" type="SET" validate="sm=wep;128bit=0" match="document.tF.k44.value=&quot;([\w]*)&quot;;" page="/wireless40.stm"></Field>
      <Field name="64keys45" type="SET" validate="sm=wep;128bit=0" match="document.tF.k45.value=&quot;([\w]*)&quot;;" page="/wireless40.stm"></Field>
      <!--64bit key 4-->
      <Field name="64WEPKEY4" type="WEPKEY4" property="ChoiceValidate" validate="sm=wep;128bit=0">
        <Choice value="%64keys41%%64keys42%%64keys43%%64keys44%%64keys45%" />
      </Field>
      <Field name="128keys1" type="SET" validate="sm=wep;128bit=1" match="document.tF.k1_1.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys2" type="SET" validate="sm=wep;128bit=1" match="document.tF.k1_2.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys3" type="SET" validate="sm=wep;128bit=1" match="document.tF.k1_3.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys4" type="SET" validate="sm=wep;128bit=1" match="document.tF.k1_4.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys5" type="SET" validate="sm=wep;128bit=1" match="document.tF.k1_5.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys6" type="SET" validate="sm=wep;128bit=1" match="document.tF.k1_6.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys7" type="SET" validate="sm=wep;128bit=1" match="document.tF.k1_7.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys8" type="SET" validate="sm=wep;128bit=1" match="document.tF.k1_8.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys9" type="SET" validate="sm=wep;128bit=1" match="document.tF.k1_9.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys10" type="SET" validate="sm=wep;128bit=1" match="document.tF.k1_10.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys11" type="SET" validate="sm=wep;128bit=1" match="document.tF.k1_11.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys12" type="SET" validate="sm=wep;128bit=1" match="document.tF.k1_12.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys13" type="SET" validate="sm=wep;128bit=1" match="document.tF.k1_13.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <!--128 bit key 1-->
      <Field name="128WEPKEY1" type="WEPKEY1" property="ChoiceValidate" validate="sm=wep;128bit=1">
        <Choice value="%128keys1%%128keys2%%128keys3%%128keys4%%128keys5%%128keys6%%128keys7%%128keys8%%128keys9%%128keys10%%128keys11%%128keys12%%128keys13%" />
      </Field>
      <Field name="128keys2_1" type="SET" validate="sm=wep;128bit=1" match="document.tF.k2_1.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys2_2" type="SET" validate="sm=wep;128bit=1" match="document.tF.k2_2.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys2_3" type="SET" validate="sm=wep;128bit=1" match="document.tF.k2_3.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys2_4" type="SET" validate="sm=wep;128bit=1" match="document.tF.k2_4.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys2_5" type="SET" validate="sm=wep;128bit=1" match="document.tF.k2_5.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys2_6" type="SET" validate="sm=wep;128bit=1" match="document.tF.k2_6.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys2_7" type="SET" validate="sm=wep;128bit=1" match="document.tF.k2_7.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys2_8" type="SET" validate="sm=wep;128bit=1" match="document.tF.k2_8.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys2_9" type="SET" validate="sm=wep;128bit=1" match="document.tF.k2_9.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys2_10" type="SET" validate="sm=wep;128bit=1" match="document.tF.k2_10.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys2_11" type="SET" validate="sm=wep;128bit=1" match="document.tF.k2_11.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys2_12" type="SET" validate="sm=wep;128bit=1" match="document.tF.k2_12.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys2_13" type="SET" validate="sm=wep;128bit=1" match="document.tF.k2_13.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <!--128 bit key 2-->
      <Field name="128WEPKEY2" type="WEPKEY2" property="ChoiceValidate" validate="sm=wep;128bit=1">
        <Choice value="%128keys2_1%%128keys2_2%%128keys2_3%%128keys2_4%%128keys2_5%%128keys2_6%%128keys2_7%%128keys2_8%%128keys2_9%%128keys2_10%%128keys2_11%%128keys2_12%%128keys2_13%" />
      </Field>
      <Field name="128keys3_1" type="SET" validate="sm=wep;128bit=1" match="document.tF.k3_1.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys3_2" type="SET" validate="sm=wep;128bit=1" match="document.tF.k3_2.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys3_3" type="SET" validate="sm=wep;128bit=1" match="document.tF.k3_3.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys3_4" type="SET" validate="sm=wep;128bit=1" match="document.tF.k3_4.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys3_5" type="SET" validate="sm=wep;128bit=1" match="document.tF.k3_5.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys3_6" type="SET" validate="sm=wep;128bit=1" match="document.tF.k3_6.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys3_7" type="SET" validate="sm=wep;128bit=1" match="document.tF.k3_7.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys3_8" type="SET" validate="sm=wep;128bit=1" match="document.tF.k3_8.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys3_9" type="SET" validate="sm=wep;128bit=1" match="document.tF.k3_9.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys3_10" type="SET" validate="sm=wep;128bit=1" match="document.tF.k3_10.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys3_11" type="SET" validate="sm=wep;128bit=1" match="document.tF.k3_11.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys3_12" type="SET" validate="sm=wep;128bit=1" match="document.tF.k3_12.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys3_13" type="SET" validate="sm=wep;128bit=1" match="document.tF.k3_13.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <!--128 bit key 3-->
      <Field name="128WEPKEY3" type="WEPKEY3" property="ChoiceValidate" validate="sm=wep;128bit=1">
        <Choice value="%128keys3_1%%128keys3_2%%128keys3_3%%128keys3_4%%128keys3_5%%128keys3_6%%128keys3_7%%128keys3_8%%128keys3_9%%128keys3_10%%128keys3_11%%128keys3_12%%128keys3_13%" />
      </Field>
      <Field name="128keys4_1" type="SET" validate="sm=wep;128bit=1" match="document.tF.k4_1.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys4_2" type="SET" validate="sm=wep;128bit=1" match="document.tF.k4_2.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys4_3" type="SET" validate="sm=wep;128bit=1" match="document.tF.k4_3.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys4_4" type="SET" validate="sm=wep;128bit=1" match="document.tF.k4_4.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys4_5" type="SET" validate="sm=wep;128bit=1" match="document.tF.k4_5.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys4_6" type="SET" validate="sm=wep;128bit=1" match="document.tF.k4_6.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys4_7" type="SET" validate="sm=wep;128bit=1" match="document.tF.k4_7.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys4_8" type="SET" validate="sm=wep;128bit=1" match="document.tF.k4_8.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys4_9" type="SET" validate="sm=wep;128bit=1" match="document.tF.k4_9.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys4_10" type="SET" validate="sm=wep;128bit=1" match="document.tF.k4_10.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys4_11" type="SET" validate="sm=wep;128bit=1" match="document.tF.k4_11.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys4_12" type="SET" validate="sm=wep;128bit=1" match="document.tF.k4_12.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <Field name="128keys4_13" type="SET" validate="sm=wep;128bit=1" match="document.tF.k4_13.value=&quot;([\w]*)&quot;;" page="/wireless128.stm"></Field>
      <!--128 BIT KEY 4-->
      <Field name="128WEPKEY4" type="WEPKEY4" property="ChoiceValidate" validate="sm=wep;128bit=1">
        <Choice value="%128keys4_1%%128keys4_2%%128keys4_3%%128keys4_4%%128keys4_5%%128keys4_6%%128keys4_7%%128keys4_8%%128keys4_9%%128keys4_10%%128keys4_11%%128keys4_12%%128keys4_13%" />
      </Field>
      <Field name="wpamode" type="SET" validate="sm=wpa" property="Choice" match="name=&quot;wpa_mode&quot;[^&gt;]*&gt;[^&quot;]*&lt;option value=([\d])[\s]*selected&gt;" page="/wireless_wpa_psk.stm">
        <Choice result="2" value="mixed" />
        <Choice value="notmixed" />
      </Field>
      <Field name="wpaenctype" type="SET" validate="sm=wpa" match="document.tF.Cypher_suite.selectedIndex = ([\d]);" page="/wireless_wpa_psk.stm"></Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceValidateInt">
        <Choice validate="wpamode=notmixed;wpaenctype=0" value="0" />
        <Choice value="1" />
      </Field>
      <!--some special characters will break the field.-->
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" match="document.tF.sharedkey.value=&quot;(.+)&quot;;" page="/wireless_wpa_psk.stm"></Field>
    </WifiDeviceConfig>
    <!--ASUS WL330gE F/W 2.0.1.6 2.11.2009-->
    <WifiDeviceConfig title="ASUS WL330gE" server="httpd" realm="WL-330gE" user="admin" password="admin" page="/Advanced_Wireless_Content.asp">
      <Field name="routerPresentCheck" type="FOUND" required="FALSE" match="&lt;BODY BGCOLOR=&quot;#(cc9999)&quot;&gt;&lt;H4&gt;401 Unauthorized&lt;/H4&gt;" skipLogin="false" page="/"></Field>
      <Field name="Postloginfind" type="FOUND" match="(WL-330gE)" set="modelname=WL-330gE" page="/"></Field>
      <Field name="ModelCheck" type="NOOP" match="(WL-330gE)" set="modelname=WL330GE" />
      <Field name="SSID" type="SSID" match="name=&quot;wl_ssid2&quot; value=&quot;([^&quot;]*)&quot;" />
      <Field name="SECURITYUseGROUP0" type="SECURITY" property="ChoiceInt" match="&lt;select name=&quot;wl_auth_mode&quot;[^&gt;]*&gt;[^g]*&lt;option class=&quot;content_input_fd&quot; value=&quot;([\w]*)&quot; selected&gt;([^&lt;]*)&lt;/option&gt;">
        <Choice result="open" value="2" set="sm=wep;wepmode=open" />
        <Choice result="shared" value="2" set="sm=wep;wepmode=shared" />
        <Choice result="psk" value="3" set="sm=wpa">
          <!--wpa-personal, wpa2-personal, wpa-autopersonal all use psk value-->
        </Choice>
        <Choice result="wpa" value="0" set="sm=notsupported">
          <!--wpa-autoent and wpa-enterprise choices.-->
        </Choice>
        <Choice result="wpa2" value="0" set="sm=notsupported">
          <!--wpa2-enterprise-->
        </Choice>
        <Choice result="radius" value="0" set="sm=notsupported"></Choice>
      </Field>
      <Field name="CHECKWEPKEYENABLE" type="SECURITY" property="ChoiceInt" validate="sm=wep" match="name=&quot;wl_wep_x&quot;[^&lt;]*[^z]*&lt;option class=&quot;content_input_fd&quot; value=&quot;[\d]&quot; selected&gt;([\S]*)&lt;/option&gt;[^z]*name">
        <Choice result="None" value="1" set="sm=disabled">
          <!--When set to Open system, security can be disabled.-->
        </Choice>
        <Choice value="2" set="sm=wep" />
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="wepmode=shared" property="ChoiceInt" match="&lt;select name=&quot;wl_auth_mode&quot;[^&gt;]*&gt;[^g]*&lt;option class=&quot;content_input_fd&quot; value=&quot;([\w]*)&quot; selected&gt;([^&lt;]*)&lt;/option&gt;">
        <Choice result="shared" value="1" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceInt" match="&lt;option class=&quot;content_input_fd&quot; value=&quot;[\d]&quot;[\s]*selected&gt;(ASCII|HEX)&lt;/option&gt;">
        <Choice value="0" result="HEX" />
        <Choice value="1" result="ASCII" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="&lt;input type=&quot;hidden&quot; name=&quot;wl_wep_x&quot; value=&quot;([\d])&quot;&gt;" page="/Wizard_AP.asp">
        <Choice result="1" value="1" />
        <Choice result="2" value="2" />
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="name=&quot;wl_key1&quot; value=&quot;(.+)&quot; onBlur=" />
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="name=&quot;wl_key2&quot; value=&quot;(.+)&quot; onBlur=" />
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="name=&quot;wl_key3&quot; value=&quot;(.+)&quot; onBlur=" />
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="name=&quot;wl_key4&quot; value=&quot;(.+)&quot; onBlur=" />
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" match="name=&quot;wl_wpa_psk&quot; value=&quot;([^&quot;]*)&quot;" entity="&amp;#([\d]*)" />
      <!--"tkip+aes" text that is found for wpatype, but is parsed as "tkip aes" at this time.11252008-->
      <Field name="WPATYPE" type="WPATYPE" property="ChoiceInt" validate="sm=wpa" match="'wl_crypto'[\W]&quot;&gt;[^z]*&lt;option class=&quot;content_input_fd&quot; value=&quot;([\S]*)&quot; selected">
        <Choice result="tkip" value="0" />
        <Choice result="aes" value="1" />
        <Choice result="tkip aes" value="1" />
        <Choice result="tkip+aes" value="1" />
      </Field>
      <!-- router does not support WPSMODE - set default of No WPS -->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!--ASUS WL500gP V2 2.0.1.5 2.20.2009-->
    <WifiDeviceConfig title="ASUS WL500gP" server="httpd" realm="WL500gpv2" user="admin" password="admin" page="/Advanced_Wireless_Content.asp">
      <Field name="routerPresentCheck" required="false" type="FOUND" match="(cc9999)" page="/index.asp" skipLogin="true">
        <!---->
      </Field>
      <Field name="ModelCheck" type="NOOP" match="(WL500gP V2)" set="modelname=WL500gpv2" />
      <Field name="Postloginfind" type="FOUND" match="(WL500gP V2)"></Field>
      <Field name="SSID" type="SSID" match="name=&quot;wl_ssid2&quot; value=&quot;([^&quot;]*)&quot;" />
      <Field name="SECURITYUseGROUP0" type="SECURITY" property="ChoiceInt" match="&lt;select name=&quot;wl_auth_mode&quot;[^&gt;]*&gt;[^g]*&lt;option class=&quot;content_input_fd&quot; value=&quot;([\w]*)&quot; selected&gt;([^&lt;]*)&lt;/option&gt;">
        <Choice result="open" value="2" set="sm=wep;wepmode=open" />
        <Choice result="shared" value="2" set="sm=wep;wepmode=shared" />
        <Choice result="psk" value="3" set="sm=wpa">
          <!--wpa-personal, wpa2-personal, wpa-autopersonal all use psk value-->
        </Choice>
        <Choice result="wpa" value="0" set="sm=notsupported">
          <!--wpa-autoent and wpa-enterprise choices.-->
        </Choice>
        <Choice result="wpa2" value="0" set="sm=notsupported">
          <!--wpa2-enterprise-->
        </Choice>
        <Choice result="radius" value="0" set="sm=notsupported"></Choice>
      </Field>
      <!--<Field name="SECURITYUseGROUP1" type="SECURITY" group="1" property="ChoiceInt" match="&lt;select name=&quot;wl_auth_mode&quot;[^&gt;]*&gt;[^g]*&lt;option class=&quot;content_input_fd&quot; value=&quot;([\w]*)&quot; selected&gt;([^&lt;]*)&lt;/option&gt;"><Choice result="Open System" value="2" set="sm=wepkey;wepmode=open" /><Choice result="Shared Key" value="2" set="sm=wepkey;wepmode=shared" /><Choice result="WPA-Personal" value="3" set="sm=wpa;wpatype=wpa1personal">/*wpa-personal, wpa2-personal, wpa-autopersonal all use psk value*/</Choice><Choice result="WPA2-Personal" value="3" set="sm=wpa;wpatype=wpa2personal"></Choice><Choice result="WPA-Auto-Personal" value="3" set="sm=wpa;wpatype=wpaautopersonal"></Choice><Choice result="WPA-Enterprise" value="0" set="sm=notsupported"></Choice><Choice result="WPA2-Enterprise" value="0" set="sm=notsupported"></Choice><Choice result="WPA-Auto-Enterprise" value="0" set="sm=notsupported"></Choice><Choice result="Radius with 802.1x" value="0" set="sm=notsupported"></Choice></Field>-->
      <Field name="CHECKWEPKEYENABLE" type="SECURITY" property="ChoiceInt" validate="sm=wep" match="name=&quot;wl_wep_x&quot;[^&lt;]*[^z]*&lt;option class=&quot;content_input_fd&quot; value=&quot;[\d]&quot; selected&gt;([\S]*)&lt;/option&gt;">
        <Choice result="None" value="1" set="sm=disabled">
          <!--When set to Open system, security can be disabled.-->
        </Choice>
        <Choice value="2" set="sm=wep" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <!---->
        <Choice value="0"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="select\sname=&quot;wl_wep_x&quot;\sclass=&quot;content_input_fd&quot;.*value=&quot;(\d+)&quot;\sselected&gt;" page="/Advanced_Wireless_Content.asp">
        <Choice value="1" result="1"></Choice>
        <Choice value="2" result="2"></Choice>
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="wepmode=shared" property="ChoiceInt" match="&lt;select name=&quot;wl_auth_mode&quot;[^&gt;]*&gt;[^g]*&lt;option class=&quot;content_input_fd&quot; value=&quot;([\w]*)&quot; selected&gt;([^&lt;]*)&lt;/option&gt;">
        <Choice result="shared" value="1" />
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="name=&quot;wl_key1&quot; value=&quot;([\w]*)&quot;" />
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="name=&quot;wl_key2&quot; value=&quot;([\w]*)&quot;" />
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="name=&quot;wl_key3&quot; value=&quot;([\w]*)&quot;" />
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="name=&quot;wl_key4&quot; value=&quot;([\w]*)&quot;" />
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" match="name=&quot;wl_wpa_psk&quot; value=&quot;(.*)&quot; onKeyUp" entity="&amp;#([\d]*)" />
      <Field name="WPATYPE" type="WPATYPE" property="ChoiceInt" validate="sm=wpa" match="'wl_crypto'[\W]&quot;&gt;[^z]*&lt;option class=&quot;content_input_fd&quot; value=&quot;([\S]*)&quot; selected">
        <Choice result="tkip" value="0" />
        <Choice result="aes" value="1" />
        <Choice result="tkip+aes" value="1" />
        <Choice result="tkip aes" value="1" />
      </Field>
      <!-- router does not support WPSMODE - set default of No WPS -->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!--ASUS WL500W F/W 1.9.8.9 2.20.2009-->
    <WifiDeviceConfig title="ASUS WL-500W" realm="WL500W" user="admin" password="admin" server="httpd" page="/Advanced_Wireless_Content.asp">
      <Field name="routerPresentCheck" type="FOUND" required="FALSE" match="&lt;BODY BGCOLOR=&quot;#(cc9999)&quot;&gt;&lt;H4&gt;401 Unauthorized&lt;/H4&gt;" skiplogin="false"></Field>
      <Field name="Postloginfind" type="FOUND" match="(WL500W)" set="modelname=WL500W" page="/Advanced_FirmwareUpgrade_Content.asp"></Field>
      <Field name="ModelCheck" type="NOOP" match="(WL500W)" set="modelname=WL500W" />
      <Field name="SSID" type="SSID" match="name=&quot;wl_ssid2&quot; value=&quot;([^&quot;]*)&quot;" />
      <Field name="SECURITYUseGROUP0" type="SECURITY" property="ChoiceInt" match="&lt;select name=&quot;wl_auth_mode&quot;[^&gt;]*&gt;[^g]*&lt;option class=&quot;content_input_fd&quot; value=&quot;([\w]*)&quot; selected&gt;([^&lt;]*)&lt;/option&gt;">
        <Choice result="open" value="2" set="sm=wep;wepmode=open" />
        <Choice result="shared" value="2" set="sm=wep;wepmode=shared" />
        <Choice result="psk" value="3" set="sm=wpa">
          <!--wpa-personal, wpa2-personal, wpa-autopersonal all use psk value-->
        </Choice>
        <Choice result="wpa" value="0" set="sm=notsupported">
          <!--wpa-autoent and wpa-enterprise choices.-->
        </Choice>
        <Choice result="wpa2" value="0" set="sm=notsupported">
          <!--wpa2-enterprise-->
        </Choice>
        <Choice result="radius" value="0" set="sm=notsupported"></Choice>
      </Field>
      <Field name="CHECKWEPKEYENABLE" type="SECURITY" property="ChoiceInt" validate="sm=wep" match="name=&quot;wl_wep_x&quot;[^&lt;]*[^z]*&lt;option class=&quot;content_input_fd&quot; value=&quot;[\d]&quot; selected&gt;([\S]*)&lt;/option&gt;">
        <Choice result="None" value="1" set="sm=disabled">
          <!--When set to Open system, security can be disabled.-->
        </Choice>
        <Choice value="2" set="sm=wep" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="value=&quot;[1|2]&quot; selected&gt;WEP-([64|128]*)bits" page="/Advanced_Wireless_Content.asp">
        <Choice result="64" value="1" />
        <Choice result="128" value="2" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="wepmode=shared" property="ChoiceInt" match="&lt;select name=&quot;wl_auth_mode&quot;[^&gt;]*&gt;[^g]*&lt;option class=&quot;content_input_fd&quot; value=&quot;([\w]*)&quot; selected&gt;([^&lt;]*)&lt;/option&gt;">
        <Choice result="shared" value="1" />
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="name=&quot;wl_key1&quot; value=&quot;([\w]*)&quot;" />
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="name=&quot;wl_key2&quot; value=&quot;([\w]*)&quot;" />
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="name=&quot;wl_key3&quot; value=&quot;([\w]*)&quot;" />
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="name=&quot;wl_key4&quot; value=&quot;([\w]*)&quot;" />
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" match="name=&quot;wl_wpa_psk&quot; value=&quot;(.+)&quot; onKeyUp" entity="&amp;#([\d]*)" />
      <Field name="WPATYPE" type="WPATYPE" property="ChoiceInt" validate="sm=wpa" match="'wl_crypto'[\W]&quot;&gt;[^z]*&lt;option class=&quot;content_input_fd&quot; value=&quot;([\S]*)&quot; selected">
        <Choice result="tkip" value="0" />
        <Choice result="aes" value="1" />
        <Choice result="tkip+aes" value="1" />
        <Choice result="tkip aes" value="1" />
      </Field>
      <!-- router does not support WPSMODE - set default of No WPS -->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!--ASUS WL520GU 2.0.0.8 2.6.2009-->
    <WifiDeviceConfig title="ASUS WL520GU" realm="WL520gu" user="admin" password="admin" server="httpd" page="/Advanced_Wireless_Content.asp">
      <Field name="routerPresentCheck" type="FOUND" required="FALSE" match="o.style.backgroundColor = &quot;#(C0C0C0)&quot;;" skiplogin="true" page="/"></Field>
      <Field name="Postloginfind" type="FOUND" match="(WL520GU)" set="modelname=WL520GU" page="/Advanced_FirmwareUpgrade_Content.asp"></Field>
      <Field name="ModelCheck" type="NOOP" match="(WL520GU)" set="modelname=WL520gu" />
      <Field name="SSID" type="SSID" match="name=&quot;wl_ssid2&quot; value=&quot;(.+)&quot;"></Field>
      <Field name="SECURITYUseGROUP0" type="SECURITY" property="ChoiceInt" match="&lt;select name=&quot;wl_auth_mode&quot;[^&gt;]*&gt;[^g]*&lt;option class=&quot;content_input_fd&quot; value=&quot;([\w]*)&quot; selected&gt;([^&lt;]*)&lt;/option&gt;">
        <Choice result="open" value="2" set="sm=wep;wepmode=open" />
        <Choice result="shared" value="2" set="sm=wep;wepmode=shared" />
        <Choice result="psk" value="3" set="sm=wpa">
          <!--wpa-personal, wpa2-personal, wpa-autopersonal all use psk value-->
        </Choice>
        <Choice result="wpa" value="0" set="sm=notsupported">
          <!--wpa-autoent and wpa-enterprise choices.-->
        </Choice>
        <Choice result="wpa2" value="0" set="sm=notsupported">
          <!--wpa2-enterprise-->
        </Choice>
        <Choice result="radius" value="0" set="sm=notsupported"></Choice>
      </Field>
      <Field name="CHECKWEPKEYENABLE" type="SECURITY" property="ChoiceInt" validate="sm=wep" match="name=&quot;wl_wep_x&quot;[^&lt;]*[^z]*&lt;option class=&quot;content_input_fd&quot; value=&quot;[\d]&quot; selected&gt;([\S]*)&lt;/option&gt;">
        <Choice result="None" value="1" set="sm=disabled">
          <!--When set to Open system, security can be disabled.-->
        </Choice>
        <Choice value="2" set="sm=wep" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="value=&quot;[1|2]&quot; selected&gt;WEP-([64|128]*)bits" page="/Advanced_Wireless_Content.asp">
        <Choice result="64" value="1" />
        <Choice result="128" value="2" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="wepmode=shared" property="ChoiceInt" match="&lt;select name=&quot;wl_auth_mode&quot;[^&gt;]*&gt;[^g]*&lt;option class=&quot;content_input_fd&quot; value=&quot;([\w]*)&quot; selected&gt;([^&lt;]*)&lt;/option&gt;">
        <Choice result="shared" value="1" />
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="name=&quot;wl_key1&quot; value=&quot;([\w]*)&quot;" />
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="name=&quot;wl_key2&quot; value=&quot;([\w]*)&quot;" />
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="name=&quot;wl_key3&quot; value=&quot;([\w]*)&quot;" />
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="name=&quot;wl_key4&quot; value=&quot;([\w]*)&quot;" />
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" match="name=&quot;wl_wpa_psk&quot; value=&quot;(.+)&quot; onKeyUp" entity="&amp;#([\d]*)" />
      <Field name="WPATYPE" type="WPATYPE" property="ChoiceInt" validate="sm=wpa" match="'wl_crypto'[\W]&quot;&gt;[^z]*&lt;option class=&quot;content_input_fd&quot; value=&quot;([\S]*)&quot; selected">
        <Choice result="tkip" value="0" />
        <Choice result="aes" value="1" />
        <Choice result="tkip+aes" value="1" />
        <Choice result="tkip aes" value="1" />
      </Field>
      <!-- router does not support WPSMODE - set default of No WPS -->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!--BELKIN Wireless G Universal Range Extender F5D7132 hw 054054000010 F/W v1_US_5.01.11 2.5.2009 JRO-->
    <WifiDeviceConfig title="BELKIN Wireless G Universal Range Extender" password="" page="/index.asp" login="/login.htm" data="page=login&amp;logout=2&amp;login_status=Login&amp;password=%password%" server="GoAhead-Webs">
      <Field name="routerPresentCheck" type="FOUND" required="FALSE" match="(F5D7132)" skipLogin="true" page="/index.asp" />
      <Field name="Postloginfind" type="FOUND" match="(F5D7132)" page="/index.asp"></Field>
      <Field type="SET" name="modelName" property="Input" match="(F5D7132)" skiplogin="true" page="/index.asp"></Field>
      <Field type="SSID" name="ssid" match="name=&quot;wl0_ssid&quot; value=&quot;([^&quot;]*)&quot;" page="/wireless_chan.asp" />
      <!--No WPS For this device.-->
      <Field type="WPSMODE" name="WirelessWPS" property="ChoiceValidateInt" skiplogin="true">
        <Choice value="0" />
      </Field>
      <Field name="Security" type="SECURITY" match="&lt;option value=&quot;([\w]*)&quot;[\s]*selected&gt;" property="ChoiceInt" page="/wireless_encrypt.asp">
        <Choice result="0" value="1" set="sm=none" />
        <Choice result="psk" value="3" set="sm=wpa;wpapage=wpapsk" />
        <Choice result="mixed" value="3" set="sm=wpa" />
        <Choice result="wpa2" value="3" set="sm=wpa;wpapage=wpa2" />
        <Choice result="128" value="2" set="sm=wep;keylen=128" />
        <Choice result="64" value="2" set="sm=wep;keylen=64" />
      </Field>
      <!--Only 1 KEY when set to 128 bit-->
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="&lt;option value=&quot;([\d]*)&quot; selected&gt;" page="/wireless_encrypt.asp">
        <Choice result="64" value="1" />
        <Choice result="128" value="2" />
      </Field>
      <Field type="WEPKEY1" name="WEPKEY128" validate="sm=wep;keylen=128" match="name=&quot;wl0_key1&quot; type=&quot;hidden&quot; value=&quot;([\w]*)&quot;&gt;" page="/wireless_encrypt_128.asp"></Field>
      <Field type="WEPKEY1" name="64WEPKEY1" validate="sm=wep;keylen=64" match="name=&quot;wl0_key1&quot; type=&quot;hidden&quot; value=&quot;([\w]*)&quot;&gt;" page="/wireless_encrypt_64.asp"></Field>
      <Field type="WEPKEY2" name="64WEPKEY2" validate="sm=wep;keylen=64" match="name=&quot;wl0_key2&quot; type=&quot;hidden&quot; value=&quot;([\w]*)&quot;&gt;" page="/wireless_encrypt_64.asp"></Field>
      <Field type="WEPKEY3" name="64WEPKEY3" validate="sm=wep;keylen=64" match="name=&quot;wl0_key3&quot; type=&quot;hidden&quot; value=&quot;([\w]*)&quot;&gt;" page="/wireless_encrypt_64.asp"></Field>
      <Field type="WEPKEY4" name="64WEPKEY4" validate="sm=wep;keylen=64" match="name=&quot;wl0_key4&quot; type=&quot;hidden&quot; value=&quot;([\w]*)&quot;&gt;" page="/wireless_encrypt_64.asp"></Field>
      <!--This router doesn't have any handling for special characters. -->
      <Field type="WPAPASS" name="wpapsk" validate="sm=wpa;wpapage=wpapsk" match="name=&quot;wl0_wpa_psk1&quot; size=&quot;40&quot; maxlength=&quot;64&quot; value=&quot;([^&quot;]*)&quot;" page="/wireless_wpa_psk.asp"></Field>
      <Field type="WPAPASS" name="wpa2psk" validate="sm=wpa;wpapage=wpa2" match="name=&quot;wl0_wpa2_psk1&quot; size=&quot;40&quot; maxlength=&quot;64&quot; value=&quot;([^&quot;]*)&quot;" page="/wireless_wpa2.asp"></Field>
      <Field type="WPATYPE" name="wpatypecheck" validate="sm=wpa;wpapage=wpapsk" match="&lt;option selected&gt;([\w]*)&lt;/option&gt;" property="ChoiceInt" page="/wireless_wpa_psk.asp">
        <Choice result="TKIP" value="0" />
        <Choice result="AES" value="1" />
      </Field>
      <!--Always uses aes for WPA2 selection-->
      <Field type="WPATYPE" name="WPA2ForceAES" validate="sm=wpa;wpapage=wpa2" property="ChoiceValidateInt">
        <Choice value="1" />
      </Field>
    </WifiDeviceConfig>
    <!--BELKIN N1 Wireless Router F5D8231-4 v5000 F/W 5.01.05 2.19.2009-->
    <WifiDeviceConfig title="BELKIN N1 Wireless Router F5D8231" password="" page="/home.htm" login="/password.cgi" data="page=login&amp;lang_code=%langcode%&amp;charset=%charset%&amp;logout=2&amp;login_password=%password%" server="httpd">
      <!--Check which language the Router's web is set to before logging in so we don't change the language when we do it.-->
      <Field name="routerPresentCheck" type="FOUND" required="false" match="(F5D8231)" skiplogin="true" page="/" />
      <Field type="SET" name="modelName" property="Input" match="var hw_version='(F5D8231-4)" skiplogin="true" />
      <Field type="SET" name="charset" property="Input" match="&lt;INPUT type=hidden value='([\S]*)' name=&quot;charset&quot;&gt;" skiplogin="true" page="/login.htm" />
      <Field type="SET" name="langcode" property="Input" match="&lt;INPUT type=hidden value='([\S]*)' name=&quot;lang_code&quot;&gt;" skiplogin="true" page="/login.htm" />
      <Field name="Postloginfind" type="found" match="(F5D8231)" set="modelname=F5D8231" page="/index.htm"></Field>
      <Field type="SSID" name="ssid" match="var ssid = '(.+)';" page="/wireless_chan.htm" entity="\\(.)" />
      <!--This device includes WPS, but no hardware button.-->
      <Field type="SET" name="wps" match="if\('([\d])' == '0'\)" page="/wireless_wps.htm" property="Choice">
        <Choice result="0" value="off" />
        <Choice result="1" value="on" />
      </Field>
      <Field name="Security" type="SECURITY" match="var wl_security = '([\w]*)'" property="ChoiceInt" page="/wireless_encrypt.htm">
        <Choice result="none" value="1" set="sm=none" />
        <Choice result="psk" value="3" set="sm=wpa" />
        <Choice result="WPA2" value="3" set="sm=wpa" />
        <Choice result="WPA1WPA2" value="3" set="sm=wpa" />
        <Choice result="wep" value="2" set="sm=wep" />
      </Field>
      <!--Note no enterprise/radius support. Always using supported Security mode.-->
      <Field type="WPSMODE" name="WPSMODE" property="ChoiceValidateInt">
        <Choice validate="sm=wep" value="0" />
        <Choice validate="wps=on" value="3" />
        <Choice validate="wps=off" value="1" />
      </Field>
      <Field type="NOOP" name="KEYLEN" match="var wl_key_length = '([\d]*)';" validate="sm=wep" page="/wireless_encrypt.htm" property="ChoiceInt">
        <Choice result="104" set="keylen=128" />
        <Choice result="40" set="keylen=64" />
      </Field>
      <!--Only 1 KEY when set to 128 bit-->
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="var wl_key_length = '([\d]*)';" page="/wireless_encrypt.htm">
        <Choice result="40" value="1" />
        <Choice result="104" value="2" />
      </Field>
      <Field type="WEPKEY1" name="WEPKEY128" validate="sm=wep;keylen=128" match="var key1='([\w]*)'" page="/wireless_encrypt_128.htm"></Field>
      <Field type="WEPKEY1" name="64WEPKEY1" validate="sm=wep;keylen=64" match="var key1='([\w]*)'" page="/wireless_encrypt_64.htm"></Field>
      <Field type="WEPKEY2" name="64WEPKEY2" validate="sm=wep;keylen=64" match="var key2='([\w]*)'" page="/wireless_encrypt_64.htm"></Field>
      <Field type="WEPKEY3" name="64WEPKEY3" validate="sm=wep;keylen=64" match="var key3='([\w]*)'" page="/wireless_encrypt_64.htm"></Field>
      <Field type="WEPKEY4" name="64WEPKEY4" validate="sm=wep;keylen=64" match="var key4='([\w]*)'" page="/wireless_encrypt_64.htm"></Field>
      <Field type="WPAPASS" name="wpapsk" validate="sm=wpa" match="f.wl_wpa_psk.value='(.+)';" page="/wireless_wpa_psk_wpa2_psk.htm" entity="\\(.)"></Field>
      <Field type="WPATYPE" name="wpatypecheck" validate="sm=wpa" match="var sec_mode = '([\w]*)'" property="ChoiceInt" page="/wireless_wpa_psk_wpa2_psk.htm">
        <Choice result="psk" value="0" />
        <Choice result="WPA1WPA2" value="1" />
        <Choice result="WPA2" value="1" />
      </Field>
    </WifiDeviceConfig>
    <!--BELKIN N Wireless Router F5D8233-4 H/w V3 F/W 3.01.10 2.18.2009-->
    <WifiDeviceConfig title="BELKIN N Wireless Router F5D8233" server="Apache/0.6.5" password="" page="/status.stm" login="/cgi-bin/login.exe" data="totalMSec=12000&amp;pws=%password%">
      <Field name="routerPresentCheck" required="false" type="FOUND" match="(F5D8233-4v3)" page="/status.stm" skiplogin="true" />
      <Field name="ModelCheck" type="SET" property="Input" match="(F5D8233-4v3)" skiplogin="true" page="/status.stm"></Field>
      <Field name="Postloginfind" type="FOUND" property="Input" match="(F5D8233-4v3)" page="/status.stm"></Field>
      <Field type="SSID" name="ssid" match="var\swlssid\s=\s'(.+)';" page="/status.stm" />
      <Field type="SET" name="enablessn" match="var enableSSN=([\d]);" page="/wireless_e.stm"></Field>
      <Field type="SET" name="enablewep" match="var enableWEP=([\d]);" page="/wireless_e.stm"></Field>
      <Field name="Security" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="enablewep=0;enablessn=0" value="1" set="sm=none" />
        <Choice validate="enablewep=1;enablessn=0" value="2" set="sm=wep" />
        <Choice validate="enablewep=0;enablessn=1" value="3" set="sm=wpa;wpatype=wpa2" />
        <Choice validate="enablewep=0;enablessn=2" value="3" set="sm=wpa;wpatype=wpa2" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field type="SET" name="wpsenable" property="Choice" page="/wireless_wps.stm" match="var WSC_Mode = ([\d]);">
        <Choice result="1" value="yes" />
        <Choice result="0" value="no" />
      </Field>
      <Field type="WPSMODE" name="WPSMODE" property="ChoiceValidateInt">
        <Choice validate="sm=wep" value="0" />
        <Choice validate="sm=unsupported" value="0" />
        <Choice validate="wpsenable=yes" value="3" />
        <Choice validate="wpsenable=no" value="1" />
      </Field>
      <Field type="SET" name="wepkeytype" match="var WEPKEYTYPE=([\d]);" validate="sm=wep" page="/wireless_e.stm"></Field>
      <Field name="WEPKEYTYPESET" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field type="WEPSTRENGTH" name="WEPSTRENGTH" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="2" validate="wepkeytype=1"></Choice>
        <Choice value="1" validate="wepkeytype=0"></Choice>
      </Field>
      <Field type="SET" name="wepkeysurl" property="ChoiceValidate">
        <!--validate="sm=wep"-->
        <Choice validate="wepkeytype=1" value="/wireless_128bitwep.stm" />
        <Choice validate="wepkeytype=0" value="/wireless_64bitwep.stm" />
        <Choice value="/wireless_64bitwep.stm" />
      </Field>
      <!--The formatting of the wep keys in the source code force us to piece them together in pairs.-->
      <Field type="SET" name="wepkeysurl" validate="wepkeytype=0" match="(/wireless_64bitwep.stm)" page="/wireless_e.stm"></Field>
      <Field type="SET" name="wepkeys0" validate="sm=wep" match="document.tF.keys\[0\].value=&quot;([\w]*)&quot;;" page="%wepkeysurl%"></Field>
      <Field type="SET" name="wepkeys1" validate="sm=wep" match="document.tF.keys\[1\].value=&quot;([\w]*)&quot;;" page="%wepkeysurl%"></Field>
      <Field type="SET" name="wepkeys2" validate="sm=wep" match="document.tF.keys\[2\].value=&quot;([\w]*)&quot;;" page="%wepkeysurl%"></Field>
      <Field type="SET" name="wepkeys3" validate="sm=wep" match="document.tF.keys\[3\].value=&quot;([\w]*)&quot;;" page="%wepkeysurl%"></Field>
      <Field type="SET" name="wepkeys4" validate="sm=wep" match="document.tF.keys\[4\].value=&quot;([\w]*)&quot;;" page="%wepkeysurl%"></Field>
      <Field type="SET" name="wepkeys5" validate="sm=wep" match="document.tF.keys\[5\].value=&quot;([\w]*)&quot;;" page="%wepkeysurl%"></Field>
      <Field type="SET" name="wepkeys6" validate="sm=wep" match="document.tF.keys\[6\].value=&quot;([\w]*)&quot;;" page="%wepkeysurl%"></Field>
      <Field type="SET" name="wepkeys7" validate="sm=wep" match="document.tF.keys\[7\].value=&quot;([\w]*)&quot;;" page="%wepkeysurl%"></Field>
      <Field type="SET" name="wepkeys8" validate="sm=wep" match="document.tF.keys\[8\].value=&quot;([\w]*)&quot;;" page="%wepkeysurl%"></Field>
      <Field type="SET" name="wepkeys9" validate="sm=wep" match="document.tF.keys\[9\].value=&quot;([\w]*)&quot;;" page="%wepkeysurl%"></Field>
      <Field type="SET" name="wepkeys10" validate="sm=wep" match="document.tF.keys\[10\].value=&quot;([\w]*)&quot;;" page="%wepkeysurl%"></Field>
      <Field type="SET" name="wepkeys11" validate="sm=wep" match="document.tF.keys\[11\].value=&quot;([\w]*)&quot;;" page="%wepkeysurl%"></Field>
      <Field type="SET" name="wepkeys12" validate="sm=wep" match="document.tF.keys\[12\].value=&quot;([\w]*)&quot;;" page="%wepkeysurl%"></Field>
      <Field type="SET" name="wepkeys13" validate="sm=wep;wepkeytype=0" match="document.tF.keys\[13\].value=&quot;([\w]*)&quot;;" page="%wepkeysurl%">
        <!--The 128 bit wep key has only 13(0 through 12) hex pairs.-->
      </Field>
      <Field type="SET" name="wepkeys14" validate="sm=wep;wepkeytype=0" match="document.tF.keys\[14\].value=&quot;([\w]*)&quot;;" page="%wepkeysurl%"></Field>
      <Field type="SET" name="wepkeys15" validate="sm=wep;wepkeytype=0" match="document.tF.keys\[15\].value=&quot;([\w]*)&quot;;" page="%wepkeysurl%"></Field>
      <Field type="SET" name="wepkeys16" validate="sm=wep;wepkeytype=0" match="document.tF.keys\[16\].value=&quot;([\w]*)&quot;;" page="%wepkeysurl%"></Field>
      <Field type="SET" name="wepkeys17" validate="sm=wep;wepkeytype=0" match="document.tF.keys\[17\].value=&quot;([\w]*)&quot;;" page="%wepkeysurl%"></Field>
      <Field type="SET" name="wepkeys18" validate="sm=wep;wepkeytype=0" match="document.tF.keys\[18\].value=&quot;([\w]*)&quot;;" page="%wepkeysurl%"></Field>
      <Field type="SET" name="wepkeys19" validate="sm=wep;wepkeytype=0" match="document.tF.keys\[19\].value=&quot;([\w]*)&quot;;" page="%wepkeysurl%"></Field>
      <!--Only 1 key when set to 128 bit.-->
      <Field type="WEPKEY1" name="128WEPKEY1" validate="sm=wep;wepkeytype=1" property="ChoiceValidate">
        <Choice value="%wepkeys0%%wepkeys1%%wepkeys2%%wepkeys3%%wepkeys4%%wepkeys5%%wepkeys6%%wepkeys7%%wepkeys8%%wepkeys9%%wepkeys10%%wepkeys11%%wepkeys12%" />
      </Field>
      <Field type="WEPKEY1" name="64WEPKEY1" validate="sm=wep;wepkeytype=0" property="ChoiceValidate">
        <Choice value="%wepkeys0%%wepkeys1%%wepkeys2%%wepkeys3%%wepkeys4%" />
      </Field>
      <Field type="WEPKEY2" name="64WEPKEY2" validate="sm=wep;wepkeytype=0" property="ChoiceValidate">
        <Choice value="%wepkeys5%%wepkeys6%%wepkeys7%%wepkeys8%%wepkeys9%" />
      </Field>
      <Field type="WEPKEY3" name="64WEPKEY3" validate="sm=wep;wepkeytype=0" property="ChoiceValidate">
        <Choice value="%wepkeys10%%wepkeys11%%wepkeys12%%wepkeys13%%wepkeys14%" />
      </Field>
      <Field type="WEPKEY4" name="64WEPKEY4" validate="sm=wep;wepkeytype=0" property="ChoiceValidate">
        <Choice value="%wepkeys15%%wepkeys16%%wepkeys17%%wepkeys18%%wepkeys19%" />
      </Field>
      <Field type="WPAPASS" name="wpapsk" validate="sm=wpa" entity="\\(.)" match="document.tF.wpa_key_text.value=&quot;(.*)&quot;;" page="/wireless_PSK.stm"></Field>
      <Field type="WPATYPE" name="wpatypecheck" validate="sm=wpa" match="name=&quot;encryption&quot;[^&gt;]*&gt;'\);[^;]*&lt;option[\s]*value=[\d][\s]*selected&gt;([\S]*)&lt;/option&gt;" property="ChoiceInt" page="/wireless_PSK.stm">
        <Choice result="TKIP" value="0" />
        <Choice result="AES" value="1" />
        <Choice result="TKIP+AES" value="1" />
        <Choice result="TKIP AES" value="1" />
      </Field>
      <!--This router has no option for AUTH MODE. Assuming open.-->
      <Field type="WEPMODE" name="wepmode" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!--BELKIN Wireless G Plus MIMO Router HW WRTR_159G_v01 f/w 3.02.76 2.5.2009  -->
    <WifiDeviceConfig title="BELKIN Wireless G Plus MIMO Router" password="" server="httpd" page="/home.htm" login="/password.cgi" data="lang_code=%langcode%&amp;charset=%charset%&amp;page=login&amp;logout=2&amp;login_password=%password%">
      <!--Check which language the Router's web is set to before logging in so we don't change the language when we do it.-->
      <Field name="routerPresentCheck" type="FOUND" required="FALSE" match="(WRTR_159G_v01)" skiplogin="true" page="/" />
      <Field type="SET" name="charset" property="Input" match="value='([^']*)' name=&quot;charset&quot;" skiplogin="true" page="/login.htm"></Field>
      <Field type="SET" name="langcode" property="Input" match="value='([\w]*)' name=&quot;lang_code&quot;" skiplogin="true" page="/login.htm" />
      <Field type="NOOP" name="modelName" match="(WRTR_159G)" property="Choice" skiplogin="false" page="/index.htm">
        <Choice set="modelname=F5D9230" result="WRTR_159G" />
      </Field>
      <Field name="Postloginfind" type="FOUND" match="(WRTR_159G_v01)" set="modelname=WRTR_159G" page="/home.htm"></Field>
      <Field type="SSID" name="ssid" match="var ssid = '(.+)';" entity="\\(.)" page="/wireless_chan.htm" />
      <!--No WPS.-->
      <Field type="WPSMODE" name="WirelessWPS" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field name="Security" type="SECURITY" match="var wl_security = '([\w]*)'" property="ChoiceInt" page="/wireless_encrypt.htm">
        <Choice result="none" value="1" set="sm=none" />
        <Choice result="psk" value="3" set="sm=wpa" />
        <Choice result="WPA2" value="3" set="sm=wpa" />
        <Choice result="WPA1WPA2" value="3" set="sm=wpa" />
        <Choice result="wep" value="2" set="sm=wep" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field type="NOOP" name="KEYLEN" match="var wl_key_length = '([\d]*)';" validate="sm=wep" page="/wireless_encrypt.htm" property="ChoiceInt">
        <Choice result="104" set="keylen=128" />
        <Choice result="40" set="keylen=64" />
      </Field>
      <!--Only 1 KEY when set to 128 bit-->
      <Field type="WEPSTRENGTH" name="WEPSTRENGTH" match="var wl_key_length = '([\d]*)';" validate="sm=wep" page="/wireless_encrypt.htm" property="ChoiceInt">
        <Choice result="104" value="2" />
        <Choice result="40" value="1" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field type="WEPKEY1" name="WEPKEY128" validate="sm=wep;keylen=128" match="var key1='([\w]*)'" page="/wireless_encrypt_128.htm"></Field>
      <Field type="WEPKEY1" name="64WEPKEY1" validate="sm=wep;keylen=64" match="var key1='([\w]*)'" page="/wireless_encrypt_64.htm"></Field>
      <Field type="WEPKEY2" name="64WEPKEY2" validate="sm=wep;keylen=64" match="var key2='([\w]*)'" page="/wireless_encrypt_64.htm"></Field>
      <Field type="WEPKEY3" name="64WEPKEY3" validate="sm=wep;keylen=64" match="var key3='([\w]*)'" page="/wireless_encrypt_64.htm"></Field>
      <Field type="WEPKEY4" name="64WEPKEY4" validate="sm=wep;keylen=64" match="var key4='([\w]*)'" page="/wireless_encrypt_64.htm"></Field>
      <Field type="WPAPASS" name="wpapsk" validate="sm=wpa" match="f.wl_wpa_psk.value='(.+)';" entity="\\(.)" page="/wireless_wpa_psk.htm"></Field>
      <Field type="WPATYPE" name="wpatypecheck" validate="sm=wpa" match="var sec_mode = '([\w]*)'" property="ChoiceInt" page="/wireless_wpa_psk.htm">
        <Choice result="psk" value="0" />
        <Choice result="WPA1WPA2" value="1" />
        <Choice result="WPA2" value="1" />
      </Field>
    </WifiDeviceConfig>
    <!--BELKIN Wireless G Router F5D7230-4 hw v7001 f/w 9.01.05 2.4.2009 JRO-->
    <WifiDeviceConfig title="BELKIN Wireless G Router" password="" page="/index.stm" login="/cgi-bin/login.exe" data="pws=%password%" server="Apache/0.6.5">
      <Field name="routerPresentCheck" type="FOUND" required="FALSE" match="var login_success= '0';" skipLogin="true" page="/loginpserr.stm"></Field>
      <Field name="Postloginfind" type="FOUND" match="var PM = &quot;(154DSL)&quot;; // product model" page="/index.stm"></Field>
      <Field type="NOOP" name="modelName" match="var PM = &quot;(154DSL)&quot;; // product model" property="Choice" skiplogin="true" page="/index.stm">
        <Choice result="154DSL" set="modelname=F5D7230" />
      </Field>
      <Field name="ssid" type="SSID" match="name=&quot;ssid&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;" page="/wireless_id.stm" />
      <!--No WPS For this device.-->
      <Field type="WPSMODE" name="WirelessWPS" property="ChoiceValidateInt" skiplogin="true">
        <Choice value="0" />
      </Field>
      <Field type="SET" name="enablessn" match="var enableSSN=([\d]);" page="/wireless_e.stm"></Field>
      <Field type="SET" name="enablewep" match="var enableWEP=([\d]);" page="/wireless_e.stm"></Field>
      <Field type="SET" name="radius" match="var wpa1x=([\d]);" page="/wireless_e.stm"></Field>
      <Field name="Security" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="enablewep=0;enablessn=0" value="1" set="sm=none" />
        <Choice validate="enablewep=1;enablessn=0;radius=0" value="2" set="sm=wep" />
        <Choice validate="enablewep=0;enablessn=1;radius=0" value="3" set="sm=wpa;wpatype=wpa2" />
        <Choice validate="enablewep=0;enablessn=2;radius=0" value="3" set="sm=wpa;wpatype=wpa2" />
        <Choice validate="radius=1" value="0" set="sm=unsupported" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceInt" match="var iDOD =  ([\d]);" page="/wireless_e.stm">
        <Choice result="0" value="0">
          <!--Hex-->
        </Choice>
        <Choice result="1" value="1">
          <!--Ascii-->
        </Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="document.form1.wep_len([\S]*).defaultChecked=true;" page="/wireless_e.stm">
        <Choice result="[0]" value="1" />
        <Choice result="[1]" value="2" />
      </Field>
      <Field type="WEPKEY1" name="WEPKEY1" validate="sm=wep" match="document.form1.key1.value=&quot;([\S]*)&quot;;" page="/wireless_e.stm"></Field>
      <Field type="WEPKEY2" name="WEPKEY2" validate="sm=wep" match="document.form1.key2.value=&quot;([\S]*)&quot;;" page="/wireless_e.stm"></Field>
      <Field type="WEPKEY3" name="WEPKEY3" validate="sm=wep" match="document.form1.key3.value=&quot;([\S]*)&quot;;" page="/wireless_e.stm"></Field>
      <Field type="WEPKEY4" name="WEPKEY4" validate="sm=wep" match="document.form1.key4.value=&quot;([\S]*)&quot;;" page="/wireless_e.stm"></Field>
      <Field type="WPAPASS" name="wpapsk" validate="sm=wpa" match="document.form2.sharedkey.value=&quot;([^&quot;]*)&quot;" page="/wireless_e.stm"></Field>
      <!--This router does not include an option for TKIP/AES. We assume it supports the older standard only.-->
      <Field type="WPATYPE" name="wpatypecheck" validate="sm=wpa" match="&lt;option selected&gt;([\w]*)&lt;/option&gt;" property="ChoiceValidateInt" page="/wireless_e.stm">
        <Choice value="0" />
      </Field>
      <!--This router has no option for AUTH MODE. Assuming open.-->
      <Field type="WEPMODE" name="wepmode" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!--D-Link DI-524 H/W: A1 F/W: 1.23 2.11.2009-->
    <WifiDeviceConfig title="D-Link DI-524" server="Embedded HTTP Server 1.23" realm="DI-524" user="admin" password="" page="/h_wireless.html">
      <!--Default is blank password.-->
      <Field name="PreLoginFind" type="FOUND" required="false" match="&lt;BODY BGCOLOR=&quot;(#ffffff)&quot;&gt;&lt;H4&gt;401 Unauthorized&lt;/H4&gt;&lt;/BODY&gt;&lt;/HTML&gt;" page="" />
      <Field name="modelname" type="NOOP" match="&lt;TITLE&gt;(DI-524)&lt;/TITLE&gt;" />
      <Field name="PostLoginFound" type="FOUND" match="&lt;TITLE&gt;(DI-524)&lt;/TITLE&gt;" />
      <!--Uses &entityname; -->
      <Field name="SSID" type="SSID" match="name=&quot;wirelessESSID&quot; value=&quot;([^&quot;]*)&quot;"></Field>
      <!-- router does not support WPSMODE - set default of No WPS -->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field name="SecurityDropdown" type="SECURITY" property="ChoiceInt" match="name=&quot;auth&quot;[^&gt;]*&gt;[^:]*&lt;option value=&quot;([\d])&quot;[\s]*selected&gt;">
        <Choice result="0" value="1" set="sm=disabled" />
        <Choice result="1" value="2" set="sm=wep" />
        <Choice result="3" value="3" set="sm=wpa" />
        <Choice result="5" value="3" set="sm=wpa" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WEPAUTHRADIO" type="WEPMODE" validate="sm=wep" property="ChoiceInt" match="name=&quot;WepType&quot; type=&quot;radio&quot; value=&quot;([\d])&quot; checked&gt;">
        <Choice result="0" value="0" />
        <Choice result="1" value="1" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceInt" match="&lt;option value=&quot;[\d]&quot; selected&gt;(ASCII|HEX)&lt;/option&gt;">
        <Choice result="ASCII" value="1" />
        <Choice result="HEX" value="0" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="&lt;option value=&quot;[\d]&quot;[\s]*selected&gt;(128Bit|64Bit)&lt;/option&gt;">
        <Choice result="64Bit" value="1" />
        <Choice result="128Bit" value="2" />
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="name=&quot;key1&quot;[^&gt;]*value=&quot;(.+)&quot;&gt;"></Field>
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="name=&quot;key2&quot;[^&gt;]*value=&quot;(.+)&quot;&gt;"></Field>
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="name=&quot;key3&quot;[^&gt;]*value=&quot;(.+)&quot;&gt;"></Field>
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="name=&quot;key4&quot;[^&gt;]*value=&quot;(.+)&quot;&gt;"></Field>
      <!--Uses &entityname;-->
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" match="name=&quot;wpapsk1&quot;[^&gt;]*value=&quot;(.+)&quot;&gt;"></Field>
      <!--Router uses TKIP only.-->
      <Field name="WPATYPE" type="WPATYPE" property="ChoiceValidateInt" validate="sm=wpa">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!-- D-Link DIR-615 H/W: B1 F/W: 2.25 2.19.2009-->
    <WifiDeviceConfig title="D-Link DIR-615" server="Ubicom/1.1" password="" page="/Basic/Wireless.shtml" login="/post_login.xml?hash=%salt%%saltedHash%">
      <Field name="PreLoginFind" type="FOUND" match="href=&quot;/substyle_(DIR-615).css" required="false" skiplogin="true" page="/"></Field>
      <Field name="modelName" type="SET" property="Input" match="&lt;a[^&gt;]*&gt;(DIR-615)&lt;/a&gt;" skiplogin="true" page="/"></Field>
      <Field name="salt" type="SET" property="Input" match="var salt = &quot;(.+)&quot;" skiplogin="true" page="/" />
      <Field name="saltedHash" type="SET" property="ChoiceValidate" skiplogin="true" hashresult="true" fillsize="64" fillbyte="1" page="/">
        <Choice value="%salt%%password%" />
      </Field>
      <Field name="PostLoginFind" type="FOUND" match="(&lt;title&gt;D-LINK)" page="/Basic/Internet.shtml"></Field>
      <Field name="ssid" type="SSID" match="&lt;input[^&gt;]*id=&quot;wireless_SSID&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;[^&gt;]*name=&quot;config.wireless.SSID&quot;[^&gt;]*&gt;" />
      <!--<Field name="wifisc_configured" type="WPSMODE" property="ChoiceInt" validate="wpsenabled=yes" match="var wifisc_configured = &quot;([\w]*)&quot;" page="/Status/Device_Info.shtml"><Choice set="wps=on" value="3" result="true"></Choice><Choice set="wps=off" value="1"></Choice></Field>-->
      <Field name="wifisc_enabled" type="NOOP" property="ChoiceInt" match="var wifisc_enabled = &quot;([\w]*)&quot;" page="/Status/Device_Info.shtml">
        <Choice result="false" set="wpsenabled=no;wps=off"></Choice>
        <Choice result="true" set="wpsenabled=yes" />
      </Field>
      <Field name="wifisc_configured" type="NOOP" property="ChoiceInt" match="var wifisc_configured = &quot;([\w]*)&quot;" validate="wpsenabled=yes" page="/Status/Device_Info.shtml">
        <Choice result="false" set="wps=off"></Choice>
        <Choice result="true" set="wps=on" />
      </Field>
      <Field name="wireless_ieee8021x_enabled" type="NOOP" property="Choice" match="name=&quot;config.wireless.ieee8021x_enabled&quot; value=&quot;([\w]*)&quot;">
        <Choice result="true" set="enterprise=on" />
        <Choice result="false" set="enterprise=off" />
      </Field>
      <Field name="wireless_wpa_enabled" type="NOOP" property="ChoiceInt" match="name=&quot;config.wireless.wpa_enabled&quot; value=&quot;([\w]*)&quot;">
        <Choice set="wpa=enabled" result="true" />
        <Choice result="false" set="wpa=disabled" />
      </Field>
      <Field name="wireless_wepon" type="NOOP" property="ChoiceInt" match="name=&quot;config.wireless.wepon&quot; value=&quot;([\w]*)&quot;">
        <Choice set="wep=disabled" result="false" />
        <Choice set="wep=enabled" result="true" />
      </Field>
      <Field name="Security" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="wep=disabled;wpa=disabled" value="1" set="sm=none" />
        <Choice validate="wep=enabled;wpa=disabled;" value="2" set="sm=wep" />
        <Choice validate="wep=disabled;wpa=enabled;enterprise=off" value="3" set="sm=wpapsk" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice validate="sm=unsupported" value="0"></Choice>
        <Choice validate="sm=wep" value="0"></Choice>
        <Choice validate="wps=on;enterprise=off" value="3"></Choice>
        <Choice value="1"></Choice>
      </Field>
      <Field name="wireless_auth" type="WEPMODE" validate="sm=wep" property="ChoiceInt" match="name=&quot;config.wireless.auth&quot; value=&quot;([\d])&quot;">
        <Choice result="2" value="1">
          <!--Shared-->
        </Choice>
        <Choice result="1" value="2">
          <!--"Both" in the dropdown-->
        </Choice>
      </Field>
      <Field name="wireless_keylen" type="NOOP" validate="sm=wep" property="ChoiceInt" match="name=&quot;config.wireless.keylen&quot; value=&quot;([\d])&quot;">
        <Choice result="1" set="keylen=128"></Choice>
        <Choice value="0" set="keylen=64"></Choice>
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceValidateInt">
        <Choice validate="keylen=64" value="1"></Choice>
        <Choice validate="keylen=128" value="2"></Choice>
      </Field>
      <Field name="64bitKEY1" type="WEPKEY1" validate="sm=wep;keylen=64" match="id=&quot;wep_key0&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY2" type="WEPKEY2" validate="sm=wep;keylen=64" match="id=&quot;wep_key1&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY3" type="WEPKEY3" validate="sm=wep;keylen=64" match="id=&quot;wep_key2&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY4" type="WEPKEY4" validate="sm=wep;keylen=64" match="id=&quot;wep_key3&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="128bitKEY1" type="WEPKEY1" validate="sm=wep;keylen=128" match="id=&quot;wep_key0&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY2" type="WEPKEY2" validate="sm=wep;keylen=128" match="id=&quot;wep_key1&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY3" type="WEPKEY3" validate="sm=wep;keylen=128" match="id=&quot;wep_key2&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY4" type="WEPKEY4" validate="sm=wep;keylen=128" match="id=&quot;wep_key3&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="CipherType" type="WPATYPE" validate="sm=wpapsk" property="ChoiceInt" match="name=&quot;config.wireless.wpa_cipher&quot; value=&quot;([\d])&quot;">
        <Choice result="1" value="0">
          <!--TKIP-->
        </Choice>
        <Choice result="2" value="1">
          <!--AES-->
        </Choice>
        <Choice result="3" value="1">
          <!--AES and TKIP-->
        </Choice>
      </Field>
      <Field name="PreSharedKey" type="WPAPASS" validate="sm=wpapsk" match="name=&quot;config.wireless.wpa_psk&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;"></Field>
    </WifiDeviceConfig>
    <!-- D-Link DIR-625 H/W: C2 F/W: 3.04 2.19.2009-->
    <WifiDeviceConfig title="D-Link DIR-625" server="Ubicom/1.1" password="" page="/Basic/Wireless.shtml" login="/post_login.xml?hash=%salt%%saltedHash%">
      <Field name="PreLoginFind" type="FOUND" property="Input" match="href=&quot;/substyle_(DIR-625).css&quot;" skiplogin="true" required="false" page="/" />
      <Field name="modelName" type="SET" property="Input" match="&lt;a[^&gt;]*&gt;(DIR-625)&lt;/a&gt;" skiplogin="true" page="/" />
      <Field name="salt" type="SET" property="Input" match="var salt = &quot;(.+)&quot;" skiplogin="true" page="/" />
      <Field name="saltedHash" type="SET" property="ChoiceValidate" skiplogin="true" hashresult="true" fillsize="64" fillbyte="1" page="/">
        <Choice value="%salt%%password%" />
      </Field>
      <Field name="PostLoginFind" type="FOUND" match="(&lt;title&gt;D-LINK)" page="/Basic/Internet.shtml"></Field>
      <Field name="modelName" type="FOUND" match="&lt;a[^&gt;]*&gt;(DIR-625)&lt;/a&gt;" page="/" />
      <Field name="ssid" type="SSID" match="&lt;input[^&gt;]*id=&quot;wireless_SSID&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;[^&gt;]*name=&quot;config.wireless.SSID&quot;[^&gt;]*&gt;" />
      <Field name="wifisc_enabled" type="NOOP" property="ChoiceInt" match="var wifisc_enabled = &quot;([\w]*)&quot;" page="/Status/Device_Info.shtml">
        <Choice result="false" set="wpsenabled=no;wps=off"></Choice>
        <Choice result="true" set="wpsenabled=yes;" />
      </Field>
      <Field name="wifisc_configured" type="NOOP" property="ChoiceInt" validate="wpsenabled=yes" match="var wifisc_configured = &quot;([\w]*)&quot;" page="/Status/Device_Info.shtml">
        <Choice set="wps=on" result="true"></Choice>
        <Choice set="wps=off"></Choice>
      </Field>
      <Field name="wireless_ieee8021x_enabled" type="NOOP" property="Choice" match="name=&quot;config.wireless.ieee8021x_enabled&quot; value=&quot;([\w]*)&quot;">
        <Choice result="true" set="enterprise=on" />
        <Choice result="false" set="enterprise=off" />
      </Field>
      <Field name="wireless_wpa_enabled" type="NOOP" property="ChoiceInt" match="name=&quot;config.wireless.wpa_enabled&quot; value=&quot;([\w]*)&quot;">
        <Choice set="wpa=enabled" result="true" />
        <Choice result="false" set="wpa=disabled" />
      </Field>
      <Field name="wireless_wepon" type="NOOP" property="ChoiceInt" match="name=&quot;config.wireless.wepon&quot; value=&quot;([\w]*)&quot;">
        <Choice set="wep=disabled" result="false" />
        <Choice set="wep=enabled" result="true" />
      </Field>
      <Field name="Security" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="wep=disabled;wpa=disabled;" value="1" set="sm=none" />
        <Choice validate="wep=enabled;wpa=disabled;" value="2" set="sm=wep" />
        <Choice validate="wep=disabled;wpa=enabled;enterprise=off" value="3" set="sm=wpapsk" />
        <Choice value="0" set="sm=unsupported"></Choice>
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice validate="sm=unsupported" value="0"></Choice>
        <Choice validate="sm=wep" value="0"></Choice>
        <Choice validate="wps=on;enterprise=off" value="3"></Choice>
        <Choice value="1"></Choice>
      </Field>
      <Field name="wireless_auth" type="WEPMODE" validate="sm=wep" property="ChoiceInt" match="name=&quot;config.wireless.auth&quot; value=&quot;([\d])&quot;">
        <Choice result="2" value="1">
          <!--Shared-->
        </Choice>
        <Choice result="1" value="2">
          <!--"Both" in the dropdown-->
        </Choice>
      </Field>
      <Field name="wireless_keylen" type="NOOP" validate="sm=wep" property="ChoiceInt" match="name=&quot;config.wireless.keylen&quot; value=&quot;([\d])&quot;">
        <Choice result="1" set="keylen=128"></Choice>
        <Choice result="0" set="keylen=64"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceValidateInt">
        <Choice validate="keylen=128" value="2"></Choice>
        <Choice validate="keylen=64" value="1"></Choice>
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <Field name="64bitKEY1" type="WEPKEY1" validate="sm=wep;keylen=64" match="id=&quot;wep_key0&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY2" type="WEPKEY2" validate="sm=wep;keylen=64" match="id=&quot;wep_key1&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY3" type="WEPKEY3" validate="sm=wep;keylen=64" match="id=&quot;wep_key2&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY4" type="WEPKEY4" validate="sm=wep;keylen=64" match="id=&quot;wep_key3&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="128bitKEY1" type="WEPKEY1" validate="sm=wep;keylen=128" match="id=&quot;wep_key0&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY2" type="WEPKEY2" validate="sm=wep;keylen=128" match="id=&quot;wep_key1&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY3" type="WEPKEY3" validate="sm=wep;keylen=128" match="id=&quot;wep_key2&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY4" type="WEPKEY4" validate="sm=wep;keylen=128" match="id=&quot;wep_key3&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="CipherType" type="WPATYPE" validate="sm=wpapsk" property="ChoiceInt" match="name=&quot;config.wireless.wpa_cipher&quot; value=&quot;([\d])&quot;">
        <Choice result="1" value="0">
          <!--TKIP-->
        </Choice>
        <Choice result="2" value="1">
          <!--AES-->
        </Choice>
        <Choice result="3" value="1">
          <!--AES and TKIP-->
        </Choice>
      </Field>
      <Field name="PreSharedKey" type="WPAPASS" validate="sm=wpapsk" match="name=&quot;config.wireless.wpa_psk&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;"></Field>
    </WifiDeviceConfig>
    <!-- D-Link DIR-655 H/W: A3 F/W: 1.11 2.19.2009-->
    <WifiDeviceConfig title="D-Link DIR-655" server="Ubicom/1.1" password="" page="/Basic/Wireless.shtml" login="/post_login.xml?hash=%salt%%saltedHash%">
      <Field name="PreLoginFind" type="FOUND" match="href=&quot;/substyle_(DIR-655).css&quot;" skiplogin="true" required="false" page="/" />
      <Field name="modelName" type="SET" property="Input" match="&lt;a[^&gt;]*&gt;(DIR-655)&lt;/a&gt;" skiplogin="true" page="/" />
      <Field name="salt" type="SET" property="Input" match="var salt = &quot;(.+)&quot;" skiplogin="true" page="/" />
      <Field name="saltedHash" type="SET" property="ChoiceValidate" skiplogin="true" hashresult="true" fillsize="64" fillbyte="1" page="/">
        <Choice value="%salt%%password%" />
      </Field>
      <Field name="PostLoginFind" type="FOUND" match="&lt;a[^&gt;]*&gt;(DIR-655)&lt;/a&gt;" page="/" />
      <Field name="ssid" type="SSID" match="id=&quot;wireless_SSID[\w]*&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;" />
      <Field name="wifisc_enabled" type="NOOP" property="ChoiceInt" match="wifisc_enabled = &quot;([\w]*)&quot;" page="/Status/Device_Info.shtml">
        <Choice result="false" set="wpsenabled=no;wps=off"></Choice>
        <Choice result="true" set="wpsenabled=yes" />
      </Field>
      <Field name="wifisc_configured" type="NOOP" property="ChoiceInt" validate="wpsenabled=yes" match="[^_]wifisc_configured = &quot;([\w]*)&quot;" page="/Status/Device_Info.shtml">
        <Choice set="wps=on" result="true"></Choice>
        <Choice set="wps=off"></Choice>
      </Field>
      <Field name="wireless_ieee8021x_enabled" type="NOOP" property="Choice" match="id=&quot;wireless_ieee8021x_enabled[\w]*&quot;[^&gt;]*value=&quot;([\w]*)&quot;">
        <Choice result="true" set="enterprise=on" />
        <Choice result="false" set="enterprise=off" />
      </Field>
      <Field name="wireless_wpa_enabled" type="NOOP" property="ChoiceInt" match="id=&quot;wireless_wpa_enabled[\w]*&quot;[^&gt;]*value=&quot;([\w]*)&quot;">
        <Choice set="wpa=enabled" result="true" />
        <Choice result="false" set="wpa=disabled" />
      </Field>
      <Field name="wireless_wepon" type="NOOP" property="ChoiceInt" match="id=&quot;wireless_wepon[\w]*&quot;[^&gt;]*value=&quot;([\w]*)&quot;">
        <Choice set="wep=disabled" result="false" />
        <Choice set="wep=enabled" result="true" />
      </Field>
      <Field name="Security" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="wep=disabled;wpa=disabled" value="1" set="sm=none" />
        <Choice validate="wep=enabled;wpa=disabled" value="2" set="sm=wep" />
        <Choice validate="wep=disabled;wpa=enabled;enterprise=off" value="3" set="sm=wpapsk" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice validate="sm=unsupported" value="0"></Choice>
        <Choice validate="sm=wep" value="0"></Choice>
        <Choice validate="wps=on;enterprise=off" value="3"></Choice>
        <Choice value="1"></Choice>
      </Field>
      <Field name="wireless_auth" type="WEPMODE" validate="sm=wep" property="ChoiceInt" match="name=&quot;config.wireless.auth&quot; value=&quot;([\d])&quot;">
        <Choice result="2" value="1">
          <!--Shared-->
        </Choice>
        <Choice result="1" value="2">
          <!--"Both" in the dropdown-->
        </Choice>
      </Field>
      <Field name="wireless_keylen" type="NOOP" validate="sm=wep" property="ChoiceInt" match="name=&quot;config.wireless.keylen&quot; value=&quot;([\d])&quot;">
        <Choice result="1" set="keylen=128"></Choice>
        <Choice result="0" set="keylen=64"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="2" validate="keylen=128"></Choice>
        <Choice value="1" validate="keylen=64"></Choice>
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <Field name="64bitKEY1" type="WEPKEY1" validate="sm=wep;keylen=64" match="id=&quot;wep_key0&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY2" type="WEPKEY2" validate="sm=wep;keylen=64" match="id=&quot;wep_key1&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY3" type="WEPKEY3" validate="sm=wep;keylen=64" match="id=&quot;wep_key2&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY4" type="WEPKEY4" validate="sm=wep;keylen=64" match="id=&quot;wep_key3&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="128bitKEY1" type="WEPKEY1" validate="sm=wep;keylen=128" match="id=&quot;wep_key0&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY2" type="WEPKEY2" validate="sm=wep;keylen=128" match="id=&quot;wep_key1&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY3" type="WEPKEY3" validate="sm=wep;keylen=128" match="id=&quot;wep_key2&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY4" type="WEPKEY4" validate="sm=wep;keylen=128" match="id=&quot;wep_key3&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="CipherType" type="WPATYPE" validate="sm=wpapsk" property="ChoiceInt" match="name=&quot;config.wireless.wpa_cipher&quot; value=&quot;([\d])&quot;">
        <Choice result="1" value="0">
          <!--TKIP-->
        </Choice>
        <Choice result="2" value="1">
          <!--AES-->
        </Choice>
        <Choice result="3" value="1">
          <!--AES and TKIP-->
        </Choice>
      </Field>
      <Field name="PreSharedKey" type="WPAPASS" validate="sm=wpapsk" match="name=&quot;config.wireless.wpa_psk&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;"></Field>
    </WifiDeviceConfig>
    <!--D-Link DGL-4300 HW: A4 FW: 1.7 2.3.2009-->
    <WifiDeviceConfig title="D-Link DGL-4300" server="Ubicom/1.1" user="admin" password="" page="/Basic_Wireless.html" login="/post_login.cgi?data=%loginHash%">
      <Field type="FOUND" name="routerPresentCheck" match="(D-Link Gaming Router)" skiplogin="true" page="/" />
      <Field name="logindata" type="SET" property="Input" match="data=&quot;(.+)&quot;" skiplogin="true" convert="FromBase64" fillbyte="46" page="/pre_login.js" />
      <Field name="shex" type="SET" property="ChoiceValidate" skiplogin="true" convert="ToHex" maxlength="8" page="/">
        <Choice value="%logindata%" />
      </Field>
      <Field name="hash" type="SET" property="ChoiceValidate" skiplogin="true" hashresult="true" fillsize="64" fillbyte="1" page="/">
        <Choice value="%shex%%password%" />
      </Field>
      <Field name="saltedHash" type="SET" property="ChoiceValidate" skiplogin="true" convert="FromHex" fillsize="20" fillbyte="0" page="/">
        <Choice value="%shex%%hash%" />
      </Field>
      <Field name="loginHash" type="SET" property="ChoiceValidate" skiplogin="true" convert="ToBase64" fillbyte="46" page="/">
        <Choice value="%saltedHash%" />
      </Field>
      <Field name="ssiddata" type="SET" match="data=&quot;(.+)&quot;" convert="ByteFromArray" page="/wireless_basic" />
      <Field name="ssidFromData" type="SET" property="ChoiceValidate" startbyte="16" maxlength="32">
        <Choice value="%ssiddata%" />
      </Field>
      <Field name="ssid" type="SSID" property="ChoiceValidate">
        <Choice value="%ssidFromData%" />
      </Field>
      <Field name="wepbyte" type="SET" property="ChoiceValidate" convert="IntegerFromArray" startbyte="107" maxlength="1">
        <Choice value="%ssiddata%" />
      </Field>
      <Field name="enterprisebyte" type="SET" property="ChoiceValidate" convert="IntegerFromArray" startbyte="255" maxlength="1">
        <Choice value="%ssiddata%" />
      </Field>
      <Field name="wpabyte" type="SET" property="ChoiceValidate" convert="IntegerFromArray" startbyte="256" maxlength="1">
        <Choice value="%ssiddata%" />
      </Field>
      <!--No WPSMODE support for this router.-->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <Field name="Security" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="wpabyte=0;wepbyte=0" value="1" set="sm=none" />
        <Choice validate="wepbyte=1" value="2" set="sm=wep" />
        <Choice validate="wpabyte=1;enterprisebyte=0" value="3" set="sm=wpapsk" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="wepmodebyte" type="SET" property="ChoiceValidate" convert="IntegerFromArray" validate="sm=wep" startbyte="49" maxlength="1">
        <Choice value="%ssiddata%" />
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice validate="wepmodebyte=2" value="1">
          <!--Shared-->
        </Choice>
        <Choice validate="wepmodebyte=1" value="0">
          <!--OPEN-->
        </Choice>
      </Field>
      <!--Supports only hex keys.-->
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <Field name="strengthbyte" type="SET" property="ChoiceValidate" convert="IntegerFromArray" validate="sm=wep" startbyte="51" maxlength="1">
        <Choice value="%ssiddata%" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceValidateInt">
        <Choice validate="strengthbyte=0" value="1"></Choice>
        <Choice validate="strengthbyte=1" value="2"></Choice>
      </Field>
      <Field name="firstwep" type="SET" property="ChoiceValidate" validate="sm=wep" startbyte="55" maxlength="13">
        <Choice value="%ssiddata%" />
      </Field>
      <Field name="secondwep" type="SET" property="ChoiceValidate" validate="sm=wep" startbyte="68" maxlength="13">
        <Choice value="%ssiddata%" />
      </Field>
      <Field name="thirdwep" type="SET" property="ChoiceValidate" validate="sm=wep" startbyte="81" maxlength="13">
        <Choice value="%ssiddata%" />
      </Field>
      <Field name="fourthwep" type="SET" property="ChoiceValidate" validate="sm=wep" startbyte="94" maxlength="13">
        <Choice value="%ssiddata%" />
      </Field>
      <Field name="64hexkey1" type="SET" property="ChoiceValidate" validate="sm=wep" startbyte="0" maxlength="10" convert="ToHex">
        <Choice value="%firstwep%" />
      </Field>
      <Field name="64hexkey2" type="SET" property="ChoiceValidate" validate="sm=wep" startbyte="0" maxlength="10" convert="ToHex">
        <Choice value="%secondwep%" />
      </Field>
      <Field name="64hexkey3" type="SET" property="ChoiceValidate" validate="sm=wep" startbyte="0" maxlength="10" convert="ToHex">
        <Choice value="%thirdwep%" />
      </Field>
      <Field name="64hexkey4" type="SET" property="ChoiceValidate" validate="sm=wep" startbyte="0" maxlength="10" convert="ToHex">
        <Choice value="%fourthwep%" />
      </Field>
      <Field name="128hexkey1" type="SET" property="ChoiceValidate" validate="sm=wep" startbyte="0" maxlength="26" convert="ToHex">
        <Choice value="%firstwep%" />
      </Field>
      <Field name="128hexkey2" type="SET" property="ChoiceValidate" validate="sm=wep" startbyte="0" maxlength="26" convert="ToHex">
        <Choice value="%secondwep%" />
      </Field>
      <Field name="128hexkey3" type="SET" property="ChoiceValidate" validate="sm=wep" startbyte="0" maxlength="26" convert="ToHex">
        <Choice value="%thirdwep%" />
      </Field>
      <Field name="128hexkey4" type="SET" property="ChoiceValidate" validate="sm=wep" startbyte="0" maxlength="26" convert="ToHex">
        <Choice value="%fourthwep%" />
      </Field>
      <Field name="64bitKEY1" type="WEPKEY1" validate="sm=wep;strengthbyte=0" property="ChoiceValidate">
        <Choice value="%64hexkey1%" />
      </Field>
      <Field name="64bitKEY2" type="WEPKEY2" validate="sm=wep;strengthbyte=0" property="ChoiceValidate">
        <Choice value="%64hexkey2%" />
      </Field>
      <Field name="64bitKEY3" type="WEPKEY3" validate="sm=wep;strengthbyte=0" property="ChoiceValidate">
        <Choice value="%64hexkey3%" />
      </Field>
      <Field name="64bitKEY4" type="WEPKEY4" validate="sm=wep;strengthbyte=0" property="ChoiceValidate">
        <Choice value="%64hexkey4%" />
      </Field>
      <Field name="128bitKEY1" type="WEPKEY1" validate="sm=wep;strengthbyte=1" property="ChoiceValidate">
        <Choice value="%128hexkey1%" />
      </Field>
      <Field name="128bitKEY2" type="WEPKEY2" validate="sm=wep;strengthbyte=1" property="ChoiceValidate">
        <Choice value="%128hexkey2%" />
      </Field>
      <Field name="128bitKEY3" type="WEPKEY3" validate="sm=wep;strengthbyte=1" property="ChoiceValidate">
        <Choice value="%128hexkey3%" />
      </Field>
      <Field name="128bitKEY4" type="WEPKEY4" validate="sm=wep;strengthbyte=1" property="ChoiceValidate">
        <Choice value="%128hexkey4%" />
      </Field>
      <Field name="wpatypebyte" type="SET" property="ChoiceValidate" validate="sm=wpapsk" convert="IntegerFromArray" startbyte="257" maxlength="1">
        <Choice value="%ssiddata%" />
      </Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpapsk" property="ChoiceValidateInt">
        <Choice validate="wpatypebyte=1" value="0">
          <!--TKIP-->
        </Choice>
        <Choice value="1"></Choice>
      </Field>
      <Field name="wpapasskey" type="SET" property="ChoiceValidate" validate="sm=wpapsk" startbyte="258" maxlength="64">
        <Choice value="%ssiddata%" />
      </Field>
      <Field name="PreSharedKey" type="WPAPASS" validate="sm=wpapsk" property="ChoiceValidate">
        <Choice value="%wpapasskey%"></Choice>
      </Field>
    </WifiDeviceConfig>
    <!-- D-Link DGL-4500 - Using HW A1, F/W Ver 1.02 2.18.2009-->
    <WifiDeviceConfig title="D-Link DGL-4500" server="Ubicom/1.1" password="" page="/Basic/Wireless.shtml" login="/post_login.xml?hash=%salt%%saltedHash%">
      <!--If Server compare fails, no fields will be matched.-->
      <Field name="PreLoginFind" type="FOUND" match="&lt;title&gt;(D-Link Gaming Router)" required="false" skiplogin="true" page="/">
        <!--Even without a correct password we can know if we were trying to access a D-Link gaming router.-->
      </Field>
      <Field name="salt" type="SET" property="Input" match="var salt = &quot;(.+)&quot;" skiplogin="true" page="/" />
      <Field name="saltedHash" type="SET" property="ChoiceValidate" skiplogin="true" hashresult="true" fillsize="64" fillbyte="1" page="/">
        <Choice value="%salt%%password%" />
      </Field>
      <Field name="PostLoginFind" type="FOUND" match="(DGL-4500)" page="/Tools/Admin.shtml" />
      <Field name="modelName" type="SET" property="Input" match="(DGL-4500)" skiplogin="false" page="/Tools/Admin.shtml" />
      <Field name="ssid" type="SSID" match="&lt;input[^&gt;]*id=&quot;wireless_SSID&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;[^&gt;]*name=&quot;config.wireless.SSID&quot;[^&gt;]*&gt;" />
      <Field name="wifisc_enabled" type="NOOP" property="ChoiceInt" match="var wifisc_enabled = &quot;([\w]*)&quot;" page="/Status/Device_Info.shtml">
        <Choice result="false" set="wpsenabled=no;wps=off"></Choice>
        <Choice result="true" set="wpsenabled=yes" />
      </Field>
      <Field name="wifisc_configured" type="NOOP" property="ChoiceInt" validate="wpsenabled=yes" match="var wifisc_configured = &quot;([\w]*)&quot;" page="/Status/Device_Info.shtml">
        <Choice set="wps=on" result="true"></Choice>
        <Choice set="wps=off"></Choice>
      </Field>
      <Field name="wireless_ieee8021x_enabled" type="NOOP" property="Choice" match="name=&quot;config.wireless.ieee8021x_enabled&quot; value=&quot;([\w]*)&quot;">
        <Choice result="true" set="enterprise=on" />
        <Choice result="false" set="enterprise=off" />
      </Field>
      <!--1.30.2009: For Routers that support, always default to 1(support). for Enabled and active, set 3.-->
      <Field name="wireless_wpa_enabled" type="NOOP" property="ChoiceInt" match="name=&quot;config.wireless.wpa_enabled&quot; value=&quot;([\w]*)&quot;">
        <Choice set="wpa=enabled" result="true" />
        <Choice result="false" set="wpa=disabled" />
      </Field>
      <Field name="wireless_wepon" type="NOOP" property="ChoiceInt" match="name=&quot;config.wireless.wepon&quot; value=&quot;([\w]*)&quot;">
        <Choice set="wep=disabled" result="false" />
        <Choice set="wep=enabled" result="true" />
      </Field>
      <Field name="Security" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="wep=disabled;wpa=disabled" value="1" set="sm=none" />
        <Choice validate="wep=enabled;wpa=disabled" value="2" set="sm=wep" />
        <Choice validate="wep=disabled;wpa=enabled;enterprise=off" value="3" set="sm=wpapsk" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice validate="sm=unsupported" value="0"></Choice>
        <Choice validate="sm=wep" value="0"></Choice>
        <Choice validate="wps=on;enterprise=off" value="3"></Choice>
        <Choice value="1"></Choice>
      </Field>
      <Field name="wireless_auth" type="WEPMODE" validate="sm=wep" property="ChoiceInt" match="name=&quot;config.wireless.auth&quot; value=&quot;([\d])&quot;">
        <Choice result="2" value="1">
          <!--Shared-->
        </Choice>
        <Choice result="1" value="2">
          <!--"Both" in the dropdown-->
        </Choice>
      </Field>
      <!--Check WEP keylength to make sure we are using the correct matcher.-->
      <Field name="wireless_keylen" type="NOOP" validate="sm=wep" property="ChoiceInt" match="name=&quot;config.wireless.keylen&quot; value=&quot;([\d])&quot;">
        <Choice result="1" set="keylen=128"></Choice>
        <Choice value="0" set="keylen=64"></Choice>
      </Field>
      <!--Router only supports Hex keys.-->
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <!--0=Previous Keystrength behavior. 1=set 64bit. 2=set 128bit.-->
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceValidateInt">
        <Choice validate="keylen=64" value="1"></Choice>
        <Choice validate="keylen=128" value="2"></Choice>
      </Field>
      <Field name="64bitKEY1" type="WEPKEY1" validate="sm=wep;keylen=64" match="id=&quot;wep_key0&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY2" type="WEPKEY2" validate="sm=wep;keylen=64" match="id=&quot;wep_key1&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY3" type="WEPKEY3" validate="sm=wep;keylen=64" match="id=&quot;wep_key2&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY4" type="WEPKEY4" validate="sm=wep;keylen=64" match="id=&quot;wep_key3&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="128bitKEY1" type="WEPKEY1" validate="sm=wep;keylen=128" match="id=&quot;wep_key0&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY2" type="WEPKEY2" validate="sm=wep;keylen=128" match="id=&quot;wep_key1&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY3" type="WEPKEY3" validate="sm=wep;keylen=128" match="id=&quot;wep_key2&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY4" type="WEPKEY4" validate="sm=wep;keylen=128" match="id=&quot;wep_key3&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="CipherType" type="WPATYPE" validate="sm=wpapsk" property="ChoiceInt" match="name=&quot;config.wireless.wpa_cipher&quot; value=&quot;([\d])&quot;">
        <Choice result="1" value="0">
          <!--TKIP-->
        </Choice>
        <Choice result="2" value="1">
          <!--AES-->
        </Choice>
        <Choice result="3" value="1">
          <!--AES and TKIP-->
        </Choice>
      </Field>
      <Field name="PreSharedKey" type="WPAPASS" validate="sm=wpapsk" match="name=&quot;config.wireless.wpa_psk&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;"></Field>
    </WifiDeviceConfig>
    <!--D-Link DSL-2640B GE_DSL-2640B_3-06-04-1G00.A2pB021c.d19b 2.6.2009-->
    <WifiDeviceConfig title="D-Link DSL-2640B" realm="ADSL Router" user="admin" password="admin" page="/wlsecrefresh.wl?wlSsidIdx=0" server="micro_httpd">
      <!--Using SsidIdx 0 guarantees the non-guest SSID's settings are displayed.-->
      <Field name="routerPresentCheck" type="FOUND" required="FALSE" match="&lt;A HREF=&quot;http://www.(acme).com/software/micro_httpd/&quot;&gt;" skiplogin="false" page="/"></Field>
      <Field name="Postloginfind" type="FOUND" match="(DSL-2640B)" set="modelname=DSL-2640B" page="/info.html"></Field>
      <Field name="ModelCheck" type="NOOP" match="(DSL-2640B)" page="/info.html" set="modelname=DSL2640B" />
      <Field name="SSID" type="SSID" match="var ssid = '(.+)';" entity="\\(.)" page="/wlcfg.html" />
      <Field name="SECURITY" type="SECURITY" property="ChoiceInt" match="var mode = '([\S]*)'">
        <Choice result="open" value="2" set="sm=wep;wepmode=open" />
        <Choice result="shared" value="2" set="sm=wep;wepmode=shared" />
        <Choice result="PSK" value="3" set="sm=wpa" />
        <Choice result="PSK2" value="3" set="sm=wpa" />
        <Choice result="psk2mix" value="3" set="sm=wpa"></Choice>
        <Choice value="0" set="sm=unsupported"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="var bit = '([\d])';" page="/wlsecurity.html">
        <Choice result="1" value="1" />
        <Choice result="0" value="2" />
      </Field>
      <!--Uses the length of the key itself to determine type. Can only support one type.-->
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field name="WEPEncrypDropdown" type="SECURITY" property="ChoiceInt" validate="sm=wep" match="var wep = '([\w]*)'">
        <Choice result="enabled" value="2" />
        <Choice result="disabled" value="1" set="sm=disabled" />
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice validate="wepmode=open" value="0" />
        <Choice validate="wepmode=shared" value="1" />
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="var keys = new Array\( &quot;([\S]*)&quot;" />
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="var keys = new Array\( &quot;[\S]*&quot;, &quot;([\S]*)&quot;," />
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="&quot;([\S]*)&quot;, &quot;[\S]*&quot; \);" />
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="&quot;[\S]*&quot;, &quot;([\S]*)&quot; \);" />
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" entity="\\(.)" match="var wpaPskKey = '(.+)';"></Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceInt" match="var wpa = '([\S]*)'">
        <Choice result="aes" value="1" />
        <Choice result="tkip" value="0" />
        <Choice result="tkip+aes" value="1" />
        <Choice result="tkip aes" value="1" />
      </Field>
      <!-- router does not support WPSMODE - set default to No WPS -->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!--D-Link DWL-G700AP H/W: B3 F/W: 2.20 2.6.2009 -->
    <WifiDeviceConfig title="D-Link DWL-G700AP" server="CAMEO-httpd" realm="DWL-G700AP" user="admin" page="/h_wireless.shtml">
      <!--Default is blank password.-->
      <Field name="routerPresentCheck" required="false" type="FOUND" match="(cc9999)" page="/" skipLogin="true"></Field>
      <Field name="ModelCheck" type="NOOP" match="&lt;TITLE&gt;(DWL-G700AP)&lt;/TITLE&gt;" set="modelname=DWLG700AP" />
      <Field name="Postloginfind" type="FOUND" match="&lt;TITLE&gt;(DWL-G700AP)&lt;/TITLE&gt;">
        <!--Check the model by searching the page for WRT150N-->
      </Field>
      <Field name="SSID" type="SSID" match="value=&quot;(.*)&quot;[^&gt;]*name=&quot;ssid0&quot;&gt;"></Field>
      <Field name="AuthenticationRadios" type="SECURITY" property="ChoiceInt" match="&lt;INPUT onclick=show_wpa[\(][\)][\s]*type=radio value=&quot;([\S]*)&quot;[\s]*checked[\s]*name=authType&gt;">
        <Choice result="open" value="2" set="sm=wep;wepis=open" />
        <Choice result="shared" value="2" set="sm=wep;wepis=shared" />
        <Choice result="wpa-psk" value="3" set="sm=wpa;wpa=wpa1" />
        <Choice result="wpa2-psk" value="3" set="sm=wpa;wpa=wpa2" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceInt" match="function\supdateFormat\(form, wlan_idx\)[^k]*format\.options\[(\d)\]\.selected" page="/h_wireless.shtml">
        <Choice value="0" result="1"></Choice>
        <Choice value="1" result="0"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="WEP\sEncryption[^8]*value=(\d)\sselected" page="/h_wireless.shtml">
        <Choice value="1" result="1"></Choice>
        <Choice value="2" result="2"></Choice>
      </Field>
      <Field name="WEPRadio" type="SECURITY" validate="sm=wep" property="ChoiceInt" match="&lt;INPUT type=radio[\s]*checked[\s]*value=&quot;([\w]*)&quot;[\s]*name=&quot;wepEnabled0&quot;">
        <Choice result="OFF" value="1" set="sm=disabled" />
        <Choice result="ON" value="2" set="sm=wep" />
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice validate="wepis=open" value="0" />
        <Choice validate="wepis=shared" value="1" />
      </Field>
      <!--All WEP keys are obscured with asterisks(*)-->
      <!--<Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" property="ChoiceValidate"><Choice value="" /></Field>-->
      <!--<Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" property="ChoiceValidate"><Choice value="" /></Field>-->
      <!--<Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" property="ChoiceValidate"><Choice value="" /></Field>-->
      <!--<Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" property="ChoiceValidate"><Choice value="" /></Field>-->
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" property="ChoiceValidate">
        <Choice value="" />
      </Field>
      <!--All WPA keys are obscured with asterisks(*)-->
      <Field name="WPATYPE" type="WPATYPE" property="ChoiceValidateInt" validate="sm=wpa">
        <Choice value="0" validate="wpa=wpa1" />
        <Choice value="1" validate="wpa=wpa2" />
      </Field>
      <!-- router does not support WPSMODE - set default of No WPS -->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!--D-Link DI-724GU HW: A3 FW: 1.00 2.6.2009-->
    <WifiDeviceConfig title="D-Link DI-724GU" server="Ubicom/1.1" user="admin" password="" page="/h_wireless_11g.html" login="/post_login.cgi?data=%loginHash%">
      <Field type="FOUND" name="routerPresentCheck" match="(DI-724GU)" skiplogin="true" page="/" />
      <Field name="logindata" type="SET" property="Input" match="data=&quot;(.+)&quot;" skiplogin="true" convert="FromBase64" fillbyte="46" page="/pre_login.js" />
      <Field name="shex" type="SET" property="ChoiceValidate" skiplogin="true" convert="ToHex" maxlength="8" page="/pre_login.js">
        <Choice value="%logindata%" />
      </Field>
      <Field name="hash" type="SET" property="ChoiceValidate" skiplogin="true" hashresult="true" fillsize="64" fillbyte="48" page="/pre_login.js">
        <Choice value="%shex%%password%" />
      </Field>
      <Field name="saltedHash" type="SET" property="ChoiceValidate" skiplogin="true" convert="FromHex" fillsize="20" fillbyte="0" page="/pre_login.js">
        <Choice value="%shex%%hash%" />
      </Field>
      <Field name="loginHash" type="SET" property="ChoiceValidate" skiplogin="true" convert="ToBase64" fillbyte="46" page="/pre_login.js">
        <Choice value="%saltedHash%" />
      </Field>
      <Field type="FOUND" name="PostLoginFind" match="&lt;title&gt;(DI-724GU)&lt;/title&gt;" page="/st_devic.html" />
      <Field name="ssiddata" type="SET" match="data=&quot;(.+)&quot;" convert="ByteFromArray" page="/wireless_basic" />
      <Field type="SET" name="ssidFromData" property="ChoiceValidate" startbyte="0" maxlength="32">
        <Choice value="%ssiddata%" />
      </Field>
      <Field name="ssid" type="SSID" property="ChoiceValidate">
        <Choice value="%ssidFromData%" />
      </Field>
      <Field name="wepbyte" type="SET" property="ChoiceValidate" convert="IntegerFromArray" startbyte="96" maxlength="1">
        <Choice value="%ssiddata%" />
      </Field>
      <Field name="enterprisebyte" type="SET" property="ChoiceValidate" convert="IntegerFromArray" startbyte="246" maxlength="1">
        <Choice value="%ssiddata%" />
      </Field>
      <Field name="wpabyte" type="SET" property="ChoiceValidate" convert="IntegerFromArray" startbyte="247" maxlength="1">
        <Choice value="%ssiddata%" />
      </Field>
      <!--No WPSMODE support for this router.-->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <Field name="Security" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="wpabyte=0;wepbyte=0" value="1" set="sm=none" />
        <Choice validate="wepbyte=1" value="2" set="sm=wep" />
        <Choice validate="wpabyte=1;enterprisebyte=0" value="3" set="sm=wpapsk" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="wepmodebyte" type="SET" property="ChoiceValidate" convert="IntegerFromArray" validate="sm=wep" startbyte="34" maxlength="1">
        <Choice value="%ssiddata%" />
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice validate="wepmodebyte=2" value="1">
          <!--Shared-->
        </Choice>
        <Choice validate="wepmodebyte=1" value="0">
          <!--OPEN-->
        </Choice>
      </Field>
      <!--Supports only hex keys.-->
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <Field name="strengthbyte" type="SET" property="ChoiceValidate" convert="IntegerFromArray" validate="sm=wep" startbyte="37" maxlength="1">
        <Choice value="%ssiddata%" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceValidateInt">
        <Choice validate="strengthbyte=0" value="1"></Choice>
        <Choice validate="strengthbyte=1" value="2"></Choice>
      </Field>
      <Field name="firstwep" type="SET" property="ChoiceValidate" validate="sm=wep" startbyte="44" maxlength="13">
        <Choice value="%ssiddata%" />
      </Field>
      <Field name="secondwep" type="SET" property="ChoiceValidate" validate="sm=wep" startbyte="57" maxlength="13">
        <Choice value="%ssiddata%" />
      </Field>
      <Field name="thirdwep" type="SET" property="ChoiceValidate" validate="sm=wep" startbyte="70" maxlength="13">
        <Choice value="%ssiddata%" />
      </Field>
      <Field name="fourthwep" type="SET" property="ChoiceValidate" validate="sm=wep" startbyte="83" maxlength="13">
        <Choice value="%ssiddata%" />
      </Field>
      <Field name="64hexkey1" type="SET" property="ChoiceValidate" validate="sm=wep" startbyte="0" maxlength="10" convert="ToHex">
        <Choice value="%firstwep%" />
      </Field>
      <Field name="64hexkey2" type="SET" property="ChoiceValidate" validate="sm=wep" startbyte="0" maxlength="10" convert="ToHex">
        <Choice value="%secondwep%" />
      </Field>
      <Field name="64hexkey3" type="SET" property="ChoiceValidate" validate="sm=wep" startbyte="0" maxlength="10" convert="ToHex">
        <Choice value="%thirdwep%" />
      </Field>
      <Field name="64hexkey4" type="SET" property="ChoiceValidate" validate="sm=wep" startbyte="0" maxlength="10" convert="ToHex">
        <Choice value="%fourthwep%" />
      </Field>
      <Field name="128hexkey1" type="SET" property="ChoiceValidate" validate="sm=wep" startbyte="0" maxlength="26" convert="ToHex">
        <Choice value="%firstwep%" />
      </Field>
      <Field name="128hexkey2" type="SET" property="ChoiceValidate" validate="sm=wep" startbyte="0" maxlength="26" convert="ToHex">
        <Choice value="%secondwep%" />
      </Field>
      <Field name="128hexkey3" type="SET" property="ChoiceValidate" validate="sm=wep" startbyte="0" maxlength="26" convert="ToHex">
        <Choice value="%thirdwep%" />
      </Field>
      <Field name="128hexkey4" type="SET" property="ChoiceValidate" validate="sm=wep" startbyte="0" maxlength="26" convert="ToHex">
        <Choice value="%fourthwep%" />
      </Field>
      <Field name="64bitKEY1" type="WEPKEY1" validate="sm=wep;strengthbyte=0" property="ChoiceValidate">
        <Choice value="%64hexkey1%" />
      </Field>
      <Field name="64bitKEY2" type="WEPKEY2" validate="sm=wep;strengthbyte=0" property="ChoiceValidate">
        <Choice value="%64hexkey2%" />
      </Field>
      <Field name="64bitKEY3" type="WEPKEY3" validate="sm=wep;strengthbyte=0" property="ChoiceValidate">
        <Choice value="%64hexkey3%" />
      </Field>
      <Field name="64bitKEY4" type="WEPKEY4" validate="sm=wep;strengthbyte=0" property="ChoiceValidate">
        <Choice value="%64hexkey4%" />
      </Field>
      <Field name="128bitKEY1" type="WEPKEY1" validate="sm=wep;strengthbyte=1" property="ChoiceValidate">
        <Choice value="%128hexkey1%" />
      </Field>
      <Field name="128bitKEY2" type="WEPKEY2" validate="sm=wep;strengthbyte=1" property="ChoiceValidate">
        <Choice value="%128hexkey2%" />
      </Field>
      <Field name="128bitKEY3" type="WEPKEY3" validate="sm=wep;strengthbyte=1" property="ChoiceValidate">
        <Choice value="%128hexkey3%" />
      </Field>
      <Field name="128bitKEY4" type="WEPKEY4" validate="sm=wep;strengthbyte=1" property="ChoiceValidate">
        <Choice value="%128hexkey4%" />
      </Field>
      <Field name="wpatypebyte" type="SET" property="ChoiceValidate" validate="sm=wpapsk" convert="IntegerFromArray" startbyte="97" maxlength="1">
        <Choice value="%ssiddata%" />
      </Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpapsk" property="ChoiceValidateInt">
        <Choice validate="wpatypebyte=1" value="0">
          <!--TKIP-->
        </Choice>
        <Choice value="1"></Choice>
      </Field>
      <Field name="wpapasskey" type="SET" property="ChoiceValidate" validate="sm=wpapsk" startbyte="249" maxlength="64">
        <Choice value="%ssiddata%" />
      </Field>
      <Field name="PreSharedKey" type="WPAPASS" validate="sm=wpapsk" property="ChoiceValidate">
        <Choice value="%wpapasskey%"></Choice>
      </Field>
    </WifiDeviceConfig>
    <!--D-Link DWL-G730AP H/W B1 F/W v2.00: Note this device has a hardware switch for Router/AP/Client modes. Can only support AP mode.-->
    <!--2.9.2009-->
    <WifiDeviceConfig title="D-Link DWL-G730AP" realm="DWL-G730AP" server="Embedded HTTP Server v2.00" user="admin" password="" page="/ap_h_wireless.html">
      <Field type="FOUND" name="routerPresentCheck" required="false" match="(401 Unauthorized)" skiplogin="false" page="/" />
      <Field name="modelname" type="SET" match="&lt;TITLE&gt;(DWL-G730)&lt;/TITLE&gt;" page="/ap_h_wireless.html" />
      <Field name="Postloginfind" type="FOUND" match="&lt;TITLE&gt;(DWL-G730.*)&lt;/TITLE&gt;" page="/ap_h_wizard.html" />
      <Field name="SSID" type="SSID" match="name=&quot;wirelessESSID&quot;[\s]*value=&quot;([^&quot;]*)&quot;" />
      <Field name="SECURITY" type="SECURITY" property="ChoiceInt" match="name=&quot;auth&quot;[^&gt;]*&gt;[^:]*&lt;option[\s]*value=&quot;([\d])&quot;[\s]*selected&gt;">
        <Choice result="0" value="1" set="sm=disable" />
        <Choice result="1" value="2" set="sm=wep" />
        <Choice result="3" value="3" set="sm=wpa" />
        <Choice result="5" value="3" set="sm=wpa" />
        <Choice value="0" set="sm=unsupported"></Choice>
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wep" match="name=&quot;WepType&quot;[^&gt;]*value=&quot;([\d])&quot;[\s]*checked&gt;" property="ChoiceInt">
        <Choice value="0" result="0" />
        <Choice result="1" value="1" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="&lt;option value=&quot;[1|2]*&quot; selected&gt;([64|128]*)Bit&lt;/option&gt;">
        <Choice value="1" result="64" />
        <Choice result="128" value="2" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceInt" match="&lt;option value=&quot;[0|1]*&quot; selected&gt;([HEX|ASCII]*)&lt;/option&gt;">
        <Choice result="HEX" value="0" />
        <Choice result="ASCII" value="1" />
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="name=&quot;key1&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;" />
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="name=&quot;key2&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;" />
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="name=&quot;key3&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;" />
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="name=&quot;key4&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;" />
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" match="name=&quot;wpapsk1&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;"></Field>
      <!--There is NO indication of the cipher/encryption type for WPA keys.-->
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <!--AP does not support WPSMODE - set default to No WPS -->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!--D-Link DWL-2700AP HW: b1 fw: v3.10 2.11.2009-->
    <!--Only Access Point Mode will be supported.-->
    <WifiDeviceConfig title="D-Link DWL-2700AP" server="Allegro-Software-RomPager/4.06" user="admin" password="" page="/">
      <Field name="routerPresentCheck" required="false" type="FOUND" match="&lt;title&gt;(DWL-2700AP)&lt;/title&gt;" page="/html/LoginCancelMsg.htm" skipLogin="true"></Field>
      <Field type="SET" name="modelName" match="(DWL-2700AP)" skiplogin="true" page="/" />
      <Field type="SET" name="webcookie" match="document.cookie = '(.+)';" skiplogin="true" page="/" />
      <Field type="COOKIE" name="COOKIE" property="ChoiceValidate" skiplogin="true">
        <Choice value="%webcookie%" />
      </Field>
      <Field name="Postloginfind" type="FOUND" match="(&lt;title&gt;DWL-2700AP&lt;/title&gt;)" page="/html/index.htm">
        <!--Check the model by searching the page for WRT150N-->
      </Field>
      <Field type="SSID" name="SSID" match="NAME=&quot;Ssid&quot;[^&gt;]*VALUE=&quot;(.+)&quot;\sclass" entity="&amp;#([^&amp;]*)" page="/html/bWirelessSetting.htm?1,0,0" />
      <!--No WPS Support.-->
      <Field type="WPSMODE" name="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field type="SET" name="authtype" match="Security Level&lt;/td&gt;&lt;td&gt;([^&lt;]*)[\t][\t][\s][\s][\s]*/" property="Choice" page="/html/sDeviceInfo.htm">
        <Choice result="Open System" value="open" />
        <Choice result="Shared Key" value="shared" />
        <Choice result="Open System / Shared Key" value="both" />
        <Choice result="WPA-Personal" value="wpapsk" />
        <Choice result="WPA-Auto-Personal" value="wpaautopsk" />
        <Choice result="WPA2-Personal" value="wpa2psk" />
        <Choice value="enterprise" />
      </Field>
      <Field type="SET" name="encryption" match="Encryption[\s]([\S]*)" page="/html/sDeviceInfo.htm"></Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="authtype=open;encryption=Disabled" value="1" set="sm=disabled" />
        <Choice validate="authtype=open;encryption=Enabled" value="2" set="sm=wep;weptype=open" />
        <Choice validate="authtype=both" value="2" set="sm=wep;weptype=auto" />
        <Choice validate="authtype=shared" value="2" set="sm=wep;weptype=shared" />
        <Choice validate="authtype=wpapsk" value="3" set="sm=wpa" />
        <Choice validate="authtype=wpaautopsk" value="3" set="sm=wpa" />
        <Choice validate="authtype=wpa2psk" value="3" set="sm=wpa" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceInt" match="NAME=&quot;Wep_Key_Type&quot;[^/]*VALUE=(\d)\sSELECTED" page="/html/bWirelessSetting.htm">
        <Choice value="0" result="0"></Choice>
        <Choice value="1" result="1"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="NAME=&quot;KS&quot;[^/]*VALUE=(\d)\sSELECTED" page="/html/bWirelessSetting.htm">
        <Choice value="1" result="0"></Choice>
        <Choice value="2" result="1"></Choice>
      </Field>
      <Field name="WEPMODE" type="WEPMODE" property="ChoiceValidateInt" validate="sm=wep">
        <Choice validate="weptype=open" value="0" />
        <Choice validate="weptype=shared" value="1" />
        <Choice validate="weptype=auto" value="2" />
      </Field>
      <!--Router will only use 1 key at a time. to ensure we retreive the correct one and at the correct length, we will retrieve only the relevant key.-->
      <Field type="SET" name="validkey" match="NAME=&quot;ValidIndex&quot;[^&gt;]*&gt;[^/]*&lt;OPTION SELECTED&gt;([\w]*)\n" property="Choice" page="/html/bWirelessSetting.htm?1,0,0">
        <Choice result="First" value="1" />
        <Choice result="Second" value="2" />
        <Choice result="Third" value="3" />
        <Choice result="Fourth" value="4" />
        <Choice value="1" />
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="NAME=&quot;Key%validkey%&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;" page="/html/bWirelessSetting.htm?1,0,0" entity="&amp;#([^&amp;]*)"></Field>
      <!--<Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="NAME=&quot;Key2&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;" page="/html/bWirelessSetting.htm?1,0,0"></Field>-->
      <!--<Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="NAME=&quot;Key3&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;" page="/html/bWirelessSetting.htm?1,0,0"></Field>-->
      <!--<Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="NAME=&quot;Key4&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;" page="/html/bWirelessSetting.htm?1,0,0"></Field>-->
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceInt" match="NAME=&quot;Cipher&quot;[^&gt;]*&gt;[^&quot;]*&lt;OPTION SELECTED&gt;([\w]*)" page="/html/bWirelessSetting.htm?1,0,8">
        <Choice result="TKIP" value="0" />
        <Choice value="1" />
      </Field>
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" entity="&amp;#([^&amp;]*)" match="NAME=&quot;passphrase&quot;[^&gt;]*VALUE=&quot;([^&quot;]*)&quot;" page="/html/bWirelessSetting.htm?1,0,8"></Field>
    </WifiDeviceConfig>
    <!--D-Link DWL-3200AP v2.40 2.11.2009-->
    <!--Only Access Point Mode will be supported.-->
    <WifiDeviceConfig title="D-Link DWL-3200AP" server="Allegro-Software-RomPager/4.06" realm="" user="admin" password="" page="/">
      <Field name="routerPresentCheck" type="FOUND" match="(&lt;TITLE&gt;DWL-3200AP&lt;/TITLE&gt;)" required="FALSE" skiplogin="true" page="/" />
      <Field name="Postloginfind" type="FOUND" match="(&lt;TITLE&gt;DWL-3200AP&lt;/TITLE&gt;)" page="/" />
      <Field type="SET" name="modelName" match="(DWL-3200AP)" skiplogin="true" page="/" />
      <Field type="SET" name="webcookie" match="document.cookie = '(.+)';" skiplogin="true" page="/" />
      <Field type="COOKIE" name="COOKIE" property="ChoiceValidate" skiplogin="true">
        <Choice value="%webcookie%" />
      </Field>
      <Field type="SSID" name="SSID" match="&lt;INPUT[^&gt;]*NAME=&quot;Ssid&quot;[^&gt;]*VALUE=&quot;(.+)&quot; class=" entity="&amp;#([^&amp;]*)" page="/html/bWirelessSetting.htm?1,0,0" />
      <!--No WPS Support.-->
      <Field type="WPSMODE" name="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field type="SET" name="authtype" match="Security Level&lt;/td&gt;&lt;td&gt;([^&lt;]*)[\t][\t][\s][\s][\s]*/" property="Choice" page="/html/sDeviceInfo.htm">
        <Choice result="Open System" value="open" />
        <Choice result="Shared Key" value="shared" />
        <Choice result="Open System / Shared Key" value="both" />
        <Choice result="WPA-Personal" value="wpapsk" />
        <Choice result="WPA-Auto-Personal" value="wpaautopsk" />
        <Choice result="WPA2-Personal" value="wpa2psk" />
        <Choice value="enterprise" />
      </Field>
      <Field type="SET" name="encryption" match="Encryption[\s]([\S]*)" page="/html/sDeviceInfo.htm"></Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="authtype=open;encryption=Disabled" value="1" set="sm=disabled" />
        <Choice validate="authtype=open;encryption=Enabled" value="2" set="sm=wep;weptype=open" />
        <Choice validate="authtype=both" value="2" set="sm=wep;weptype=auto" />
        <Choice validate="authtype=shared" value="2" set="sm=wep;weptype=shared" />
        <Choice validate="authtype=wpapsk" value="3" set="sm=wpa" />
        <Choice validate="authtype=wpaautopsk" value="3" set="sm=wpa" />
        <Choice validate="authtype=wpa2psk" value="3" set="sm=wpa" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" property="ChoiceInt" validate="sm=wep" match="&lt;OPTION VALUE=[0|1] SELECTED&gt;(64|128) Bits" page="/html/bWirelessSetting.htm?1,0,0">
        <Choice result="64" value="1" />
        <Choice result="128" value="2" />
      </Field>
      <Field name="WEPKEYTYPE&#xD;&#xA;" type="WEPKEYTYPE" property="ChoiceInt" validate="sm=wep" match="&lt;OPTION VALUE=[0|1] SELECTED&gt;(HEX|ASCII)" page="/html/bWirelessSetting.htm?1,0,0">
        <Choice result="HEX" value="0" />
        <Choice result="ASCII" value="1" />
      </Field>
      <Field name="WEPMODE" type="WEPMODE" property="ChoiceValidateInt" validate="sm=wep">
        <Choice validate="weptype=open" value="0" />
        <Choice validate="weptype=shared" value="1" />
        <Choice validate="weptype=auto" value="2" />
      </Field>
      <!--All WEP keys are hidden by asterisks.-->
      <!--<Field name="WEPKEY1" type="WEPKEY1" property="ChoiceValidateInt" validate="sm=wep"><Choice value="" /></Field>-->
      <!--<Field name="WEPKEY2" type="WEPKEY2" property="ChoiceValidateInt" validate="sm=wep"><Choice value="" /></Field>-->
      <!--<Field name="WEPKEY3" type="WEPKEY3" property="ChoiceValidateInt" validate="sm=wep"><Choice value="" /></Field>-->
      <!--<Field name="WEPKEY4" type="WEPKEY4" property="ChoiceValidateInt" validate="sm=wep"><Choice value="" /></Field>-->
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceInt" match="NAME=&quot;Cipher&quot;[^&gt;]*&gt;[^&quot;]*&lt;OPTION SELECTED&gt;([\w]*)" page="/html/bWirelessSetting.htm?1,0,8">
        <Choice result="TKIP" value="0" />
        <Choice value="1" />
      </Field>
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" entity="&amp;#([^&amp;]*)" match="NAME=&quot;passphrase&quot;[^&gt;]*VALUE=&quot;([^&quot;]*)&quot;" page="/html/bWirelessSetting.htm?1,0,8"></Field>
    </WifiDeviceConfig>
    <!--D-Link DWL-7700AP HW: C1 FW: v3.11 2.11.2009-->
    <!--Only Access Point Mode will be supported. Retrieve only 802.11G settings for this Dual-Band router.-->
    <WifiDeviceConfig title="D-Link DWL-7700AP" user="admin" password="" page="/" server="Allegro-Software-RomPager/4.06">
      <!--realm="DWL-7700AP"-->
      <!--Realm header causes prelogin chk to fail.-->
      <Field name="routerPresentCheck" required="false" type="FOUND" match="&lt;title&gt;(DWL-7700AP)&lt;/title&gt;" page="/html/LoginCancelMsg.htm" skipLogin="true"></Field>
      <Field type="SET" name="modelName" match="(DWL-7700AP)" skiplogin="true" page="/" />
      <Field type="SET" name="webcookie" match="document.cookie = '(.+)';" skiplogin="true" page="/" />
      <Field type="COOKIE" name="COOKIE" property="ChoiceValidate" skiplogin="true">
        <Choice value="%webcookie%" />
      </Field>
      <Field name="Postloginfind" type="FOUND" match="(&lt;title&gt;DWL-7700AP&lt;/title&gt;)" page="/html/index.htm">
        <!--Check the model by searching the page for WRT150N-->
      </Field>
      <Field type="SSID" name="SSID" match="NAME=&quot;Ssid&quot;[^&gt;]*VALUE=&quot;(.+)&quot;\sclass" entity="&amp;#([^&amp;]*)" page="/html/bWirelessSetting.htm?1,0,0" />
      <!--No WPS Support.-->
      <Field type="WPSMODE" name="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field type="SET" name="authtype" match="var authstatus=([\d]);" property="Choice" page="/html/bWirelessSetting.htm?1,0,0">
        <Choice result="0" value="open" />
        <Choice result="1" value="shared" />
        <Choice result="2" value="both" />
        <Choice result="4" value="wpapsk" />
        <Choice result="6" value="wpa2psk" />
        <Choice result="8" value="wpaautopsk" />
        <Choice value="enterprise" />
      </Field>
      <Field type="SET" name="encryption" match="NAME=&quot;WepType&quot; VALUE=&quot;([\d])&quot; CHECKED" page="/html/bWirelessSetting.htm?1,0,0"></Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="authtype=open;encryption=0" value="1" set="sm=disabled" />
        <Choice validate="authtype=open;encryption=1" value="2" set="sm=wep;weptype=open" />
        <Choice validate="authtype=both" value="2" set="sm=wep;weptype=auto" />
        <Choice validate="authtype=shared" value="2" set="sm=wep;weptype=shared" />
        <Choice validate="authtype=wpapsk" value="3" set="sm=wpa" />
        <Choice validate="authtype=wpaautopsk" value="3" set="sm=wpa" />
        <Choice validate="authtype=wpa2psk" value="3" set="sm=wpa" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceInt" match="NAME=&quot;Wep_Key_Type&quot;[^/]*VALUE=(\d)\sSELECTED" page="/html/bWirelessSetting.htm">
        <Choice value="0" result="0"></Choice>
        <Choice value="1" result="1"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="NAME=&quot;KS&quot;[^/]*VALUE=(\d)\sSELECTED" page="/html/bWirelessSetting.htm">
        <Choice value="1" result="0"></Choice>
        <Choice value="2" result="1"></Choice>
      </Field>
      <Field name="WEPMODE" type="WEPMODE" property="ChoiceValidateInt" validate="sm=wep">
        <Choice validate="weptype=open" value="0" />
        <Choice validate="weptype=shared" value="1" />
        <Choice validate="weptype=auto" value="2" />
      </Field>
      <Field type="SET" name="validkey" match="NAME=&quot;ValidIndex&quot;[^&gt;]*&gt;[^/]*&lt;OPTION SELECTED&gt;([\w]*)\n" property="Choice" page="/html/bWirelessSetting.htm?1,0,0">
        <Choice result="First" value="1" />
        <Choice result="Second" value="2" />
        <Choice result="Third" value="3" />
        <Choice result="Fourth" value="4" />
        <Choice value="1" />
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" entity="&amp;#([^&amp;]*)" validate="sm=wep" match="NAME=&quot;Key%validkey%&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;" page="/html/bWirelessSetting.htm?1,0,0"></Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceInt" match="NAME=&quot;Cipher&quot;[^&gt;]*&gt;[^&quot;]*&lt;OPTION SELECTED&gt;([\w]*)" page="/html/bWirelessSetting.htm?1,0,8">
        <Choice result="TKIP" value="0" />
        <Choice value="1" />
      </Field>
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" entity="&amp;#([^&amp;]*)" match="NAME=&quot;passphrase&quot;[^&gt;]*VALUE=&quot;([^&quot;]*)&quot;" page="/html/bWirelessSetting.htm?1,0,8"></Field>
    </WifiDeviceConfig>
    <!--D-Link DWL-8200AP v2.03 2.11.2009-->
    <!--Only Access Point Mode will be supported. Retrieve only 802.11G settings for this Dual-Band router.-->
    <WifiDeviceConfig title="D-Link DWL-8200AP" server="Allegro-Software-RomPager/4.06" user="admin" realm="" password="" page="/html/bWirelessSetting.htm?1,0,0">
      <!--Realm will change depending on the page request.-->
      <Field name="routerPresentCheck" type="FOUND" required="FALSE" match="(&lt;title&gt;DWL-8200AP&lt;/title&gt;)" skiplogin="false" page="/" />
      <Field name="Postloginfind" type="FOUND" match="(&lt;title&gt;DWL-8200AP&lt;/title&gt;)" page="/" />
      <Field type="SET" name="modelName" match="(DWL-8200AP)" skiplogin="true" page="/" />
      <Field type="SET" name="webcookie" match="document.cookie = '(.+)';" skiplogin="true" page="/" />
      <Field type="COOKIE" name="COOKIE" property="ChoiceValidate" skiplogin="true" page="/">
        <Choice value="%webcookie%" />
      </Field>
      <Field type="SSID" name="SSID" match="&lt;INPUT[^&gt;]*NAME=&quot;Ssid&quot;[^&gt;]*VALUE=&quot;(.+)&quot; class=" entity="&amp;#([^&amp;]*)" page="/html/bWirelessSetting.htm?1,0,0" />
      <!--No WPS Support.-->
      <Field type="WPSMODE" name="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field type="SET" name="authtype" match="802.11b/g[^s]*[\S]*[\s]*&lt;/td&gt;[^c]*Channel[^s]*Super Mode[\S]*abled[\s]*&lt;/td&gt;[^D]*&lt;td&gt;Data Rate[\S]*[^s]*Security Level&lt;/td&gt;&lt;td&gt;([^&lt;]*)[\t][\t][\s][\s][\s]*/" property="Choice" page="/html/sDeviceInfo.htm">
        <Choice result="Open System" value="open" />
        <Choice result="Shared Key" value="shared" />
        <Choice result="Open System / Shared Key" value="both" />
        <Choice result="WPA-Personal" value="wpapsk" />
        <Choice result="WPA-Auto-Personal" value="wpaautopsk" />
        <Choice result="WPA-Auto-Personal " value="wpaautopsk" />
        <Choice result="WPA2-Personal" value="wpa2psk" />
        <Choice value="enterprise" />
      </Field>
      <Field type="SET" name="encryption" match="Encryption[\s]([\S]*)[\s]*&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;script language=&quot;Javascript&quot;&gt;" page="/html/sDeviceInfo.htm"></Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="authtype=open;encryption=Disabled" value="1" set="sm=disabled" />
        <Choice validate="authtype=open;encryption=Enabled" value="2" set="sm=wep;weptype=open" />
        <Choice validate="authtype=both" value="2" set="sm=wep;weptype=auto" />
        <Choice validate="authtype=shared" value="2" set="sm=wep;weptype=shared" />
        <Choice validate="authtype=wpapsk" value="3" set="sm=wpa" />
        <Choice validate="authtype=wpaautopsk" value="3" set="sm=wpa" />
        <Choice validate="authtype=wpa2psk" value="3" set="sm=wpa" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" property="ChoiceInt" validate="sm=wep" match="&lt;OPTION VALUE=[0|1] SELECTED&gt;(64|128) Bits">
        <Choice result="64" value="1" />
        <Choice result="128" value="2" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" property="ChoiceInt" validate="sm=wep" match="&lt;OPTION VALUE=[0|1] SELECTED&gt;(HEX|ASCII)">
        <Choice result="HEX" value="0" />
        <Choice result="ASCII" value="1" />
      </Field>
      <Field name="WEPMODE" type="WEPMODE" property="ChoiceValidateInt" validate="sm=wep">
        <Choice validate="weptype=open" value="0" />
        <Choice validate="weptype=shared" value="1" />
        <Choice validate="weptype=auto" value="2" />
      </Field>
      <!--All WEP keys are hidden by asterisks.-->
      <!--<Field name="WEPKEY1" type="WEPKEY1" property="ChoiceValidateInt" validate="sm=wep"><Choice value="" /></Field>-->
      <!--<Field name="WEPKEY2" type="WEPKEY2" property="ChoiceValidateInt" validate="sm=wep"><Choice value="" /></Field>-->
      <!--<Field name="WEPKEY3" type="WEPKEY3" property="ChoiceValidateInt" validate="sm=wep"><Choice value="" /></Field>-->
      <!--<Field name="WEPKEY4" type="WEPKEY4" property="ChoiceValidateInt" validate="sm=wep"><Choice value="" /></Field>-->
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceInt" match="NAME=&quot;Cipher&quot;[^&gt;]*&gt;[^&quot;]*&lt;OPTION SELECTED&gt;([\w]*)" page="/html/bWirelessSetting.htm?1,0,8">
        <Choice result="TKIP" value="0" />
        <Choice value="1" />
      </Field>
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" entity="&amp;#([^&amp;]*)" match="NAME=&quot;passphrase&quot;[^&gt;]*VALUE=&quot;([^&quot;]*)&quot;" page="/html/bWirelessSetting.htm?1,0,8"></Field>
    </WifiDeviceConfig>
    <!--D-Link DWL-7100AP H/W B1 F/W v2.10 2.24.2009-->
    <WifiDeviceConfig title="D-Link DWL-7100AP" server="Allegro-Software-RomPager/4.06" realm="DWL-7100AP" user="admin" password="" page="/html/Wireless.html?1">
      <!--The '?1' in the URL directs the webtester to the wireless G SSID.-->
      <Field name="routerPresentCheck" required="false" type="FOUND" match="(This\sobject\son\sthe\sRomPager\sserver\sis\sprotected\.)" page="/html/HomeWizard.html" skipLogin="true"></Field>
      <Field name="modelname" type="SET" match="&lt;title&gt;(DWL-7100AP)&lt;/title&gt;" />
      <Field name="Postloginfind" type="FOUND" match="(DWL-7100AP)">
        <!--Check the model by searching the page for WRT150N-->
      </Field>
      <Field name="SSID" type="SSID" match="&lt;INPUT[^&gt;]*NAME=&quot;Ssid&quot;[^&gt;]*VALUE=&quot;(.+)&quot;[^&gt;]*id=&quot;Ssid&quot;[^&gt;]*&gt;" entity="&amp;#([^&amp;]*)" />
      <Field name="authmenu" type="SET" property="Choice" match="var authstatus=([\d]);" page="/html/Wireless.html?1">
        <Choice result="0" value="open" />
        <Choice result="1" value="shared" />
        <Choice result="2" value="both" />
        <Choice result="3" value="eap" />
        <Choice result="4" value="psk" />
        <Choice value="nomatch" />
      </Field>
      <Field name="weptype" type="SET" validate="authmenu=open" match="NAME=&quot;WepType&quot;[\s]*VALUE=&quot;[\d]&quot;[\s]*CHECKED[\s]*id=&quot;([^&quot;]*)&quot;"></Field>
      <Field name="weptypeb" type="SET" validate="authmenu=both" match="NAME=&quot;WepType&quot;[\s]*VALUE=&quot;[\d]&quot;[\s]*CHECKED[\s]*id=&quot;([^&quot;]*)&quot;"></Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="weptype=DisableEncryption;authmenu=open" value="1" set="sm=disable" />
        <Choice validate="weptypeb=DisableEncryption;authmenu=both" value="1" set="sm=disable" />
        <Choice validate="weptype=EnableEncryption;authmenu=open" value="2" set="sm=wep" />
        <Choice validate="weptypeb=EnableEncryption;authmenu=both" value="2" set="sm=wep" />
        <Choice validate="authmenu=shared" value="2" set="sm=wep" />
        <Choice validate="authmenu=psk" value="3" set="sm=wpa" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceInt" match="NAME=&quot;Wep_Key_Type&quot;.*id=&quot;KeyType&quot;[^/]*VALUE=(\d)\sSELECTED&gt;" page="/html/Wireless.html">
        <Choice value="0" result="0"></Choice>
        <Choice value="1" result="1"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="NAME=&quot;KS&quot; SIZE=&quot;1&quot;\sid=&quot;KeySize&quot;[^/]*VALUE=(\d)\sSELECTED" page="/html/Wireless.html">
        <Choice value="1" result="0"></Choice>
        <Choice value="2" result="1"></Choice>
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice validate="authmenu=open" result="0" />
        <Choice validate="authmenu=shared" value="1" />
        <Choice validate="authmenu=both" value="2" />
      </Field>
      <Field name="validkey" type="SET" validate="sm=wep" match="&lt;OPTION SELECTED&gt;(First|Second|Third|Fourth)" page="/html/Wireless.html?1,0,1" property="Choice">
        <Choice result="First" value="Key1" />
        <Choice result="Second" value="Key2" />
        <Choice result="Third" value="Key3" />
        <Choice result="Fourth" value="Key4" />
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="NAME=&quot;%validkey%&quot;[^&gt;]*VALUE=&quot;([^&quot;]*)&quot;" page="/html/Wireless.html?1,0,1" entity="&amp;#([^&amp;]*)" />
      <!--<Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="NAME=&quot;Key2&quot;[^&gt;]*VALUE=&quot;([^&quot;]*)&quot;" page="/html/Wireless.html?1,0,1" />-->
      <!--<Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="NAME=&quot;Key3&quot;[^&gt;]*VALUE=&quot;([^&quot;]*)&quot;" page="/html/Wireless.html?1,0,1" />-->
      <!--<Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="NAME=&quot;Key4&quot;[^&gt;]*VALUE=&quot;([^&quot;]*)&quot;" page="/html/Wireless.html?1,0,1" />-->
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" entity="&amp;#([^&amp;]*)" match="NAME=&quot;passphrase&quot;[^&gt;]*VALUE=&quot;([^&quot;]*)&quot;" page="/html/Wireless.html?1,0,4"></Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceInt" match="NAME=&quot;Cipher&quot;[^&gt;]*&gt;[^&quot;]*&lt;OPTION SELECTED&gt;([\w]*)\n" page="/html/Wireless.html?1,0,4">
        <Choice result="TKIP" value="0" />
        <Choice value="1" />
      </Field>
      <!--AP does not support WPSMODE - set default to No WPS -->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!--D-Link DWL-2100AP 2.11 2.9.2009-->
    <!--Only Access Point Mode will be supported.-->
    <WifiDeviceConfig title="D-Link DWL-2100AP" server="Allegro-Software-RomPager/4.06" realm="" user="admin" password="" page="/">
      <Field name="routerPresentCheck" required="false" type="FOUND" match="(DWL-2100AP)" page="/" skipLogin="true"></Field>
      <Field type="SET" name="modelName" match="(DWL-2100AP)" skiplogin="true" page="/" />
      <Field name="Postloginfind" type="FOUND" match="(DWL-2100AP)"></Field>
      <Field type="SET" name="webcookie" match="document.cookie = '(.+)';" skiplogin="true" page="/" />
      <Field type="COOKIE" name="COOKIE" property="ChoiceValidate" skiplogin="true">
        <Choice value="%webcookie%" />
      </Field>
      <Field name="SSID" type="SSID" match="&lt;INPUT[^&gt;]*NAME=&quot;Ssid&quot;[^&gt;]*VALUE=&quot;(.+)&quot;[^&gt;]*id=&quot;Ssid&quot;[^&gt;]*&gt;" entity="&amp;#([^&amp;]*)" page="/html/Wireless.html?1" />
      <Field name="authmenu" type="SET" property="Choice" match="var authstatus=([\d]);" page="/html/Wireless.html?1">
        <Choice result="0" value="open" />
        <Choice result="1" value="shared" />
        <Choice result="2" value="both" />
        <Choice result="3" value="eap" />
        <Choice result="4" value="psk" />
        <Choice result="6" value="psk" />
        <Choice result="8" value="psk" />
        <Choice value="nomatch" />
      </Field>
      <Field name="weptype" type="SET" validate="authmenu=open" match="NAME=&quot;WepType&quot;[\s]*VALUE=&quot;[\d]&quot;[\s]*CHECKED[\s]*id=&quot;([^&quot;]*)&quot;" page="/html/Wireless.html?1,0,0"></Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="weptype=DisableEncryption;authmenu=open" value="1" set="sm=disable" />
        <Choice validate="weptype=EnableEncryption;authmenu=open" value="2" set="sm=wep" />
        <Choice validate="authmenu=shared" value="2" set="sm=wep" />
        <Choice validate="authmenu=both" value="2" set="sm=wep" />
        <Choice validate="authmenu=psk" value="3" set="sm=wpa" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceInt" match="NAME=&quot;Wep_Key_Type&quot;.*id=&quot;KeyType&quot;[^&amp;]*VALUE=(\d)\sSELECTED&gt;" page="/html/Wireless.html?1">
        <Choice value="0" result="0"></Choice>
        <Choice value="1" result="1"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="NAME=&quot;KS&quot; SIZE=&quot;1&quot;\sid=&quot;KeySize&quot;[^/]*VALUE=(\d)\sSELECTED" page="/html/Wireless.html?1">
        <Choice value="1" result="0"></Choice>
        <Choice value="2" result="1"></Choice>
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice validate="authmenu=open" result="0" />
        <Choice validate="authmenu=shared" value="1" />
        <Choice validate="authmenu=both" value="2" />
      </Field>
      <Field name="chosenkey" type="SET" validate="sm=wep" property="Choice" match="NAME=&quot;ValidIndex&quot;.*id=&quot;ValidIndex&quot;[^/]*OPTION\sSELECTED&gt;(\w*).*\n" page="/html/Wireless.html?1,0,1">
        <Choice result="First" value="Key1" />
        <Choice result="Second" value="Key2" />
        <Choice result="Third" value="Key3" />
        <Choice result="Fourth" value="Key4" />
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" entity="&amp;#([^&amp;]*)" validate="sm=wep" match="NAME=&quot;%chosenkey%&quot;[^&gt;]*VALUE=&quot;([^&quot;]*)&quot;" page="/html/Wireless.html?1,0,1" />
      <!--<Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="NAME=&quot;Key2&quot;[^&gt;]*VALUE=&quot;([^&quot;]*)&quot;" page="/html/Wireless.html?1,0,1" />-->
      <!--<Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="NAME=&quot;Key3&quot;[^&gt;]*VALUE=&quot;([^&quot;]*)&quot;" page="/html/Wireless.html?1,0,1" />-->
      <!--<Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="NAME=&quot;Key4&quot;[^&gt;]*VALUE=&quot;([^&quot;]*)&quot;" page="/html/Wireless.html?1,0,1" />-->
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" entity="&amp;#([^&amp;]*)" match="NAME=&quot;passphrase&quot;[^&gt;]*VALUE=&quot;([^&quot;]*)&quot;" page="/html/Wireless.html?1,0,4"></Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceInt" match="NAME=&quot;Cipher&quot;[^&gt;]*&gt;[^&quot;]*&lt;OPTION SELECTED&gt;([\w]*)\n" page="/html/Wireless.html?1,0,4">
        <Choice result="TKIP" value="0" />
        <Choice value="1" />
      </Field>
      <!--AP does not support WPSMODE - set default to No WPS -->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!-- D-Link WBR-1310 HW b1 FW 2.00 2.6.2009-->
    <WifiDeviceConfig title="D-Link WBR-1310" user="admin" password="" page="/wireless.htm" login="/login.cgi" data="login_name=%user%&amp;login_pass=%password%&amp;login=log+ln" server="Embedded HTTP Server 2.00">
      <Field name="routerPresentCheck" type="FOUND" required="FALSE" match="(WBR-1310)" skipLogin="false" page="/"></Field>
      <Field name="Postloginfind" type="FOUND" match="(WBR-1310)" set="modelname=WBR-1310" page="/index.htm"></Field>
      <Field name="modelName" type="SET" property="Input" match="(WBR-1310)" skiplogin="true" page="/" />
      <!--Uses &entityname; for special characters.-->
      <Field name="ssid" type="SSID" match="id=&quot;ssid&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;" />
      <Field name="eaptype" type="SET" match="id=&quot;eap_type&quot;[^&gt;]*&gt;[^:]*&lt;option[\s]*value=&quot;([\d])&quot;[\s]*selected&gt;[^&lt;]*&lt;/option&gt;"></Field>
      <Field name="secmode" type="SET" property="Choice" match="var current_wep_type = ([\d]);">
        <Choice result="0" value="disable" />
        <Choice result="1" value="wep" />
        <Choice result="2" value="wpa" />
        <Choice result="3" value="wpa2" />
        <Choice result="4" value="wpa2auto" />
      </Field>
      <Field name="Security" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="secmode=disable" value="1" set="sm=none" />
        <Choice validate="secmode=wep" value="2" set="sm=wep" />
        <Choice validate="secmode=wpa;eaptype=0" value="3" set="sm=wpa" />
        <Choice validate="secmode=wpa2;eaptype=0" value="3" set="sm=wpa" />
        <Choice validate="secmode=wpa2auto;eaptype=0" value="3" set="sm=wpa" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WEPAUTHTYPE" type="WEPMODE" validate="sm=wep" property="ChoiceInt" match="id=&quot;auth_type&quot;&gt;[^:]*&lt;option[\s]*value=&quot;([\d])&quot;[\s]*selected&gt;">
        <Choice result="0" value="0"></Choice>
        <Choice result="1" value="1"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="&lt;option value=&quot;[5|13]*&quot; selected&gt;([64|128]*)Bit&lt;/option&gt;" page="/wireless.htm">
        <Choice result="64" value="1" />
        <Choice result="128" value="2" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceInt" match="&lt;option value=&quot;[0|1]&quot; selected&gt;([HEX|ASCII]*)&lt;/option&gt;" page="/wireless.htm">
        <Choice value="0" result="HEX" />
        <Choice value="1" result="ASCII"></Choice>
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="name=&quot;key1&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;"></Field>
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="name=&quot;key2&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;"></Field>
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="name=&quot;key3&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;"></Field>
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="name=&quot;key4&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;"></Field>
      <Field name="CipherType" type="WPATYPE" validate="sm=wpa" property="ChoiceInt" match="id=&quot;cipher_type&quot;&gt;[^:]*&lt;option value=&quot;([\d])&quot; selected&gt;">
        <Choice result="0" value="0">
          <!--TKIP-->
        </Choice>
        <Choice result="1" value="1">
          <!--AES-->
        </Choice>
        <Choice result="2" value="1">
          <!--AES and TKIP-->
        </Choice>
      </Field>
      <!--Uses &entityname; for special characters.-->
      <Field name="PreSharedKey" type="WPAPASS" validate="sm=wpa" match="name=&quot;wpapsk1&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;&gt;"></Field>
    </WifiDeviceConfig>
    <!-- D-Link WBR-2310 HW A1 FW 1.02 2.6.2009-->
    <WifiDeviceConfig title="D-Link WBR-2310" user="admin" password="" page="/wireless.htm" login="/login.cgi" data="login_name=%user%&amp;login_pass=%password%&amp;login=log+ln" server="Embedded HTTP Server 1.02">
      <Field name="routerPresentCheck" type="FOUND" required="FALSE" match="(WBR-2310)" skipLogin="false" page="/"></Field>
      <Field name="Postloginfind" type="FOUND" match="(WBR-2310)" set="modelname=WBR-2310" page="/index.htm"></Field>
      <Field name="modelName" type="SET" property="Input" match="(WBR-2310)" skiplogin="true" page="/" />
      <!--Uses &entityname (&qout) for special characters.-->
      <Field name="ssid" type="SSID" match="id=&quot;ssid&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;" />
      <Field name="eaptype" type="SET" match="id=&quot;eap_type&quot;[^&gt;]*&gt;[^:]*&lt;option[\s]*value=&quot;([\d])&quot;[\s]*selected&gt;[^&lt;]*&lt;/option&gt;"></Field>
      <Field name="secmode" type="SET" property="Choice" match="var current_wep_type = ([\d]);">
        <Choice result="0" value="disable" />
        <Choice result="1" value="wep" />
        <Choice result="2" value="wpa" />
        <Choice result="3" value="wpa2" />
        <Choice result="4" value="wpa2auto" />
      </Field>
      <Field name="Security" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="secmode=disable" value="1" set="sm=none" />
        <Choice validate="secmode=wep" value="2" set="sm=wep" />
        <Choice validate="secmode=wpa;eaptype=0" value="3" set="sm=wpa" />
        <Choice validate="secmode=wpa2;eaptype=0" value="3" set="sm=wpa" />
        <Choice validate="secmode=wpa2auto;eaptype=0" value="3" set="sm=wpa" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="&lt;option value=&quot;[5|13]*&quot; selected&gt;([64|128]*)Bit&lt;/option&gt;">
        <Choice result="64" value="1" />
        <Choice result="128" value="2" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceInt" match="&lt;option value=&quot;[0|1]&quot; selected&gt;([HEX|ASCII]*)&lt;/option&gt;">
        <Choice value="0" result="HEX" />
        <Choice value="1" result="ASCII"></Choice>
      </Field>
      <Field name="WEPAUTHTYPE" type="WEPMODE" validate="sm=wep" property="ChoiceInt" match="id=&quot;auth_type&quot;&gt;[^:]*&lt;option[\s]*value=&quot;([\d])&quot;[\s]*selected&gt;">
        <Choice result="0" value="0"></Choice>
        <Choice result="1" value="1"></Choice>
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="name=&quot;key1&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;"></Field>
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="name=&quot;key2&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;"></Field>
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="name=&quot;key3&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;"></Field>
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="name=&quot;key4&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;"></Field>
      <Field name="CipherType" type="WPATYPE" validate="sm=wpa" property="ChoiceInt" match="id=&quot;cipher_type&quot;&gt;[^:]*&lt;option value=&quot;([\d])&quot; selected&gt;">
        <Choice result="0" value="0">
          <!--TKIP-->
        </Choice>
        <Choice result="1" value="1">
          <!--AES-->
        </Choice>
        <Choice result="2" value="1">
          <!--AES and TKIP-->
        </Choice>
      </Field>
      <Field name="PreSharedKey" type="WPAPASS" validate="sm=wpa" match="name=&quot;wpapsk1&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;&gt;"></Field>
    </WifiDeviceConfig>
    <!-- D-Link DIR-450 H/W: A1 F/W: 1.03 2.23.2009-->
    <WifiDeviceConfig title="D-Link DIR-450" user="admin" password="" page="/wireless.htm" login="/login.cgi" data="login_name=%user%&amp;login_pass=%password%&amp;login=log+ln" server="Embedded HTTP Server 1.03">
      <Field name="routerPresentCheck" type="FOUND" required="FALSE" match="(DIR-450)" skipLogin="false" page="/"></Field>
      <Field name="Postloginfind" type="FOUND" match="(DIR-450)" set="modelname=DIR-450" page="/index.htm"></Field>
      <Field name="modelName" type="SET" property="Input" match="(DIR-450)" skiplogin="true" page="/" />
      <!--Uses &entityname; for special chars.-->
      <Field name="ssid" type="SSID" match="id=&quot;ssid&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;" />
      <Field name="eaptype" type="SET" match="id=&quot;eap_type&quot;[^&gt;]*&gt;[^:]*&lt;option[\s]*value=&quot;([\d])&quot;[\s]*selected&gt;[^&lt;]*&lt;/option&gt;"></Field>
      <Field name="secmode" type="SET" property="Choice" match="name=&quot;wep_type&quot;[^&gt;]*&gt;[^:]*&lt;option value=&quot;([\d])&quot;[\s]*selected[\s]*&gt;">
        <Choice result="0" value="disable" />
        <Choice result="1" value="wep" />
        <Choice result="2" value="wpa" />
        <Choice result="3" value="wpa2" />
        <Choice result="4" value="wpa2auto" />
      </Field>
      <Field name="Security" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="secmode=disable" value="1" set="sm=none" />
        <Choice validate="secmode=wep" value="2" set="sm=wep" />
        <Choice validate="secmode=wpa;eaptype=0" value="3" set="sm=wpa" />
        <Choice validate="secmode=wpa2;eaptype=0" value="3" set="sm=wpa" />
        <Choice validate="secmode=wpa2auto;eaptype=0" value="3" set="sm=wpa" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WEPAUTHTYPE" type="WEPMODE" validate="sm=wep" property="ChoiceInt" match="id=&quot;auth_type&quot;&gt;[^:]*&lt;option[\s]*value=&quot;([\d])&quot;[\s]*selected&gt;">
        <Choice result="0" value="0"></Choice>
        <Choice result="1" value="1"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="&lt;option value=&quot;[1|2]&quot; selected&gt;([64|128]*)Bit&lt;/option&gt;" page="/wireless.htm">
        <Choice result="64" value="1" />
        <Choice result="128" value="2" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceInt" match="&lt;option value=&quot;[0|1]&quot; selected&gt;([HEX|ASCII]*)&lt;/option&gt;" page="/wireless.htm">
        <Choice value="0" result="HEX" />
        <Choice value="1" result="ASCII"></Choice>
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="name=&quot;key1&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;"></Field>
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="name=&quot;key2&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;"></Field>
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="name=&quot;key3&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;"></Field>
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="name=&quot;key4&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;"></Field>
      <Field name="CipherType" type="WPATYPE" validate="sm=wpa" property="ChoiceInt" match="id=&quot;cipher_type&quot;&gt;[^:]*&lt;option value=&quot;([\d])&quot; selected&gt;">
        <Choice result="0" value="0">
          <!--TKIP-->
        </Choice>
        <Choice result="1" value="1">
          <!--AES-->
        </Choice>
        <Choice result="2" value="1">
          <!--AES and TKIP-->
        </Choice>
      </Field>
      <!--Uses a generic garbage value in place of the password: WDB8WvbXdHtZyM8Ms2RENgHlacJghQyG-->
      <Field name="PreSharedKey" type="WPAPASS" validate="sm=wpa" property="ChoiceValidate">
        <Choice value=""></Choice>
      </Field>
    </WifiDeviceConfig>
    <!--INCOMPLETE Edimax BR-6574n H/W: Rev. A F/W: 1.25 1.29.2009-->
    <WifiDeviceConfig title="Edimax BR-6574n" realm="Default: admin/1234" server="GoAhead-Webs" user="admin" password="1234" page="/wlencrypt.asp">
      <Field name="LoginFailureRouterFind" type="FOUND" match="&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;\n&lt;HTML&gt;&lt;HEAD&gt;\n&lt;META http-equiv=Content-Type (content)=&quot;text/html; charset=windows-1252&quot;&gt;&lt;/HEAD&gt;\n&lt;BODY&gt;&lt;/BODY&gt;&lt;/HTML&gt;" required="false" skiplogin="true" page="/" />
      <Field name="Routerid" type="FOUND" match="(BR-6574N)" page="/stainfo.asp" />
      <Field name="modelname" type="SET" match="(BR-6574N)" page="/stainfo.asp" />
      <Field name="SSID" type="SSID" match="name=&quot;ssid&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;" page="/wlbasic.asp"></Field>
      <!--No WPS Support.-->
      <Field name="wpsenable" type="SET" match="name=&quot;wpsEnable&quot;  value=&quot;ON&quot; onClick=&quot;goToWeb\(\);(&quot;[^&gt;]*)&gt;" page="/wpsconfig.asp" property="Choice">
        <Choice result="&quot; checked  " value="yes" />
        <Choice value="no" />
      </Field>
      <Field name="enradius" type="SET" match="name=&quot;enRadius&quot; value=&quot;ON(&quot;[^o]*)onClick=&quot;displayObj\(\);&quot;" property="Choice">
        <Choice result="&quot; checked " value="yes" />
        <Choice value="no" />
      </Field>
      <Field name="meth" type="SET" match="methodVal = ([\d]);"></Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice validate="enradius=no;wpsenable=yes" value="1" />
        <Choice value="0" />
      </Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="meth=0" value="1" set="sm=disabled" />
        <Choice validate="wpsenable=yes;enradius=no" value="4" set="sm=wps" />
        <Choice validate="meth=1;enradius=no" value="2" set="sm=wep" />
        <Choice validate="meth=2" value="3" set="sm=wpa" />
        <Choice value="0" set="sm=nosupport" />
      </Field>
      <!--Does not indicate a WEP auth mode.-->
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <!--All WEP & WPA keys are hidden.-->
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" property="ChoiceValidate">
        <Choice value="*" />
      </Field>
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" property="ChoiceValidate">
        <Choice value="*" />
      </Field>
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" property="ChoiceValidate">
        <Choice value="*" />
      </Field>
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" property="ChoiceValidate">
        <Choice value="*" />
      </Field>
      <!--If either AES or Mixed was checked, we will set to AES. If no match then do the default.-->
      <Field name="WPATYPEAESChecked" type="WPATYPE" validate="sm=wpa" property="ChoiceInt" match="name=&quot;wpaCipher&quot; value=&quot;([\d])&quot;checked&gt;" required="false">
        <Choice result="2" value="1" />
        <Choice result="3" value="1" />
      </Field>
      <Field name="TKIPTYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceInt" required="false" match="value=&quot;([\d])&quot; name=&quot;wpaCipher&quot;checked&gt;">
        <Choice result="1" value="0" />
      </Field>
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" property="ChoiceValidate">
        <Choice value="" />
      </Field>
    </WifiDeviceConfig>
    <!--Encore ENWHI-N F/W Version 1.3 (20080910) 2.20.2009-->
    <WifiDeviceConfig title="Encore ENWHI-N" server="" realm="" user="admin" password="admin" page="/cgi-bin/webctrl.cgi?action=wlansecurity_page" login="/cgi-bin/webctrl.cgi" data="action=login_authentication&amp;redirect_action=login_page&amp;login_username=%user%&amp;login_password=%password%&amp;B1=Login">
      <!--Server will change for different page requests.-->
      <!--Note this router will not tolerate the webtester and web browser being logged in simultaneously.-->
      <Field name="routerPresentCheck" type="FOUND" match="(&lt;title&gt;802.11n Wireless Router&lt;/title&gt;)" skiplogin="false" required="FALSE" page="/" />
      <Field name="PostLoginFind" type="FOUND" match="(&lt;title&gt;802.11n Wireless Router&lt;/title&gt;)" page="/" />
      <Field name="modelName" type="SET" match="class=&quot;opt_value&quot;&gt;(ENHWI-N)" page="/cgi-bin/webctrl.cgi?action=sysinfo_page HTTP/1.1" />
      <Field name="ssid" type="SSID" match="name=&quot;wlan_ssid&quot;[^&gt;]*value=&quot;(.+)&quot; size=" page="/cgi-bin/webctrl.cgi?action=wlanbasic_page" />
      <Field name="wifisc_enabled" type="NOOP" property="ChoiceInt" match="name=&quot;wlan_wps_enable&quot;[^o]*onclick=&quot;submit\(\)&quot;[\s]*([\S]*)&gt;" page="/cgi-bin/webctrl.cgi?action=wlanwps_page">
        <Choice result="checked" set="wpsenabled=yes"></Choice>
        <Choice set="wpsenabled=no" />
      </Field>
      <Field name="wpa_select" type="SET" property="Choice" match="name=&quot;wlan_auth_mode&quot;[^&gt;]*&gt;[^#]*&lt;option value=&quot;wpapsk&quot;[\s]([\S]*)&gt;[^&lt;]*&lt;/option&gt;">
        <Choice result="selected" value="1"></Choice>
        <Choice value="0" />
      </Field>
      <Field name="wep_select" type="SET" property="Choice" match="&lt;option value=&quot;wep&quot;[\s]*([\S]*)&gt;[^&lt;]*&lt;/option&gt;">
        <Choice result="selected" value="1"></Choice>
        <Choice value="0" />
      </Field>
      <Field name="none_select" type="SET" property="Choice" match="&lt;option value=&quot;none&quot;[\s]*([\S]*)&gt;[^&lt;]*&lt;/option&gt;">
        <Choice result="selected" value="1"></Choice>
        <Choice value="0" />
      </Field>
      <!--<Field name="authmode" type="SET" validate="wpsenabled=no" match="name=&quot;wlan_auth_mode&quot;[^&gt;]*&gt;[^#]*&lt;option value=&quot;([\w]*)&quot;[\s]*selected&gt;"></Field>-->
      <!--When the router is at full default, none of the security modes will be "selected".-->
      <Field name="authmode" type="SET" property="ChoiceValidate">
        <Choice validate="none_select=0;wep_select=0;wpa_select=0;" value="default" />
        <Choice validate="none_select=1" value="none" />
        <Choice validate="wep_select=1" value="wep" />
        <Choice validate="wpa_select=1" value="wpapsk" />
      </Field>
      <Field name="Security" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="authmode=none" value="1" set="sm=none" />
        <Choice validate="authmode=wep" value="2" set="sm=wep" />
        <Choice validate="authmode=wpapsk" value="3" set="sm=wpapsk" />
        <Choice validate="authmode=default" value="1" set="sm=none" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice validate="sm=unsupported" value="0"></Choice>
        <Choice validate="sm=wep" value="0"></Choice>
        <Choice validate="wpsenabled=yes" value="3"></Choice>
        <Choice value="1"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <Field name="defaultkey" type="SET" validate="sm=wep" property="Choice" match="name=&quot;wlan_default_keyid&quot;&gt;[^:]*option value=&quot;(1|2|3|4)&quot; selected">
        <Choice result="1" value="1"></Choice>
        <Choice result="2" value="2"></Choice>
        <Choice result="3" value="3"></Choice>
        <Choice result="4" value="4"></Choice>
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceInt" match="name=&quot;wlan_key%defaultkey%type&quot;&gt;[^:]*&lt;option value=&quot;([\d])&quot; selected&gt;">
        <Choice result="0" value="0"></Choice>
        <Choice result="1" value="1"></Choice>
      </Field>
      <Field name="wep_auth" type="WEPMODE" validate="sm=wep" property="ChoiceInt" match="name=&quot;wlan_wep_auth&quot;[^&gt;]*&gt;[^:]*&lt;option value=&quot;([\w]*)&quot;[\s]*selected&gt;">
        <Choice result="open" value="0"></Choice>
        <Choice result="shared" value="1"></Choice>
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="name=&quot;wlan_key%defaultkey%str&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;"></Field>
      <Field name="CipherType" type="WPATYPE" validate="sm=wpapsk" property="ChoiceInt" match="name=&quot;wlan_wpa_encryption&quot;[^&gt;]*&gt;[^:]*&lt;option value=&quot;([\w]*)&quot;[\s]*selected&gt;">
        <Choice result="tkip" value="0">
          <!--TKIP-->
        </Choice>
        <Choice value="1"></Choice>
      </Field>
      <Field name="PreSharedKey" type="WPAPASS" validate="sm=wpapsk" match="name=&quot;wlan_wpapsk&quot;[^&gt;]*value=&quot;(.+)&quot; size="></Field>
    </WifiDeviceConfig>
    <!--Hawking HWRN1A HW: Rev. A Boot: 1.0 Runtime: 1.20 1.22.2009-->
    <WifiDeviceConfig title="Hawking HWRN1A" realm="Default: admin/1234" user="admin" password="1234" page="/wlencrypt.asp">
      <Field name="modelname" type="SET" match="&lt;title&gt;Hawking Tech - (HWRN1A)&lt;/title&gt;" page="/wlbasic.asp" />
      <Field name="SSID" type="SSID" match="name=&quot;ssid&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;" page="/wlbasic.asp"></Field>
      <Field name="secmeth" type="SET" property="Choice" match="methodVal = ([\d]);" page="/wlencrypt.asp">
        <Choice result="0" value="disable" />
        <Choice result="1" value="wep" />
        <Choice result="2" value="wpapsk" />
        <Choice result="3" value="radius" />
        <Choice value="nomatch" />
      </Field>
      <Field name="radiusbox" type="SET" property="Choice" match="name=&quot;enRadius&quot; value=&quot;ON&quot;\n[\s]*([\w]*)" page="/wlencrypt.asp">
        <Choice result="checked" value="checked" />
        <Choice value="off" />
      </Field>
      <Field name="wpsbox" type="SET" property="Choice" match="name=&quot;wpsEnable&quot;  value=&quot;ON&quot; onClick=&quot;goToWeb\(\);&quot;[\s]*([\w]*)[\s]*&gt;" page="/wpsconfig.asp">
        <Choice result="checked" value="checked" />
        <Choice value="off" />
      </Field>
      <Field name="SECURITY1" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="secmeth=disable" value="1" set="sm=disable" />
        <Choice validate="radiusbox=off;wpsbox=checked" value="4" set="sm=wps" />
        <Choice validate="secmeth=wep;radiusbox=off" value="2" set="sm=wep" />
        <Choice validate="secmeth=wpapsk;wpsbox=off" value="3" set="sm=wpa" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice validate="sm=wps" value="1"></Choice>
        <Choice value="0" />
      </Field>
      <!--Assume open mode for router that does not indicate auto/shared/open.-->
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <!--WEP keys are hidden with asterisks - *-->
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value=""></Choice>
      </Field>
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value=""></Choice>
      </Field>
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value=""></Choice>
      </Field>
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value=""></Choice>
      </Field>
      <!--passkey is obscured with asterisk.-->
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" property="ChoiceValidateInt">
        <Choice value=""></Choice>
      </Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceInt" match="&quot;([\w]*)&quot;[\s]*name=&quot;wpaCipher&quot;[^&gt;]*checked&gt;">
        <Choice result="1" value="0"></Choice>
        <Choice value="1" />
      </Field>
    </WifiDeviceConfig>
    <!--Kyocera KR2 ZE1.0.00 01.12.2009-->
    <WifiDeviceConfig title="Kyocera KR2" page="/Basic/Wireless.shtml" login="/post_login.xml?hash=%salt%%saltedHash%">
      <!--There is NO default password for the model; these routers use the last 6 digits of the MAC address.-->
      <Field name="password" type="SET" property="ChoiceValidate" skiplogin="true" startbyte="6">
        <Choice value="%macaddress%" />
      </Field>
      <Field name="salt" type="SET" property="Input" match="var salt = &quot;(.+)&quot;" skiplogin="true" page="/login.shtml" />
      <Field name="saltedHash" type="SET" property="ChoiceValidate" skiplogin="true" hashresult="true" fillsize="64" fillbyte="1" page="/login.shtml">
        <Choice value="%salt%%password%" />
      </Field>
      <Field name="modelName" type="SET" property="Input" match="(KR2)" skiplogin="false" page="/Tools/Admin.shtml" />
      <Field name="ssid" type="SSID" match="&lt;input[^&gt;]*id=&quot;wireless_SSID&quot;[^&gt;]*value=&quot;(.+)&quot;[^&gt;]*name=&quot;config.wireless.SSID&quot;[^&gt;]*&gt;" />
      <Field name="wifisc_enabled" type="NOOP" property="ChoiceInt" match="var wifisc_enabled = &quot;([\w]*)&quot;" page="/Status/Device_Info.shtml">
        <Choice result="false" set="wpsenabled=no;wps=off"></Choice>
        <Choice result="true" set="wpsenabled=yes" />
      </Field>
      <Field name="wifisc_configured" type="WPSMODE" property="ChoiceInt" validate="wpsenabled=yes" match="var wifisc_configured = &quot;([\w]*)&quot;" page="/Status/Device_Info.shtml">
        <Choice set="wps=on" value="1" result="true"></Choice>
        <Choice set="wps=off" value="0"></Choice>
      </Field>
      <Field name="wireless_ieee8021x_enabled" type="NOOP" property="Choice" match="name=&quot;config.wireless.ieee8021x_enabled&quot; value=&quot;([\w]*)&quot;">
        <Choice result="true" set="enterprise=on" />
        <Choice result="false" set="enterprise=off" />
      </Field>
      <Field name="wireless_wpa_enabled" type="NOOP" property="ChoiceInt" match="name=&quot;config.wireless.wpa_enabled&quot; value=&quot;([\w]*)&quot;">
        <Choice set="wpa=enabled" result="true" />
        <Choice result="false" set="wpa=disabled" />
      </Field>
      <Field name="wireless_wepon" type="NOOP" property="ChoiceInt" match="name=&quot;config.wireless.wepon&quot; value=&quot;([\w]*)&quot;">
        <Choice set="wep=disabled" result="false" />
        <Choice set="wep=enabled" result="true" />
      </Field>
      <Field name="Security" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="wep=disabled;wpa=disabled;wps=off" value="1" set="sm=none" />
        <Choice validate="wep=enabled;wpa=disabled;wps=off" value="2" set="sm=wep" />
        <Choice validate="wep=disabled;wpa=enabled;wps=off;enterprise=off" value="3" set="sm=wpapsk" />
        <Choice validate="wps=on;enterprise=off" value="4" set="sm=wps" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="wireless_auth" type="WEPMODE" validate="sm=wep" property="ChoiceInt" match="name=&quot;config.wireless.auth&quot; value=&quot;([\d])&quot;">
        <Choice result="2" value="1">
          <!--Shared-->
        </Choice>
        <Choice result="1" value="0">
          <!--"Open" in the dropdown-->
        </Choice>
      </Field>
      <Field name="wireless_keylen" type="NOOP" validate="sm=wep" property="ChoiceInt" match="name=&quot;config.wireless.keylen&quot; value=&quot;([\d])&quot;">
        <Choice result="1" set="keylen=128"></Choice>
        <Choice value="0" set="keylen=64"></Choice>
      </Field>
      <Field name="64bitKEY1" type="WEPKEY1" validate="sm=wep;keylen=64" match="id=&quot;wep_key0&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY2" type="WEPKEY2" validate="sm=wep;keylen=64" match="id=&quot;wep_key1&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY3" type="WEPKEY3" validate="sm=wep;keylen=64" match="id=&quot;wep_key2&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY4" type="WEPKEY4" validate="sm=wep;keylen=64" match="id=&quot;wep_key3&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="128bitKEY1" type="WEPKEY1" validate="sm=wep;keylen=128" match="id=&quot;wep_key0&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY2" type="WEPKEY2" validate="sm=wep;keylen=128" match="id=&quot;wep_key1&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY3" type="WEPKEY3" validate="sm=wep;keylen=128" match="id=&quot;wep_key2&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY4" type="WEPKEY4" validate="sm=wep;keylen=128" match="id=&quot;wep_key3&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="CipherType" type="WPATYPE" validate="sm=wpapsk" property="ChoiceInt" match="name=&quot;config.wireless.wpa_cipher&quot; value=&quot;([\d])&quot;">
        <Choice result="1" value="0">
          <!--TKIP-->
        </Choice>
        <Choice result="2" value="1">
          <!--AES-->
        </Choice>
        <Choice result="3" value="1">
          <!--AES and TKIP-->
        </Choice>
      </Field>
      <Field name="PreSharedKey" type="WPAPASS" validate="sm=wpapsk" match="name=&quot;config.wireless.wpa_psk&quot;[^&gt;]*value=&quot;([\S]*)&quot;"></Field>
    </WifiDeviceConfig>
    <!--LevelOne WBR-3405TX HW: 3.0 FW: 4.00 2.9.2009-->
    <WifiDeviceConfig title="LevelOne WBR-3405TX" server="Embedded HTTP Server 4.00" realm="" user="admin" password="admin" page="/w_wep_11g.htm">
      <Field name="PreLoginFind" type="FOUND" required="false" skiplogin="true" match="&lt;BODY BGCOLOR=&quot;#(ffffff)&quot;&gt;&lt;H4&gt;401 Unauthorized&lt;/H4&gt;&lt;/BODY&gt;&lt;/HTML&gt;" page="/" />
      <Field name="PostLoginFind" type="FOUND" property="Choice" match="&lt;!-- (ImageReady) Preload Script \(RST web page-china.psd\) --&gt;[^&lt;]*&lt;script language=&quot;JavaScript&quot; src=&quot;public.js">
        <Choice result="ImageReady" value="WBR-3405TX" />
      </Field>
      <!--Make and Model do not appear anywhere in the page sources.-->
      <Field name="modelName" type="SET" property="Choice" match="&lt;!-- (ImageReady) Preload Script \(RST web page-china.psd\) --&gt;[^&lt;]*&lt;script language=&quot;JavaScript&quot; src=&quot;public.js">
        <Choice result="ImageReady" value="WBR-3405TX" />
      </Field>
      <!--&entitynames are unparsed.-->
      <Field type="SSID" name="ssid" match="name=&quot;essid&quot;[^&gt;]*value=&quot;(.+)&quot;&gt;" page="/w_basic_11g.htm" />
      <!--This device includes WPS, and is always enabled.-->
      <Field name="sectype" type="SET" match="name=&quot;wep_type&quot;[^&gt;]*&gt;[^8]*&lt;option value=&quot;([\d])&quot;[\s]*selected&gt;" property="Choice">
        <Choice result="0" value="disable" />
        <Choice result="1" value="wep" />
        <Choice result="2" value="wpa" />
        <Choice result="4" value="wpa2" />
        <Choice value="nomatch" />
      </Field>
      <Field name="eap" type="SET" match="name=&quot;eap_type&quot; type=&quot;radio&quot; value=&quot;([\d])&quot; onClick=&quot;show_wpa_wep\(\)&quot; checked&gt;" property="Choice">
        <Choice result="0" value="disabled" />
        <Choice result="1" value="enabled" />
      </Field>
      <Field name="Security" type="SECURITY" match="name=&quot;wep_type&quot;[^&gt;]*&gt;[^8]*&lt;option value=&quot;([\d])&quot;[\s]*selected&gt;" property="ChoiceValidateInt">
        <Choice validate="sectype=disable" value="1" set="sm=none" />
        <Choice validate="sectype=wep" value="2" set="sm=wep" />
        <Choice validate="sectype=wpa;eap=disabled" value="3" set="sm=wpapsk" />
        <Choice validate="sectype=wpa2;eap=disabled" value="3" set="sm=wpapsk" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field type="WEPKEYTYPE" name="WEPKEYTYPE" validate="sm=wep" property="ChoiceInt" match="&lt;option value=&quot;[\d]&quot;[\s]*selected&gt;(HEX|ASCII)">
        <Choice value="0" result="HEX" />
        <Choice value="1" result="ASCII" />
      </Field>
      <Field type="WEPMODE" name="WEPMODE" validate="sm=wep" property="ChoiceInt" match="name=&quot;auth_type&quot; type=radio value=([\d]) checked&gt;">
        <Choice value="0" result="0" />
        <Choice value="1" result="1" />
      </Field>
      <Field type="WEPSTRENGTH" name="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="name=&quot;wep_key_len&quot;[^&gt;]*&gt;[^f]*&lt;option value=&quot;([\d]*)&quot;[\s]*selected&gt;">
        <Choice value="1" result="5" />
        <Choice value="2" result="13" />
      </Field>
      <Field type="WEPKEY1" name="WEPKEY1" validate="sm=wep" match="name=&quot;key1&quot;[^&gt;]*value=&quot;(.+)&quot;&gt;"></Field>
      <Field type="WEPKEY2" name="WEPKEY2" validate="sm=wep" match="name=&quot;key2&quot;[^&gt;]*value=&quot;(.+)&quot;&gt;"></Field>
      <Field type="WEPKEY3" name="WEPKEY3" validate="sm=wep" match="name=&quot;key3&quot;[^&gt;]*value=&quot;(.+)&quot;&gt;"></Field>
      <Field type="WEPKEY4" name="WEPKEY4" validate="sm=wep" match="name=&quot;key4&quot;[^&gt;]*value=&quot;(.+)&quot;&gt;"></Field>
      <Field type="WPATYPE" name="WPATYPE" validate="sm=wpapsk" property="ChoiceValidateInt">
        <Choice value="0" validate="sectype=wpa" />
        <Choice value="1" validate="sectype=wpa2" />
      </Field>
      <!--Uses %entityname; -->
      <Field type="WPAPASS" name="WPAPASS" validate="sm=wpapsk" match="id=&quot;wpapsk1&quot; size=&quot;40&quot; maxlength=&quot;64&quot; value=&quot;(.+)&quot;&gt;"></Field>
      <Field name="WirelessWPS" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!--LevelOne WBR-6000 HW: 2.0 FW: Version 1.0 Release 04 2.20.2009-->
    <WifiDeviceConfig title="LevelOne WBR-6000" server="IP_SHARER WEB 1.0" realm="WBR-6000" user="admin" password="password" page="/w_sec.htm">
      <Field type="FOUND" name="PreLoginFind" required="false" property="Input" skiplogin="true" match="(401) Unauthorized" page="/" />
      <Field type="SET" name="modelName" property="Input" match="(WBR-6000)" page="/sys_rpt.htm" />
      <Field type="FOUND" name="PostLoginFind" property="Input" match="(WBR-6000)" page="/sys_rpt.htm" />
      <!--Using &entityname;-->
      <Field type="SSID" name="ssid" match="name=&quot;ssid&quot; value=&quot;([^&quot;]*)&quot;" page="/wireless.htm" />
      <Field name="Security" type="SECURITY" match="name=&quot;wsecurity&quot;[^&gt;]*&gt;[^&quot;]*&lt;option selected&gt;([^&lt;]*)&lt;" property="ChoiceInt" page="/w_sec.htm">
        <Choice result="Disabled" value="1" set="sm=none"></Choice>
        <Choice result="WPA/WPA2-PSK" value="3" set="sm=wpa" />
        <Choice result="WEP" value="2" set="sm=wep" />
      </Field>
      <Field type="WPSMODE" name="WPSMODE" property="ChoiceValidateInt">
        <Choice validate="sm=wep" value="0" />
        <Choice validate="sm=notsupport" value="0" />
        <Choice value="3" />
      </Field>
      <Field type="WPATYPE" name="WPATYPE" property="ChoiceInt" validate="sm=wpa" match="name=&quot;wpa_enc&quot;[^&gt;]*&gt;[^r]*&lt;option selected&gt;([^&lt;]*)&lt;/option&gt;">
        <Choice value="0" result="TKIP" />
        <Choice value="1" />
      </Field>
      <!--special chars can break this field.-->
      <Field type="WPAPASS" name="WPAPASS" validate="sm=wpa" match="name=&quot;wpa_psk&quot;[^&gt;]*value=&quot;(.+)&quot;&gt;"></Field>
      <Field type="WEPSTRENGTH" name="WEPSTRENGTH" property="ChoiceInt" validate="sm=wep" match="name=&quot;wepenc&quot;[^&gt;]*&gt;[^R]*&lt;option[\s]*selected&gt;([\d]*) bit&lt;/option&gt;">
        <Choice value="2" result="128" />
        <Choice value="1" result="64" />
      </Field>
      <!--Only supports hex keys.-->
      <Field type="WEPMODE" name="WEPMODE" property="ChoiceInt" validate="sm=wep" match="&lt;option selected&gt;(Shared Key|Open System|Auto)&lt;/option&gt;">
        <Choice value="0" result="Open System" />
        <Choice value="1" result="Shared Key" />
        <Choice value="2" result="Auto" />
      </Field>
      <Field type="WEPKEYTYPE" name="WEPTYPE" property="ChoiceValidateInt" validate="sm=wep">
        <Choice value="0" />
      </Field>
      <Field type="WEPKEY1" name="WEPKEY1" validate="sm=wep" match="name=&quot;ascii_key1&quot;[^&gt;]*value=&quot;(.+)&quot; onfocus="></Field>
      <Field type="WEPKEY2" name="WEPKEY2" validate="sm=wep" match="name=&quot;ascii_key2&quot;[^&gt;]*value=&quot;(.*)&quot; onfocus="></Field>
      <Field type="WEPKEY3" name="WEPKEY3" validate="sm=wep" match="name=&quot;ascii_key3&quot;[^&gt;]*value=&quot;(.*)&quot; onfocus="></Field>
      <Field type="WEPKEY4" name="WEPKEY4" validate="sm=wep" match="name=&quot;ascii_key4&quot;[^&gt;]*value=&quot;(.*)&quot; onfocus="></Field>
    </WifiDeviceConfig>
    <!--LevelOne WBR-6001 HW: 1.0 FW: R1.97g6-R86_20071204_1 2.20.2009-->
    <WifiDeviceConfig title="LevelOne WBR-6001" server="" realm="" user="admin" password="password" login="/cgi-bin/logi" data="rc=@&amp;PS=%password%&amp;rd=select&amp;TC=1234265608.437" page="/wpa.htm">
      <!--Webtester does not report a realm and 'getheader fail's for server.-->
      <Field name="PreLoginFind" type="FOUND" required="false" skiplogin="true" match="&lt;TITLE&gt;LevelOne (WBR-6001) Web-Console&lt;/TITLE&gt;&lt;/HEAD&gt;" page="/" />
      <Field name="PostLoginFind" type="FOUND" match="&lt;TITLE&gt;LevelOne (WBR-6001) Web-Console&lt;/TITLE&gt;&lt;/HEAD&gt;" page="/"></Field>
      <Field name="modelname" type="SET" match="&lt;TITLE&gt;LevelOne (WBR-6001) Web-Console&lt;/TITLE&gt;&lt;/HEAD&gt;" page="/"></Field>
      <!--Using &entityname;-->
      <Field type="SSID" name="ssid" match="document.forms\[0\].ZN.value=unescape\(&quot;(.+)&quot;\);" />
      <Field name="sectype" type="SET" match="&lt;INPUT TYPE=HIDDEN NAME=CS VALUE=&quot;([\d])&quot;&gt;" property="Choice">
        <Choice result="0" value="disable" />
        <Choice result="1" value="wep" />
        <Choice result="2" value="wpa" />
        <Choice result="4" value="wpa2" />
        <Choice result="5" value="wpa2" />
        <Choice value="nomatch" />
      </Field>
      <Field name="wpsenable" type="SET" match="NAME=ZF0 VALUE=([\w])[\s]*CHECKED " property="Choice" page="/cgi-bin/wlap?RC=@&amp;rd=wps">
        <Choice result="o" value="yes" />
        <Choice result="x" value="no" />
      </Field>
      <Field name="eap" type="SET" match="login=[\w]*;CSKM0='(.+)';WizOK" property="Choice">
        <Choice result="1CHECKED" value="enabled" />
        <Choice result="2CHECKED" value="enabled" />
        <Choice result="4CHECKED" value="enabled" />
        <Choice result="5CHECKED" value="enabled" />
        <Choice value="disabled" />
      </Field>
      <Field name="Security" type="SECURITY" match="name=&quot;wep_type&quot;[^&gt;]*&gt;[^8]*&lt;option value=&quot;([\d])&quot;[\s]*selected&gt;" property="ChoiceValidateInt">
        <Choice validate="sectype=disable" value="1" set="sm=none" />
        <Choice validate="eap=disabled;sectype=wep" value="2" set="sm=wep" />
        <Choice validate="eap=disabled;sectype=wpa" value="3" set="sm=wpapsk" />
        <Choice validate="eap=disabled;sectype=wpa2" value="3" set="sm=wpapsk" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice validate="sm=wep" value="0" />
        <Choice validate="sm=unsupported" value="0" />
        <Choice validate="eap=disabled;wpsenable=yes" value="3" />
        <Choice value="1" />
      </Field>
      <Field type="WEPKEYTYPE" name="WEPKEYTYPE" validate="sm=wep" property="ChoiceInt" match="var mode=&quot;([\w]*)&quot;">
        <Choice value="0" result="HEX" />
        <Choice value="1" result="ASCII" />
      </Field>
      <Field type="WEPMODE" name="WEPMODE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="1" />
      </Field>
      <Field type="WEPSTRENGTH" name="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="wepkeylen_='([\d]*)';&quot; CHECKED&gt;">
        <Choice value="1" result="64" />
        <Choice value="2" result="128" />
      </Field>
      <Field type="WEPKEY1" name="WEPKEY1" validate="sm=wep" match="NAME=ZO0 value=&quot;([\w]*)&quot;"></Field>
      <Field type="WEPKEY2" name="WEPKEY2" validate="sm=wep" match="NAME=ZO1 value=&quot;([\w]*)&quot;"></Field>
      <Field type="WEPKEY3" name="WEPKEY3" validate="sm=wep" match="NAME=ZO2 value=&quot;([\w]*)&quot;"></Field>
      <Field type="WEPKEY4" name="WEPKEY4" validate="sm=wep" match="NAME=ZO3 value=&quot;([\w]*)&quot;"></Field>
      <Field type="WPATYPE" name="WPATYPE" validate="sm=wpapsk" property="ChoiceValidateInt">
        <Choice value="0" validate="sectype=wpa" />
        <Choice value="1" validate="sectype=wpa2" />
      </Field>
      <!--Using %xx-->
      <Field type="WPAPASS" name="WPAPASS" validate="sm=wpapsk" match="document.forms\[0\].PK.value=unescape\(&quot;(.+)&quot;\);"></Field>
    </WifiDeviceConfig>
    <!--Linksys WAP200 1.0.22 2.10.2009-->
    <WifiDeviceConfig title="Linksys WAP200" server="httpd" realm="Linksys WAP200" user="admin" password="admin" page="/WirelessSecurity.htm">
      <Field name="routerPresentCheck" type="FOUND" required="FALSE" match="(#cc9999)" server="httpd" skipLogin="false" page="/"></Field>
      <Field name="Postloginfind" type="FOUND" match="(WAP200)" set="modelname=WAP200" page="/BasicWirelessSettings.htm"></Field>
      <Field name="ModelCheck" type="NOOP" match="&lt;b&gt;(WAP200)&lt;/b&gt;" set="modelname=WAP200" page="/BasicWirelessSettings.htm"></Field>
      <!--AP supports up to 4 enabled SSIDs. Get settings for ONLY the first one that is enabled.-->
      <Field name="CheckFirstSSID" type="SSID" match="ssidArray[\S]0[\S] = '(.+)';" entity="\\(.)" page="/BasicWirelessSettings.htm"></Field>
      <Field name="IsSSID1Enabled" type="NOOP" match="hideall = '([\d]);([\d]);([\d]);([\d])'" page="/BasicWirelessSettings.htm" property="ChoiceInt" group="0">
        <Choice result="0" set="ssid=first" />
        <Choice result="1" set="ssid=disabled" />
      </Field>
      <Field name="IsSSID2Enabled" type="NOOP" match="hideall = '([\d]);([\d]);([\d]);([\d])'" property="ChoiceInt" validate="ssid=disabled" page="/BasicWirelessSettings.htm" group="1">
        <Choice result="0" set="ssid=second" />
        <Choice set="ssid=disabled" />
      </Field>
      <Field name="GetSecondSSID" type="SSID" validate="ssid=second" match="ssidArray[\S]1[\S] = '(.+)';" entity="\\(.)" page="/BasicWirelessSettings.htm"></Field>
      <Field name="IsSSID3Enabled" type="NOOP" match="hideall = '([\d]);([\d]);([\d]);([\d])'" property="ChoiceInt" validate="ssid=disabled" page="/BasicWirelessSettings.htm" group="2">
        <Choice result="0" set="ssid=third" />
        <Choice set="ssid=disabled" />
      </Field>
      <Field name="GetThirdSSID" type="SSID" validate="ssid=third" match="ssidArray[\S]2[\S] = '(.+)';" entity="\\(.)" page="/BasicWirelessSettings.htm"></Field>
      <Field name="IsSSID4Enabled" type="NOOP" validate="ssid=disabled" match="hideall = '([\d]);([\d]);([\d]);([\d])'" property="ChoiceInt" page="/BasicWirelessSettings.htm" group="3">
        <Choice result="0" set="ssid=fourth" />
        <Choice set="ssid=disabled" />
      </Field>
      <Field name="GetFourthSSID" type="SSID" validate="ssid=fourth" entity="\\(.)" match="ssidArray[\S]3[\S] = '(.+)';" page="/BasicWirelessSettings.htm"></Field>
      <Field name="SECURITYFirstSSID" type="SECURITY" property="ChoiceInt" validate="ssid=first" match="case &quot;wl_security&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)';" group="0">
        <Choice result="none" value="1" set="sm=disabled" />
        <Choice result="psk" value="3" set="sm=wpa;wpa=wpa" />
        <Choice result="WPA2PSK" value="3" set="sm=wpa;wpa=wpa2" />
        <Choice result="WPAPSKWPA2PSK" value="3" set="sm=wpa;wpa=wpa2" />
        <Choice result="wep" value="2" set="sm=wep;wps=off" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="SECURITYSecondSSID" type="SECURITY" property="ChoiceInt" validate="ssid=second" match="case &quot;wl_security&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)';" group="1">
        <Choice result="none" value="1" set="sm=disabled" />
        <Choice result="psk" value="3" set="sm=wpa;wpa=wpa" />
        <Choice result="WPA2PSK" value="3" set="sm=wpa;wpa=wpa2" />
        <Choice result="WPAPSKWPA2PSK" value="3" set="sm=wpa;wpa=wpa2" />
        <Choice result="wep" value="2" set="sm=wep;wps=off" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="SECURITYThirdSSID" type="SECURITY" property="ChoiceInt" validate="ssid=third" match="case &quot;wl_security&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)';" group="2">
        <Choice result="none" value="1" set="sm=disabled" />
        <Choice result="psk" value="3" set="sm=wpa;wpa=wpa" />
        <Choice result="WPA2PSK" value="3" set="sm=wpa;wpa=wpa2" />
        <Choice result="WPAPSKWPA2PSK" value="3" set="sm=wpa;wpa=wpa2" />
        <Choice result="wep" value="2" set="sm=wep;wps=off" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="SECURITYFourthSSID" type="SECURITY" property="ChoiceInt" validate="ssid=fourth" match="case &quot;wl_security&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)';" group="3">
        <Choice result="none" value="1" set="sm=disabled" />
        <Choice result="psk" value="3" set="sm=wpa;wpa=wpa" />
        <Choice result="WPA2PSK" value="3" set="sm=wpa;wpa=wpa2" />
        <Choice result="WPAPSKWPA2PSK" value="3" set="sm=wpa;wpa=wpa2" />
        <Choice result="wep" value="2" set="sm=wep;wps=off" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <!--Uses the length of the key to determine hex vs. ascii. Cannot support ASCII keys.-->
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field name="FirstWEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep;ssid=first" property="ChoiceInt" match="wl_key_length_array = \'([\d]);([\d]);([\d]);([\d])'.split" page="/WS_Wep.htm" group="0">
        <Choice result="1" value="1" />
        <Choice result="2" value="0" />
      </Field>
      <Field name="SecondWEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep;ssid=second" property="ChoiceInt" match="wl_key_length_array = \'([\d]);([\d]);([\d]);([\d])'.split" page="/WS_Wep.htm" group="1">
        <Choice result="1" value="1" />
        <Choice result="2" value="0" />
      </Field>
      <Field name="ThirdWEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep;ssid=third" property="ChoiceInt" match="wl_key_length_array = \'([\d]);([\d]);([\d]);([\d])'.split" page="/WS_Wep.htm" group="2">
        <Choice result="1" value="1" />
        <Choice result="2" value="0" />
      </Field>
      <Field name="FourthWEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep;ssid=fourth" property="ChoiceInt" match="wl_key_length_array = \'([\d]);([\d]);([\d]);([\d])'.split" page="/WS_Wep.htm" group="3">
        <Choice result="1" value="1" />
        <Choice result="2" value="0" />
      </Field>
      <Field name="FirstWEPKEY1" type="WEPKEY1" validate="sm=wep;ssid=first" match="case &quot;wl_key1&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)' ;" group="0" />
      <Field name="FirstWEPKEY2" type="WEPKEY2" validate="sm=wep;ssid=first" match="case &quot;wl_key2&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)' ;" group="0" />
      <Field name="FirstWEPKEY3" type="WEPKEY3" validate="sm=wep;ssid=first" match="case &quot;wl_key3&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)' ;" group="0" />
      <Field name="FirstWEPKEY4" type="WEPKEY4" validate="sm=wep;ssid=first" match="case &quot;wl_key4&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)' ;" group="0" />
      <Field name="SecondWEPKEY1" type="WEPKEY1" validate="sm=wep;ssid=second" match="case &quot;wl_key1&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)' ;" group="1" />
      <Field name="SecondWEPKEY2" type="WEPKEY2" validate="sm=wep;ssid=second" match="case &quot;wl_key2&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)' ;" group="1" />
      <Field name="SecondWEPKEY3" type="WEPKEY3" validate="sm=wep;ssid=second" match="case &quot;wl_key3&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)' ;" group="1" />
      <Field name="SecondWEPKEY4" type="WEPKEY4" validate="sm=wep;ssid=second" match="case &quot;wl_key4&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)' ;" group="1" />
      <Field name="ThirdWEPKEY1" type="WEPKEY1" validate="sm=wep;ssid=third" match="case &quot;wl_key1&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)' ;" group="2" />
      <Field name="ThirdWEPKEY2" type="WEPKEY2" validate="sm=wep;ssid=third" match="case &quot;wl_key2&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)' ;" group="2" />
      <Field name="ThirdWEPKEY3" type="WEPKEY3" validate="sm=wep;ssid=third" match="case &quot;wl_key3&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)' ;" group="2" />
      <Field name="ThirdWEPKEY4" type="WEPKEY4" validate="sm=wep;ssid=third" match="case &quot;wl_key4&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)' ;" group="2" />
      <Field name="FourthWEPKEY1" type="WEPKEY1" validate="sm=wep;ssid=fourth" match="case &quot;wl_key1&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)' ;" group="3" />
      <Field name="FourthWEPKEY2" type="WEPKEY2" validate="sm=wep;ssid=fourth" match="case &quot;wl_key2&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)' ;" group="3" />
      <Field name="FourthWEPKEY3" type="WEPKEY3" validate="sm=wep;ssid=fourth" match="case &quot;wl_key3&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)' ;" group="3" />
      <Field name="FourthWEPKEY4" type="WEPKEY4" validate="sm=wep;ssid=fourth" match="case &quot;wl_key4&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)' ;" group="3" />
      <Field name="FirstSSIDWEPMODE" type="WEPMODE" validate="sm=wep;ssid=first" property="ChoiceInt" match="case &quot;wl_auth_mode&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)' ;" group="0">
        <Choice result="OPEN" value="0" />
        <Choice result="SHARED" value="1" />
      </Field>
      <Field name="SecondSSIDWEPMODE" type="WEPMODE" validate="sm=wep;ssid=second" property="ChoiceInt" match="case &quot;wl_auth_mode&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)' ;" group="1">
        <Choice result="OPEN" value="0" />
        <Choice result="SHARED" value="1" />
      </Field>
      <Field name="ThirdSSIDWEPMODE" type="WEPMODE" validate="sm=wep;ssid=third" property="ChoiceInt" match="case &quot;wl_auth_mode&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)' ;" group="2">
        <Choice result="OPEN" value="0" />
        <Choice result="SHARED" value="1" />
      </Field>
      <Field name="FourthSSIDWEPMODE" type="WEPMODE" validate="sm=wep;ssid=fourth" property="ChoiceInt" match="case &quot;wl_auth_mode&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)' ;" group="3">
        <Choice result="OPEN" value="0" />
        <Choice result="SHARED" value="1" />
      </Field>
      <Field name="FirstSSID_WPAPSK" validate="sm=wpa;ssid=first" type="WPAPASS" entity="\\(.)" match="case 0:[^;]*psk_value = '(.+)';" page="/WS_WPAPSK.htm" />
      <Field name="SecondSSID_WPAPSK" validate="sm=wpa;ssid=second" type="WPAPASS" entity="\\(.)" match="case 1:[^;]*psk_value = '(.+)';" page="/WS_WPAPSK.htm" />
      <Field name="ThirdSSID_WPAPSK" validate="sm=wpa;ssid=third" type="WPAPASS" entity="\\(.)" match="case 2:[^;]*psk_value = '(.+)';" page="/WS_WPAPSK.htm" />
      <Field name="FourthSSID_WPAPSK" validate="sm=wpa;ssid=fourth" type="WPAPASS" entity="\\(.)" match="case 3:[^;]*psk_value = '(.+)';" page="/WS_WPAPSK.htm" />
      <Field name="FirstSSIDWPATYPE" type="WPATYPE" validate="sm=wpa;ssid=first" property="ChoiceInt" match="case &quot;wl_encryp_type&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)' ;" group="0">
        <Choice result="AES" value="1" />
        <Choice result="TKIP" value="0" />
        <Choice result="TKIPAES" value="1" />
      </Field>
      <Field name="SecondSSIDWPATYPE" type="WPATYPE" validate="sm=wpa;ssid=second" property="ChoiceInt" match="case &quot;wl_encryp_type&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)' ;" group="1">
        <Choice result="AES" value="1" />
        <Choice result="TKIP" value="0" />
        <Choice result="TKIPAES" value="1" />
      </Field>
      <Field name="ThirdSSIDWPATYPE" type="WPATYPE" validate="sm=wpa;ssid=third" property="ChoiceInt" match="case &quot;wl_encryp_type&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)' ;" group="2">
        <Choice result="AES" value="1" />
        <Choice result="TKIP" value="0" />
        <Choice result="TKIPAES" value="1" />
      </Field>
      <Field name="FourthSSIDWPATYPE" type="WPATYPE" validate="sm=wpa;ssid=fourth" property="ChoiceInt" match="case &quot;wl_encryp_type&quot;:[^;]*stringall = '([\w]*);([\w]*);([\w]*);([\w]*)' ;" group="3">
        <Choice result="AES" value="1" />
        <Choice result="TKIP" value="0" />
        <Choice result="TKIPAES" value="1" />
      </Field>
      <!--No WPS Mode support-->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice result="0" />
      </Field>
    </WifiDeviceConfig>
    <!--Linksys WAP4400N HW: Rev.01 FW: 1.2.11 2.10.2009-->
    <WifiDeviceConfig title="Linksys WAP4400N" user="admin" password="admin" page="/BasicWirelessSettings.htm" server="httpd" realm="Linksys WAP4400N">
      <!--Device Information. Realm removed in favor of model check. Realm was WAP4400-->
      <Field name="routerPresentCheck" type="FOUND" required="FALSE" match="&lt;BODY BGCOLOR=&quot;#(cc9999)&quot;&gt;" skiplogin="false" page="/"></Field>
      <Field name="Postloginfind" type="FOUND" match="(Setup)" page="/Setup.htm"></Field>
      <Field type="NOOP" name="ModelCheck" match="(WAP4400N)" set="modelname=WAP4400N" page="/BasicWirelessSettings.htm">
        <!--Check to see if this is the correct router/AP by searching the page for WAP4400-->
      </Field>
      <Field name="SSID" type="SSID" match="passForm.wl_ssid.value='(.+)' ;" page="/BasicWirelessSettings.htm" entity="\\(.)">
        <!--Determine SSID-->
      </Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceInt" match="SecurityType = '([\S]*)'" page="/WirelessSecurity.htm">
        <!--Determine Security Type-->
        <Choice result="wep" value="2" set="sm=wepkey">
          <!--WEP Security-->
        </Choice>
        <Choice result="psk" value="3" set="sm=wpa;wpatype=wpapersonal">
          <!--WPA Personal-->
        </Choice>
        <Choice result="WPA2PSK" value="3" set="sm=wpa;wpatype=wpa2personal">
          <!--WPA2 Personal-->
        </Choice>
        <Choice result="WPAPSKWPA2PSK" value="3" set="sm=wpa;wpatype=wpa2personalmix">
          <!--WPA2 Peronal Mixed-->
        </Choice>
        <Choice result="wparadius" value="0" set="sm=notsupported">
          <!--WPA Enterprise-->
        </Choice>
        <Choice result="WPA2" value="0" set="sm=notsupported">
          <!--WPA2 Enterprise-->
        </Choice>
        <Choice result="WPA1WPA2" value="0" set="sm=notsupported">
          <!--WPA2 Enterprise Mixed-->
        </Choice>
        <Choice result="none" value="1" set="sm=disabled">
          <!--No security-->
        </Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wepkey" property="ChoiceInt" match="KeyLength = '([1|2])'" page="/WS_Wep.htm">
        <Choice result="1" value="1"></Choice>
        <Choice result="2" value="2"></Choice>
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wepkey" property="ChoiceValidateInt" page="/WS_Wep.htm">
        <Choice value="0"></Choice>
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wepkey" property="ChoiceInt" match="[\t]AuthMode = '([\S]*)';" page="/WS_Wep.htm">
        <!--Determine WEP mode (OPEN or SHARED)-->
        <Choice result="Open" value="0">
          <!--0 = Open System-->
        </Choice>
        <Choice result="Shared" value="1">
          <!--1 = Shared Key-->
        </Choice>
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wepkey" match="var key1 = '([\S]+)'" page="/WS_Wep.htm">
        <!--Get WEP Key 1-->
      </Field>
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wepkey" match="var key2 = '([\S]+)'" page="/WS_Wep.htm">
        <!--Get WEP Key 2-->
      </Field>
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wepkey" match="var key3 = '([\S]+)'" page="/WS_Wep.htm">
        <!--Get WEP Key 3-->
      </Field>
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wepkey" match="var key4 = '([\S]+)'" page="/WS_Wep.htm">
        <!--Get WEP Key 4-->
      </Field>
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" Property="Input" match="passForm.wl_wpa_psk_tmp.value = '(.+)' ;" entity="\\(.)" page="/WS_WPAPSK.htm">
        <!--Get WPA Password-->
      </Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa;wpatype=wpapersonal" property="ChoiceInt" match="var encryptype = '([\S]*)' ;" page="/WS_WPAPSK.htm">
        <!--Find WPA Type: AES or TKIP?-->
        <Choice result="tkip" value="0">
          <!--0 = TKIP-->
        </Choice>
        <Choice result="aes" value="1">
          <!--1 = AES-->
        </Choice>
      </Field>
      <Field name="WPATYPEMixed" type="WPATYPE" validate="sm=wpa;wpatype=wpa2personalmix" property="ChoiceValidateInt">
        <!--'AES or TKIP'-->
        <Choice value="1"></Choice>
      </Field>
      <Field name="WPA2TYPEPersonal" type="WPATYPE" validate="sm=wpa;wpatype=wpa2personal" property="ChoiceValidateInt">
        <!--'AES' only for WPA2 Personal-->
        <Choice value="1"></Choice>
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <!--WPS Not available.-->
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!-- LinkSys WRT54G2 h/w v1 v1.0.00 2.23.2009 -->
    <WifiDeviceConfig title="Linksys WRT54G2" server="Intoto Http Server" user="admin" password="admin" page="/WSecurity.htm">
      <!--realm="WRT54G2"-->
      <Field type="FOUND" name="routerPresentCheck" required="false" match="(cc9999)" skiplogin="true" page="/" />
      <Field name="ModelCheck" type="NOOP" match="&lt;B&gt;(WRT54G2)&lt;/B&gt;" set="modelname=WRT54G2" />
      <Field name="SSID" type="SSID" match="=valid_name[^;]*'SSID'[^;]*value='([^']*)'[^;]*;" page="/wireless.htm"></Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceInt" match="name=SecurityMode&gt;[^&lt;]*&lt;script language=&quot;javascript&quot;&gt;[^z]*&lt;option value='([\d])' selected&gt;">
        <Choice result="0" value="1" set="sm=disabled" />
        <Choice result="1" value="3" set="sm=wpa;wpa=wpa" />
        <Choice result="3" value="3" set="sm=wpa;wpa=wpa2" />
        <Choice result="5" value="0" set="sm=radius" />
        <Choice result="6" value="2" set="sm=wep;wps=off" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="OPTION value=[\d][\s]*selected&gt;&quot;[\S]wlansec.([\w]*)hex">
        <Choice value="2" result="twentysix" />
        <Choice value="1" result="ten" />
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="name=wl_key1 value='([\w]*)'" />
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="name=wl_key2 value='([\w]*)'" />
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="name=wl_key3 value='([\w]*)'" />
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="name=wl_key4 value='([\w]*)'" />
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" match="&lt;INPUT[^&gt;]*name=PassPhrase value='([^']*)'" />
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceInt" match="&lt;SELECT name=CipherType&gt;[^z]*&lt;option value=[\d] selected&gt;&quot;[^w]wlansec.([\w]*)[^&quot;]&quot;&lt;/OPTION&gt;&quot;">
        <Choice result="aes" value="1" />
        <Choice result="tkip" value="0" />
        <Choice result="tkipaes" value="1" />
        <Choice value="0" />
      </Field>
      <!--Checks on the WRT54G2 will keep the user from having WPS and WEP,WPA Enterprise/Radius enabled simultaneously.-->
      <Field name="wscmode" type="SET" property="Choice" match="&lt;input type=radio name='wsc_smode' value=([\d]) onclick=SelMode[^s]this.form[^b] CHECKED&gt;" page="/wireless.htm">
        <Choice result="0" value="on" />
        <Choice result="1" value="off" />
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt" match="&lt;input type=radio name='wsc_smode' value=([\d]) onclick=SelMode[^s]this.form[^b] CHECKED&gt;" page="/wireless.htm">
        <Choice validate="sm=wep" value="0">
          <!--With WEP on first & foremost WPSMODE goes to 0.-->
        </Choice>
        <Choice validate="sm=unsupported" value="0">
          <!--Any other non-supported security mode(radius/enterprise) means WPS will not work either. Also set 0.-->
        </Choice>
        <Choice validate="wscmode=on" value="3">
          <!--If Security was WPAPSK or OFF, we will report Supported & Active.-->
        </Choice>
        <Choice validate="wscmode=off" value="1">
          <!--Setting to 1 here covers a scenario where WPS was manually disabled but would work if turned on.-->
        </Choice>
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wep" page="/WAdv.htm" property="ChoiceInt" match="&lt;SELECT name='AuthType'&gt;&quot;[^&lt;];[^b]*&lt;option selected value=([\d])">
        <Choice result="1" value="1" />
        <Choice result="0" value="2" />
      </Field>
    </WifiDeviceConfig>
    <!-- LinkSys WRT54G v8.2.03 2.18.2009-->
    <WifiDeviceConfig title="Linksys WRT54G" user="admin" server="Intoto Http Server " Realm="WRT54G" password="admin" page="/WSecurity.htm">
      <Field name="routerPresentCheck" required="false" type="FOUND" match="(cc9999)" page="/" skiplogin="true"></Field>
      <Field name="ModelCheck" type="NOOP" match="&lt;B&gt;(WRT54G)&lt;/B&gt;" set="modelname=WRT54G">
        <!--Check to see if this is the correct router/AP by searching the page for WRT54G-->
      </Field>
      <Field name="Postloginfind" type="FOUND" match="&lt;B&gt;(WRT54G)&lt;/B&gt;" set="modelname=WRT54G"></Field>
      <Field name="SSID" type="SSID" match="&lt;INPUT[^&gt;]*value=&quot;([^&quot;]*)&quot;[^&gt;]*name=&quot;SSID&quot;[^&gt;]*&gt;" page="/wireless.htm">
        <!--Determine SSID-->
      </Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceInt" group="1" match="&lt;SELECT[^&gt;]*name=SecurityMode&gt;(.|\s)*value='([\d])' selected(.|\s)*&lt;/SELECT&gt;">
        <!--Determine Security Type-->
        <Choice result="0" value="1" set="sm=DISABLED">
          <!--No security-->
        </Choice>
        <Choice result="1" value="3" set="sm=WPA;wpa=wpa">
          <!--WPA Personal-->
        </Choice>
        <Choice result="3" value="3" set="sm=WPA;wpa=wpa2">
          <!--WPA2 Personal-->
        </Choice>
        <Choice result="6" value="2" set="sm=WEP">
          <!--WEP Security-->
        </Choice>
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=WEP" property="ChoiceInt" match="name='AuthType'&gt;&quot;[\S];[^z]*&lt;OPTION SELECTED value=([\d])&gt;&quot;" page="/WAdv.htm">
        <!--Determine WEP mode (Auto Key or SHARED)-->
        <Choice result="1" value="1">
          <!--1 = Shared Key-->
        </Choice>
        <Choice result="0" value="2">
          <!--0 = Auto Key-->
        </Choice>
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=WEP" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=WEP" property="ChoiceInt" match="name=wl_wep_bit[^&gt;]*&gt;&quot;\);[^g]*value=([\d]) selected" page="/WSecurity.htm">
        <!---->
        <Choice result="0" value="1"></Choice>
        <Choice result="1" value="2"></Choice>
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=WEP" match="&lt;INPUT[^&gt;]*name=wl_key1[^&gt;]*value='([\w]+)'[^&gt;]*&gt;">
        <!--Get WEP Key 1-->
      </Field>
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=WEP" match="&lt;INPUT[^&gt;]*name=wl_key2[^&gt;]*value='([\w]+)'[^&gt;]*&gt;">
        <!--Get WEP Key 2-->
      </Field>
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=WEP" match="&lt;INPUT[^&gt;]*name=wl_key3[^&gt;]*value='([\w]+)'[^&gt;]*&gt;">
        <!--Get WEP Key 3-->
      </Field>
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=WEP" match="&lt;INPUT[^&gt;]*name=wl_key4[^&gt;]*value='([\w]+)'[^&gt;]*&gt;">
        <!--Get WEP Key 4-->
      </Field>
      <Field name="WPAPASS" type="WPAPASS" validate="sm=WPA" match="&lt;INPUT[^&gt;]*name=PassPhrase[^&gt;]*value='([^']*)'[^&gt;]*&gt;">
        <!--Get WPA Password-->
      </Field>
      <Field name="WPATYPE1" type="WPATYPE" validate="sm=WPA;wpa=wpa" property="ChoiceInt" match="SecurityMode.selectedIndex==1[^\}]*&lt;SELECT name=CipherType&gt;[^\}]*&lt;option value=([\d]) selected&gt;">
        <!--Find WPA Type: AES or TKIP?-->
        <Choice result="0" value="0">
          <!--0 = TKIP-->
        </Choice>
        <Choice result="1" value="1">
          <!--1 = AES-->
        </Choice>
        <Choice value="0" />
      </Field>
      <Field name="WPATYPE2" type="WPATYPE" validate="sm=WPA;wpa=wpa2" property="ChoiceInt" match="&lt;SELECT name=CipherType&gt;[^\}]*&lt;option[\s]*value=([\d])[\s]*selected[\s]*&gt;">
        <!--Find WPA2 Type, but always set to AES (1)-->
        <Choice result="0" value="1" />
        <Choice result="1" value="1" />
        <Choice result="2" value="1" />
        <Choice value="0" />
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <!--No WPS support-->
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!-- LinkSys WRT54GL h/w v1.1 f/w v4.30.11 2.4.2009 -->
    <WifiDeviceConfig title="Linksys WRT54GL" server="httpd" realm="WRT54GL" user="admin" password="admin" page="/WL_WPATable.asp">
      <Field name="routerPresentCheck" required="false" type="FOUND" match="(cc9999)" page="/" skipLogin="true" />
      <Field name="ModelCheck" type="NOOP" match="&lt;B&gt;(WRT54GL)&lt;/B&gt;" set="modelname=WRT54GL" />
      <Field name="Postloginfind" type="FOUND" match="&lt;B&gt;(WRT54GL)&lt;/B&gt;" page="/Status_Wireless.asp"></Field>
      <Field name="SSID" type="SSID" match="&lt;span&gt;SSID:&amp;nbsp;&lt;/span&gt;&lt;/FONT&gt;&lt;/TD&gt;[^z]*height=25&gt;&lt;b&gt;&amp;nbsp;(.*)&amp;nbsp" page="/Status_Wireless.asp"></Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceInt" match="&lt;option value=&quot;([^&gt;]*)&quot; selected&gt;&lt;script&gt;">
        <Choice result="wep" value="2" set="sm=wepkey"></Choice>
        <Choice result="wpa_personal" value="3" set="sm=wpa;wpatype=wpa1personal"></Choice>
        <Choice result="wpa2_personal" value="3" set="sm=wpa;wpatype=wpa2personal"></Choice>
        <Choice result="wpa_enterprise" value="0" set="sm=notsupported"></Choice>
        <Choice result="wpa2_enterprise" value="0" set="sm=notsupported"></Choice>
        <Choice result="radius" value="0" set="sm=notsupported"></Choice>
        <Choice result="disabled" value="1" set="sm=disabled"></Choice>
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wepkey" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wepkey" property="ChoiceInt" match="name=wl_wep_bit.*\n.*\n?.*value=(\d+)\sselected" page="/WL_WPATable.asp">
        <Choice value="1" result="64"></Choice>
        <Choice value="2" result="128"></Choice>
      </Field>
      <Field name="64WEPKEY1" type="WEPKEY1" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key1[^&gt;]*value='([\w]+)'[^&gt;]*&gt;"></Field>
      <Field name="64WEPKEY2" type="WEPKEY2" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key2[^&gt;]*value='([\w]+)'[^&gt;]*&gt;"></Field>
      <Field name="64WEPKEY3" type="WEPKEY3" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key3[^&gt;]*value='([\w]+)'[^&gt;]*&gt;"></Field>
      <Field name="64WEPKEY4" type="WEPKEY4" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key4[^&gt;]*value='([\w]+)'[^&gt;]*&gt;"></Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wepkey" property="ChoiceInt" match="&lt;SELECT name=&quot;wl_auth&quot;&gt;[^M]*&lt;option value=&quot;([\d])&quot; selected&gt;&lt;script&gt;Capture" page="/Wireless_Advanced.asp">
        <Choice result="1" value="1">
          <!--1 = Shared Key-->
        </Choice>
        <Choice result="0" value="2">
          <!--0 = Auto Key-->
        </Choice>
      </Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceInt" match="&lt;SELECT name=wl_crypto&gt;[^&gt;]*&lt;script&gt;[^&gt;]*var enc = '([\S]*)';">
        <Choice value="1" result="aes" />
        <Choice value="0" result="tkip" />
        <Choice value="1" result="tkip+aes" />
        <Choice value="1" result="tkip aes" />
      </Field>
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" match="&lt;INPUT[^&gt;]*name=wl_wpa_psk value='(.*)'"></Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
    </WifiDeviceConfig>
    <!-- LinkSys WRT54GS h/w V4 f/w v1.05.2 2.23.2009 JRO-->
    <WifiDeviceConfig title="Linksys WRT54GS" server="httpd" user="admin" password="admin" page="/WL_WPATable.asp">
      <!--realm="WRT54GSV4"-->
      <!--Newer Hardware Revs may be appended to the product name. May not work for those but will try. this XML created with WRT54GSV4-->
      <Field name="preloginfind" type="FOUND" skiplogin="true" match="(cc9999)" page="/" required="false"></Field>
      <Field name="postloginfind" type="FOUND" match="&lt;B&gt;(WRT54GS)[\S]*&lt;/B&gt;"></Field>
      <Field name="ModelCheck" type="NOOP" match="&lt;B&gt;(WRT54GS)[\S]*&lt;/B&gt;" set="modelname=WRT54GS"></Field>
      <Field name="SSID" type="SSID" match="value='([^']*)'[^&gt;]*name=&quot;wl_ssid&quot;" page="/Wireless_Basic.asp"></Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceInt" match="&lt;option value=&quot;([^&gt;]*)&quot; selected&gt;&lt;script&gt;">
        <Choice result="wep" value="2" set="sm=wepkey"></Choice>
        <Choice result="wpa_personal" value="3" set="sm=wpa;wpatype=wpa1personal"></Choice>
        <Choice result="wpa2_personal" value="3" set="sm=wpa;wpatype=wpa2personal"></Choice>
        <Choice result="wpa_enterprise" value="0" set="sm=notsupported"></Choice>
        <Choice result="wpa2_enterprise" value="0" set="sm=notsupported"></Choice>
        <Choice result="radius" value="0" set="sm=notsupported"></Choice>
        <Choice result="disabled" value="1" set="sm=disabled"></Choice>
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wepkey" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wepkey" property="ChoiceInt" match="//keyMode\(([\d]*)\);">
        <Choice value="1" result="64"></Choice>
        <Choice value="2" result="128"></Choice>
      </Field>
      <Field name="64WEPKEY1" type="WEPKEY1" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key1[^&gt;]*value='([\w]+)'[^&gt;]*&gt;"></Field>
      <Field name="64WEPKEY2" type="WEPKEY2" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key2[^&gt;]*value='([\w]+)'[^&gt;]*&gt;"></Field>
      <Field name="64WEPKEY3" type="WEPKEY3" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key3[^&gt;]*value='([\w]+)'[^&gt;]*&gt;"></Field>
      <Field name="64WEPKEY4" type="WEPKEY4" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key4[^&gt;]*value='([\w]+)'[^&gt;]*&gt;"></Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wepkey" property="ChoiceInt" match="&lt;SELECT name=&quot;wl_auth&quot;&gt;[^M]*&lt;option value=&quot;([\d])&quot; selected&gt;&lt;script&gt;Capture" page="/Wireless_Advanced.asp">
        <Choice result="1" value="1">
          <!--1 = Shared Key-->
        </Choice>
        <Choice result="0" value="2">
          <!--0 = Auto Key-->
        </Choice>
      </Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceInt" match="&lt;SELECT name=wl_crypto&gt;[^&gt;]*&lt;script&gt;[^&gt;]*var enc = '([\S]*)';">
        <Choice value="1" result="aes" />
        <Choice value="0" result="tkip" />
        <Choice value="1" result="tkip+aes" />
        <Choice value="1" result="tkip aes" />
      </Field>
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" match="&lt;INPUT[^&gt;]*name=wl_wpa_psk value='([^']*)'"></Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
    </WifiDeviceConfig>
    <!-- LinkSys WRT110 1.0.02 2.5.2009-->
    <WifiDeviceConfig title="Linksys WRT110" server="httpd" realm="WRT110" user="admin" password="admin" page="/WirelessSecurity.htm">
      <Field name="routerPresentCheck" required="false" type="FOUND" match="(cc9999)" page="/" skiplogin="true"></Field>
      <Field name="ModelCheck" type="NOOP" match="&lt;b&gt;(WRT110)&lt;/b&gt;" set="modelname=WRT110" skiplogin="true"></Field>
      <Field name="Postloginfind" type="FOUND" match="&lt;B&gt;(WRT110)&lt;/B&gt;"></Field>
      <Field name="SSID" type="SSID" match="WirelessMode == '5'[^&gt;]*replacespace[\S]&quot;(.+)&quot;" page="/StatusWireless.htm"></Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceInt" match="var SecurityType_g = '([\S]*)'">
        <Choice result="wep" value="2" set="sm=WEP" />
        <Choice result="none" value="1" set="sm=DISABLED" />
        <Choice result="psk" value="3" set="sm=WPA;wpa=wpa">
          <!--WPA Personal-->
        </Choice>
        <Choice result="WPA1WPA2" value="3" set="sm=WPA;wpa=wpa2">
          <!--WPA2 Personal, TKIP or AES-->
        </Choice>
        <Choice result="WPA2" value="3" set="sm=WPA;wpa=wpa2">
          <!--WPA2 Personal, AES-->
        </Choice>
        <Choice result="wparadius" value="0" set="sm=wpa2enterprise" />
        <Choice result="radius" value="0" set="sm=radius"></Choice>
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=WEP" property="ChoiceInt" match="var auth_type='([\w]*)'" page="/AdvancedWirelessSettings.htm">
        <Choice result="SHARED" value="1">
          <!--1 = Shared Key-->
        </Choice>
        <Choice result="WEPAUTO" value="2">
          <!--1 = Auto Key-->
        </Choice>
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=WEP" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=WEP" property="ChoiceInt" match="wl_key_length = '(\d+)'" page="/WS_Wep.htm">
        <Choice result="40" value="1"></Choice>
        <Choice result="104" value="2"></Choice>
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=WEP" match="var key1 = '([\w]*)';" page="/WS_Wep.htm"></Field>
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=WEP" match="var key2 = '([\w]*)';" page="/WS_Wep.htm"></Field>
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=WEP" match="var key3 = '([\w]*)';" page="/WS_Wep.htm"></Field>
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=WEP" match="var key4 = '([\w]*)';" page="/WS_Wep.htm"></Field>
      <!--Prefaces special characters in the passkey with the "\" entity attribute removes them-->
      <Field name="WPAPASS" type="WPAPASS" validate="sm=WPA" match="wl_wpa_psk.value = '(.+)'" entity="\\(.)" page="/WS_WPAPSK.htm" />
      <Field name="WPATYPE1" type="WPATYPE" validate="sm=WPA;wpa=wpa" property="ChoiceInt" match="var encryptype = '([\d])'" page="/WS_WPAPSK.htm">
        <Choice result="0" value="1" />
        <Choice result="1" value="0" />
      </Field>
      <Field name="WPATYPE2" type="WPATYPE" validate="sm=WPA;wpa=wpa2" property="ChoiceValidateInt">
        <Choice value="1" />
      </Field>
      <!-- router does not support WPSMODE - set default of No WPS -->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!--Linksys WRT150N v1.01.9 2.23.2009 -->
    <WifiDeviceConfig title="Linksys WRT150N" server="httpd" realm="WRT150N" user="admin" password="admin" page="/WL_WPATable.asp">
      <Field name="routerPresentCheck" required="false" type="FOUND" match="(cc9999)" page="/" skipLogin="true">
        <!---->
      </Field>
      <Field name="ModelCheck" type="NOOP" match="&lt;B&gt;(WRT150N)&lt;/B&gt;" set="modelname=WRT150N">
        <!--Check the model by searching the page for WRT150N-->
      </Field>
      <Field name="Postloginfind" type="FOUND" match="&lt;B&gt;(WRT150N)&lt;/B&gt;" set="modelname=WRT150N">
        <!--Check the model by searching the page for WRT150N-->
      </Field>
      <Field name="SSID" type="SSID" match="value='(.+)' name=&quot;wl_ssid&quot;" page="/Wireless_Basic.asp">
        <!--Get the SSID-->
      </Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceInt" match="var security_mode2 = '([\S]*)';">
        <!--Determine the Security mode-->
        <Choice result="wep" value="2" set="sm=wepkey">
          <!--Wep-->
        </Choice>
        <Choice result="wpa_personal" value="3" set="sm=wpa;wpatype=wpa1personal">
          <!--WPA Personal-->
        </Choice>
        <Choice result="wpa2_personal" value="3" set="sm=wpa;wpatype=wpa2personal">
          <!--WPA2 Personal-->
        </Choice>
        <Choice result="wpa_enterprise" value="0" set="sm=notsupported">
          <!--WPA Enterprise - Not Supported-->
        </Choice>
        <Choice result="wpa2_enterprise" value="0" set="sm=notsupported">
          <!--WPA2 Enterprise - Not Supported-->
        </Choice>
        <Choice result="radius" value="0" set="sm=notsupported">
          <!--RADIUS - Not supported-->
        </Choice>
        <Choice result="disabled" value="1" set="sm=disabled">
          <!--No security-->
        </Choice>
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wepkey" property="ChoiceValidateInt">
        <!---->
        <Choice value="0"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wepkey" property="ChoiceInt" match="//keyMode\(([\d]*)\);" page="/WL_WPATable.asp">
        <Choice value="1" result="64"></Choice>
        <Choice value="2" result="128"></Choice>
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wepkey" property="ChoiceInt" match="var wl_auth = '([\S])';" page="/Wireless_Advanced.asp">
        <!--Find WEP mode, Shared / Auto Key -->
        <Choice result="1" value="1">
          <!--1 = Shared Key-->
        </Choice>
        <Choice result="0" value="2">
          <!--0 = Auto Key-->
        </Choice>
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key1[^&gt;]*value='([\S]+)'[^&gt;]*&gt;">
        <!--Get WEP Key 1-->
      </Field>
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key2[^&gt;]*value='([\S]+)'[^&gt;]*&gt;">
        <!--Get WEP Key 2-->
      </Field>
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key3[^&gt;]*value='([\S]+)'[^&gt;]*&gt;">
        <!--Get WEP Key 3-->
      </Field>
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key4[^&gt;]*value='([\S]+)'[^&gt;]*&gt;">
        <!--Get WEP Key 4-->
      </Field>
      <Field name="WPAPASS" page="/WL_WPATable.asp" type="WPAPASS" validate="sm=wpa" Property="Input" match="&lt;TD class=FUNFIELD&gt;&lt;INPUT[^&gt;]*name=wl_wpa_psk value='([^']*)'">
        <!--Get WPA Password-->
      </Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa;wpatype=wpa1personal" property="ChoiceInt" match="&lt;SELECT name=wl_crypto &gt;[^&gt;]*&lt;script&gt;[^&gt;]*var enc = '([\S]*)';">
        <!--Determine WPA type for WPA Personal-->
        <Choice value="1" result="aes"></Choice>
        <Choice value="0" result="tkip"></Choice>
      </Field>
      <Field name="WPA2TYPE" type="WPATYPE" validate="sm=wpa;wpatype=wpa2personal" property="ChoiceInt" match="&lt;SELECT name=wl_crypto &gt;[^&gt;]*&lt;script&gt;[^&gt;]*var enc = '([^']*)">
        <!--Determine WPA type for WPA2 Personal-->
        <Choice value="1" result="aes" />
        <Choice value="0" result="tkip"></Choice>
        <Choice value="1" result="tkip aes"></Choice>
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <!--No WPSMODE support on WRT150N.-->
        <Choice value="0"></Choice>
      </Field>
    </WifiDeviceConfig>
    <!-- Linksys WRT160N v1.02.2 2.18.2009-->
    <WifiDeviceConfig title="Linksys WRT160N" server="httpd" realm="WRT160N" user="admin" password="admin" page="/WL_WPATable.asp">
      <Field name="Preloginfind" type="FOUND" match="(cc9999)" required="false" skiplogin="true" />
      <Field name="PostLoginFind" type="FOUND" match="&lt;B&gt;(WRT160N)&lt;/B&gt;" />
      <Field name="ModelCheck" type="NOOP" match="&lt;B&gt;(WRT160N)&lt;/B&gt;" set="modelname=WRT160N" />
      <Field name="SSID" type="SSID" match="Capture[^/]wlansetup.ssid[^&gt;]&lt;/script&gt;:&lt;/td&gt;[^&gt;]*&lt;TD class=FUNFIELD&gt;&lt;B&gt;(.+)&lt;/B&gt;" page="/Status_Wireless.asp"></Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceInt" match="var security_mode2 = '([\w]*)';">
        <Choice result="wep" value="2" set="sm=wepkey"></Choice>
        <Choice result="wpa_personal" value="3" set="sm=wpa;wpatype=wpa1personal"></Choice>
        <Choice result="wpa2_personal" value="3" set="sm=wpa;wpatype=wpa2personal"></Choice>
        <Choice result="disabled" value="1" set="sm=disabled"></Choice>
        <Choice result="wpa_enterprise" value="0" set="sm=notsupported"></Choice>
        <Choice result="wpa2_enterprise" value="0" set="sm=notsupported"></Choice>
        <Choice result="radius" value="0" set="sm=notsupported"></Choice>
      </Field>
      <Field type="WEPMODE" name="WEPMODE" validate="sm=wepkey" property="ChoiceInt" match="var wl_auth = '([\w])';" page="/Wireless_Advanced.asp">
        <Choice result="1" value="1">
          <!--1 = Shared Key-->
        </Choice>
        <Choice result="0" value="2">
          <!--0 = Auto Key-->
        </Choice>
      </Field>
      <Field type="WEPKEYTYPE" name="WEPKEYTYPE" validate="sm=wepkey" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <Field type="WEPSTRENGTH" name="WEPSTRENGTH" property="ChoiceInt" validate="sm=wepkey" match="//keyMode\(([\d]*)\);">
        <Choice value="2" result="128"></Choice>
        <Choice value="1" result="64"></Choice>
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key1[^&gt;]*value='([\w]+)'[^&gt;]*&gt;"></Field>
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key2[^&gt;]*value='([\w]+)'[^&gt;]*&gt;"></Field>
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key3[^&gt;]*value='([\w]+)'[^&gt;]*&gt;"></Field>
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key4[^&gt;]*value='([\w]+)'[^&gt;]*&gt;"></Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa;wpatype=wpa1personal" property="ChoiceInt" match="&lt;SELECT name=wl_crypto &gt;[^&gt;]*&lt;script&gt;[^&gt;]*var enc = '([\w]*)';">
        <Choice value="1" result="aes" />
        <Choice value="0" result="tkip" />
      </Field>
      <Field name="WPA2TYPE" type="WPATYPE" validate="sm=wpa;wpatype=wpa2personal" property="ChoiceInt" match="&lt;SELECT name=wl_crypto &gt;[^&gt;]*&lt;script&gt;[^&gt;]*var enc = '([^']*)">
        <Choice value="1" result="aes" />
        <Choice value="1" result="tkip+aes">
          <!--Set to AES when the router allows either.-->
        </Choice>
        <Choice value="1" result="tkip aes">
          <!--Set to AES when the router allows either.-->
        </Choice>
        <Choice value="0" result="tkip" />
      </Field>
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" Property="Input" match="&lt;TD class=FUNFIELD&gt;&lt;INPUT[^&gt;]*name=wl_wpa_psk value='(.+)'"></Field>
      <Field name="wpsenable" type="SET" property="Choice" match="MAINFUN,wlantopmenu.([\w]*)" page="/Wireless_Basic.asp">
        <Choice result="basicset" value="no"></Choice>
        <Choice result="wsc" value="yes"></Choice>
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice validate="sm=wepkey" value="0"></Choice>
        <Choice validate="sm=notsupported" value="0"></Choice>
        <Choice validate="wpsenable=yes" value="3"></Choice>
        <Choice validate="wpsenable=no" value="1"></Choice>
      </Field>
    </WifiDeviceConfig>
    <!--Linksys WRT300N H/W V1 f/w v0.93.3 2.5.2009-->
    <WifiDeviceConfig title="Linksys WRT300N" user="admin" password="admin" server="httpd" realm="WRT300N" page="/WL_WPATable.asp">
      <Field name="routerPresentCheck" required="false" type="FOUND" match="(cc9999)" PAGE="/" skiplogin="true"></Field>
      <Field name="ModelCheck" type="NOOP" match="&lt;B&gt;(WRT300N)&lt;/B&gt;" set="modelname=WRT300N"></Field>
      <Field name="Postloginfind" type="FOUND" match="&lt;B&gt;(WRT300N)&lt;/B&gt;"></Field>
      <Field name="SSID" type="SSID" match="value='(.*)' name=&quot;wl_ssid&quot;" page="/Wireless_Basic.asp"></Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceInt" match="var security_mode2 = '([\S]*)';">
        <Choice result="wep" value="2" set="sm=wepkey"></Choice>
        <Choice result="wpa_personal" value="3" set="sm=wpa;wpatype=wpa1personal"></Choice>
        <Choice result="wpa2_personal" value="3" set="sm=wpa;wpatype=wpa2personal"></Choice>
        <Choice result="wpa_enterprise" value="0" set="sm=notsupported">
          <!--Support for WPA & WPA2 Enterprise?-->
        </Choice>
        <Choice result="wpa2_enterprise" value="0" set="sm=notsupported"></Choice>
        <Choice result="radius" value="0" set="sm=notsupported"></Choice>
        <Choice result="disabled" value="1" set="sm=disabled"></Choice>
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wepkey" property="ChoiceInt" match="var wl_auth = '([\S])';" page="/Wireless_Advanced.asp">
        <Choice result="1" value="1"></Choice>
        <Choice result="0" value="2"></Choice>
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wepkey" property="ChoiceValidateInt" page="/Wireless_Advanced.asp">
        <Choice value="0"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wepkey" property="ChoiceInt" match="wl_wep_bit = '(\d+)'" page="/WL_WPATable.asp">
        <!---->
        <Choice result="64" value="1"></Choice>
        <Choice result="128" value="2"></Choice>
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key1[^&gt;]*value='([\S]+)'[^&gt;]*&gt;"></Field>
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key2[^&gt;]*value='([\S]+)'[^&gt;]*&gt;"></Field>
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key3[^&gt;]*value='([\S]+)'[^&gt;]*&gt;"></Field>
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key4[^&gt;]*value='([\S]+)'[^&gt;]*&gt;"></Field>
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" match="name=wl_wpa_psk value='(.+)' maxlength=64"></Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceInt" match="&lt;SELECT name=wl_crypto &gt;[^&gt;]*&lt;script&gt;[^&gt;]*var enc = '([\S]*)';">
        <Choice result="aes" value="1" />
        <Choice result="tkip" value="0" />
        <Choice result="tkip+aes" value="1" />
        <Choice result="tkip aes" value="1" />
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!-- LinkSys WRT310N v1.00.1 2.13.2009-->
    <WifiDeviceConfig title="Linksys WRT310N" realm="WRT310N" server="httpd" user="admin" password="admin" page="/WL_WPATable.asp">
      <Field name="PreLoginfound" type="FOUND" match="&lt;BODY BGCOLOR=&quot;#(cc9999)&quot;&gt;&lt;H4&gt;401 Unauthorized&lt;/H4&gt;" page="/" required="false" skiplogin="true" />
      <Field name="ModelCheck" type="NOOP" match="&lt;B&gt;(WRT310N)&lt;/B&gt;" set="modelname=WRT310N" />
      <Field name="PostLoginFound" type="FOUND" match="&lt;B&gt;(WRT310N)&lt;/B&gt;" />
      <Field name="SSID" type="SSID" match="Capture[^/]wlansetup.ssid[^&gt;]&lt;/script&gt;:&lt;/td&gt;[^&gt;]*&lt;TD class=FUNFIELD&gt;&lt;B&gt;([^&lt;]*)&lt;/B&gt;" page="/Status_Wireless.asp"></Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceInt" match="var security_mode2 = '([\w]*)';">
        <Choice result="wep" value="2" set="sm=wepkey"></Choice>
        <Choice result="wpa_personal" value="3" set="sm=wpa;wpatype=wpa1personal"></Choice>
        <Choice result="wpa2_personal" value="3" set="sm=wpa;wpatype=wpa2personal"></Choice>
        <Choice result="disabled" value="1" set="sm=disabled"></Choice>
        <Choice result="wpa_enterprise" value="0" set="sm=notsupported"></Choice>
        <Choice result="wpa2_enterprise" value="0" set="sm=notsupported"></Choice>
        <Choice result="radius" value="0" set="sm=notsupported"></Choice>
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wepkey" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wepkey" property="ChoiceInt" match="//keyMode\(([\d]*)\);">
        <Choice result="64" value="1"></Choice>
        <Choice result="128" value="2"></Choice>
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wepkey" property="ChoiceInt" match="var wl_auth = '([\w])';" page="/Wireless_Advanced.asp">
        <Choice result="1" value="1">
          <!--1 = Shared Key-->
        </Choice>
        <Choice result="0" value="2">
          <!--0 = Auto Key-->
        </Choice>
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key1[^&gt;]*value='([\w]+)'[^&gt;]*&gt;"></Field>
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key2[^&gt;]*value='([\w]+)'[^&gt;]*&gt;"></Field>
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key3[^&gt;]*value='([\w]+)'[^&gt;]*&gt;"></Field>
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key4[^&gt;]*value='([\w]+)'[^&gt;]*&gt;"></Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa;wpatype=wpa1personal" property="ChoiceInt" match="&lt;SELECT name=wl_crypto &gt;[^&gt;]*&lt;script&gt;[^&gt;]*var enc = '([\w]*)';">
        <Choice value="1" result="aes" />
        <Choice value="0" result="tkip" />
      </Field>
      <Field name="WPA2TYPE" type="WPATYPE" validate="sm=wpa;wpatype=wpa2personal" property="ChoiceInt" match="&lt;SELECT name=wl_crypto &gt;[^&gt;]*&lt;script&gt;[^&gt;]*var enc = '([^']*)">
        <Choice value="1" result="aes" />
        <Choice value="1" result="tkip+aes">
          <!--Set to AES when the router allows either.-->
        </Choice>
        <Choice value="1" result="tkip aes">
          <!--Set to AES when the router allows either.-->
        </Choice>
        <Choice value="0" result="tkip" />
      </Field>
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" Property="Input" match="&lt;TD class=FUNFIELD&gt;&lt;INPUT[^&gt;]*name=wl_wpa_psk value='(.+)' maxlength="></Field>
      <Field name="wlantop" type="SET" match="MAINFUN,wlantopmenu.([\w]*)" page="/Wireless_Basic.asp"></Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt" match="MAINFUN,wlantopmenu.([\w]*)" page="/Wireless_Basic.asp">
        <Choice validate="sm=wepkey" value="0"></Choice>
        <Choice validate="sm=notsupported" value="0"></Choice>
        <Choice validate="wlantop=basicset" value="1"></Choice>
        <Choice validate="wlantop=wsc" value="3"></Choice>
      </Field>
    </WifiDeviceConfig>
    <!-- LinkSys WRT350N f/w v1.03.2 2.4.2009-->
    <WifiDeviceConfig title="Linksys WRT350N" server="httpd" realm="WRT350N" user="admin" password="admin" page="/WL_WPATable.asp">
      <Field name="PreLoginFind" type="FOUND" required="false" skiplogin="true" match="(cc9999)" />
      <Field name="ModelCheck" type="NOOP" match="&lt;B&gt;(WRT350N)&lt;/B&gt;" set="modelname=WRT350N" />
      <Field name="PreLoginFind" type="FOUND" match="&lt;B&gt;(WRT350N)&lt;/B&gt;" />
      <Field name="SSID" type="SSID" match="value='([^']*)' name=&quot;wl_ssid&quot;" page="/Wireless_Basic.asp"></Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceInt" match="var security_mode2 = '([^']*)';">
        <Choice result="wep" value="2" set="sm=wepkey"></Choice>
        <Choice result="wpa_personal" value="3" set="sm=wpa;wpatype=wpa1personal"></Choice>
        <Choice result="wpa2_personal" value="3" set="sm=wpa;wpatype=wpa2personal"></Choice>
        <Choice result="disabled" value="1" set="sm=disabled"></Choice>
        <Choice value="0" set="sm=unsupported"></Choice>
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wepkey" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wepkey" property="ChoiceInt" match="//keyMode\(([\d]*)\);">
        <Choice result="128" value="2"></Choice>
        <Choice result="64" value="1"></Choice>
      </Field>
      <Field name="64WEPKEY1" type="WEPKEY1" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key1[^&gt;]*value='([\w]+)'[^&gt;]*&gt;"></Field>
      <Field name="64WEPKEY2" type="WEPKEY2" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key2[^&gt;]*value='([\w]+)'[^&gt;]*&gt;"></Field>
      <Field name="64WEPKEY3" type="WEPKEY3" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key3[^&gt;]*value='([\w]+)'[^&gt;]*&gt;"></Field>
      <Field name="64WEPKEY4" type="WEPKEY4" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl_key4[^&gt;]*value='([\w]+)'[^&gt;]*&gt;"></Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wepkey" property="ChoiceInt" match="var wl_auth = '([\d])';" page="/Wireless_Advanced.asp">
        <Choice result="1" value="1">
          <!--1 = Shared Key-->
        </Choice>
        <Choice result="0" value="2">
          <!--0 = Auto Key-->
        </Choice>
      </Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceInt" match="var enc = '([^']*)';">
        <Choice value="0" result="tkip" />
        <Choice value="1" result="aes" />
        <Choice value="1" result="tkip+aes" />
        <Choice value="1" result="tkip aes" />
        <Choice value="1">
          <!--This router only allows TKIP only for psk personal security select.-->
        </Choice>
      </Field>
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" match="&lt;INPUT[^&gt;]*name=wl_wpa_psk value='(.+)'"></Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
    </WifiDeviceConfig>
    <!--Linksys WRT610N 1.00.00 B18 2.18.2009 -->
    <WifiDeviceConfig title="Linksys WRT610N" server="httpd" realm="WRT610N" user="admin" password="admin" page="/WL_WPATable.asp">
      <Field name="routerPresentCheck" required="false" type="FOUND" match="(cc9999)" page="/" skipLogin="true"></Field>
      <Field name="ModelCheck" type="NOOP" match="productname[^8]*[^&lt;]*&lt;B&gt;(WRT610N)&lt;/B&gt;" set="modelname=WRT610N"></Field>
      <Field name="Postloginfind" type="FOUND" match="productname[^8]*[^&lt;]*&lt;B&gt;(WRT610N)&lt;/B&gt;" set="modelname=WRT610N"></Field>
      <Field name="SSID" type="SSID" match="start 2.4G wireless [^q]*wlansetup.ssid[\S]&lt;/script&gt;[^h]*[^&amp;]*&amp;nbsp;(.*)&amp;nbsp" page="/Status_Wireless.asp"></Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceInt" match="2.4G wireless setting over [^q]*var security_mode = '([\w]*)';[^q]*&lt;/select&gt;">
        <Choice result="wep" value="2" set="sm=wepkey"></Choice>
        <Choice result="wpa_personal" value="3" set="sm=wpa;wpatype=wpa1personal;24ghz=wpsenabled"></Choice>
        <Choice result="wpa2_personal" value="3" set="sm=wpa;wpatype=wpa2personal;24ghz=wpsenabled"></Choice>
        <Choice result="disabled" value="1" set="sm=disabled;24ghz=wpsenabled"></Choice>
        <Choice result="wpa_enterprise" value="0" set="sm=notsupported;"></Choice>
        <Choice result="wpa2_enterprise" value="0" set="sm=notsupported"></Choice>
        <Choice result="radius" value="0" set="sm=notsupported"></Choice>
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wepkey" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wepkey" property="ChoiceInt" match="wl0_wep_bit\s=\s'(\d+)'" page="/WL_WPATable.asp">
        <Choice result="64" value="1"></Choice>
        <Choice result="128" value="2"></Choice>
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wepkey" property="ChoiceInt" match="name=&quot;wl0_auth_type&quot;[^q]*var wl_auth = '([\d])'" page="/Wireless_Advanced.asp">
        <Choice result="1" value="0">
          <!--1 = Open System-->
        </Choice>
        <Choice result="2" value="1">
          <!--2 = Shared Key-->
        </Choice>
        <Choice result="0" value="2">
          <!--0 = Auto Key-->
        </Choice>
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl0_key1[^&gt;]*value='(.*)'&gt;&lt;/td&gt;"></Field>
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl0_key2[^&gt;]*value='(.*)'&gt;&lt;/td&gt;"></Field>
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl0_key3[^&gt;]*value='(.*)'&gt;&lt;/td&gt;"></Field>
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wepkey" match="&lt;INPUT[^&gt;]*name=wl0_key4[^&gt;]*value='(.*)'&gt;&lt;/td&gt;"></Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa;wpatype=wpa1personal" property="ChoiceInt" match="&lt;SELECT name=wl0_crypto &gt;[^&gt;]*&lt;script&gt;[^&gt;]*var enc = '([\w]*)';">
        <Choice value="1" result="aes" />
        <Choice value="0" result="tkip" />
      </Field>
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" Property="Input" match="name=wl0_wpa_psk value='(.*)' "></Field>
      <!--The + in "tkip+aes" match is not being parsed with Nov 24 Webtester. Replaced with a space.-->
      <Field name="WPA2TYPE" type="WPATYPE" validate="sm=wpa;wpatype=wpa2personal" property="ChoiceInt" match="&lt;SELECT name=wl0_crypto &gt;[^&gt;]*&lt;script&gt;[^&gt;]*var enc = '([^']*)">
        <Choice value="1" result="aes" />
        <Choice value="1" result="tkip+aes">
          <!--Set to AES when the router allows either.-->
        </Choice>
        <Choice value="1" result="tkip aes">
          <!--Set to AES when the router allows either.-->
        </Choice>
        <Choice value="0" result="tkip" />
      </Field>
      <!--Set WPSMODE to supported even if it will not work for 2.4ghz settings.-->
      <Field name="wpsis" type="SET" property="Choice" match="str = wlantopmenu.([\w]*)" page="/Wireless_Basic.asp">
        <Choice result="basicset" value="off"></Choice>
        <Choice result="wsc" value="on"></Choice>
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt" match="str = wlantopmenu.([\w]*)" page="/Wireless_Basic.asp">
        <Choice validate="sm=wepkey" value="0"></Choice>
        <Choice validate="sm=notsupported" value="0"></Choice>
        <Choice validate="wpsis=off" value="1"></Choice>
        <Choice validate="wpsis=on" value="3"></Choice>
      </Field>
    </WifiDeviceConfig>
    <!-- Netgear WG102 F/W V4.0.16NA 2.9.2009-->
    <WifiDeviceConfig title="Netgear WG102" realm="WG102" secure="true" server="Rapid Logic/1.1" user="admin" password="password" page="/pro_def.htm?vap=0">
      <Field type="FOUND" name="routerPresentCheck" required="false" match="(401 Not Authorized)" skiplogin="false" page="/" />
      <Field type="SET" name="modelName" property="Input" match="content=&quot;(WG102_[^&quot;]*)&quot;&gt;" page="/info.htm" />
      <Field name="Postloginfind" type="FOUND" match="(WG102)" page="/start.htm"></Field>
      <Field name="SSID" type="SSID" match="&lt;input[^&gt;]*NAME=&quot;szSsid_11g&quot;[^&gt;]*VALUE=&quot;([^&quot;]*)&quot;&gt;" page="/pro_def.htm?vap=0" />
      <!--Will ONLY retrieve settings for the first SSID/VAP. Even if it is not enabled.-->
      <Field type="SET" name="netauth" match="ChangeEncryptList\(\)'&gt;[^&quot;]*&lt;OPTION value=([\d]*) SELECTED&gt;([^&lt;]*)&lt;/OPTION&gt;" page="/pro_def.htm?vap=0" property="Choice">
        <Choice result="0" value="open" />
        <Choice result="1" value="shared" />
        <Choice result="100" value="802" />
        <Choice result="102" value="wpapsk" />
        <Choice result="101" value="wparadius" />
        <Choice result="202" value="wpa2psk" />
        <Choice result="302" value="wpa2psk" />
        <Choice result="201" value="wpa2radius" />
        <Choice result="301" value="wpa2radius" />
      </Field>
      <Field type="SET" name="dataenc" match="setwep\(\)'&gt;[^&quot;]*&lt;OPTION value=([\d]*) SELECTED&gt;([^&lt;]*)&lt;/OPTION&gt;" page="/pro_def.htm?vap=0" property="Choice">
        <Choice result="0" value="none" />
        <Choice result="40" value="64bit" />
        <Choice result="104" value="128bit" />
        <Choice result="128" value="152bit" />
        <Choice result="99" value="tkip" />
        <Choice result="100" value="aes" />
        <Choice result="255" value="aes" />
      </Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="netauth=open;dataenc=none" value="1" set="sm=none" />
        <Choice validate="netauth=open;dataenc=64bit" value="2" set="sm=wep;wepmode=open" />
        <Choice validate="netauth=open;dataenc=128bit" value="2" set="sm=wep;wepmode=open" />
        <Choice validate="netauth=open;dataenc=152bit" value="2" set="sm=wep;wepmode=open">
          <!--Might not be able to support 152 bit wep keys?-->
        </Choice>
        <Choice validate="netauth=shared" value="2" set="sm=wep;wepmode=shared" />
        <Choice validate="netauth=wpapsk" value="3" set="sm=wpa;wpatype=tkip" />
        <Choice validate="netauth=wpa2psk" value="3" set="sm=wpa;wpatype=aes" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WEPMODESET" type="WEPMODE" property="ChoiceValidateInt" validate="sm=wep">
        <Choice validate="wepmode=shared" value="1" />
        <Choice validate="wepmode=open" value="0" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" property="ChoiceValidateInt" validate="sm=wep">
        <Choice value="0" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" property="ChoiceInt" validate="sm=wep" match="&lt;OPTION value=([\d]*) SELECTED&gt;[64&amp;#32;bits|128&amp;#32;bits]" page="/pro_def.htm?vap=0">
        <Choice value="1" result="40" />
        <Choice value="2" result="104" />
      </Field>
      <!--Asterisks appear for WEP & WPA keys.-->
      <Field name="WEPKEY1" type="WEPKEY1" property="ChoiceValidate" validate="sm=wep">
        <Choice value="" />
      </Field>
      <Field name="WEPKEY2" type="WEPKEY2" property="ChoiceValidate" validate="sm=wep">
        <Choice value="" />
      </Field>
      <Field name="WEPKEY3" type="WEPKEY3" property="ChoiceValidate" validate="sm=wep">
        <Choice value="" />
      </Field>
      <Field name="WEPKEY4" type="WEPKEY4" property="ChoiceValidate" validate="sm=wep">
        <Choice value="" />
      </Field>
      <Field name="WPATYPE" type="WPATYPE" property="ChoiceValidateInt" validate="sm=wpa">
        <Choice validate="netauth=wpapsk" value="0" />
        <Choice value="1" />
      </Field>
      <Field name="WPAPASS" type="WPAPASS" property="ChoiceValidate" validate="sm=wpa">
        <Choice value="" />
      </Field>
      <!--WPSMODE is not supported on WG102-->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!--Netgear WNR2000 V1.1.2.6NA 2.18.2009-->
    <WifiDeviceConfig title="Netgear WNR2000" server="Boa/0.94.11" realm="NETGEAR WNR2000" user="admin" password="password" page="/cgi-bin/wlan.html">
      <Field name="PreLoginFind1" type="FOUND" set="plf=1" match="&lt;meta http-equiv=&quot;Refresh&quot; content=&quot;0; url=/cgi-bin/check_(hijack).html&quot;&gt;" required="false" skiplogin="true" page="/" />
      <Field name="PreLoginFind2" type="FOUND" set="plf=2" match="&lt;meta http-equiv=&quot;Refresh&quot; content=&quot;0; url=/cgi-bin/check_(hj).html&quot;&gt;" required="false" skiplogin="true" page="/" />
      <Field name="modelname" type="SET" match="&lt;TITLE&gt;(WNR2000)&lt;/TITLE&gt;" page="/cgi-bin/menu.html" />
      <Field name="PostLoginFound" type="FOUND" match="&lt;TITLE&gt;(WNR2000)&lt;/TITLE&gt;" page="/cgi-bin/menu.html" />
      <Field name="SSID1" type="SSID" validate="plf=1" match="form.wlan_ssid.value=&quot;(.+)&quot;;" entity="\\(.)" decode="false" page="/cgi-bin/wlan.html" />
      <Field name="SSID2" type="SSID" validate="plf=2" match="form.ssid.value=&quot;(.+)&quot;;" entity="\\(.)" decode="false" page="/cgi-bin/wlan.html" />
      <!--WPS always on for non-WEP settings.-->
      <Field name="SECURITY1" type="SECURITY" property="ChoiceInt" match="var old_sectype=&quot;([\d])&quot;;">
        <Choice result="1" value="1" set="sm=disable" />
        <Choice result="2" value="2" set="sm=wep" />
        <Choice result="3" value="3" set="sm=wpa;type=tkip" />
        <Choice result="4" value="3" set="sm=wpa;type=aes" />
        <Choice result="5" value="3" set="sm=wpa;type=auto" />
        <Choice value="0" />
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" validate="sm=wep" />
        <Choice value="3" />
      </Field>
      <Field name="WEPMODE" type="WEPMODE" property="ChoiceInt" validate="sm=wep" match="NAME=&quot;sec_auth&quot;[^&gt;]*&gt;[^&quot;]*&lt;option value=([\d])[\s]*SELECTED&gt;">
        <Choice result="0" value="0">
          <!--"Open" in the dropdown.-->
        </Choice>
        <Choice result="1" value="1">
          <!--"Shared key"-->
        </Choice>
        <Choice result="2" value="2">
          <!--"Automatic"-->
        </Choice>
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" property="ChoiceValidateInt" validate="sm=wep">
        <Choice value="0"></Choice>
      </Field>
      <Field name="keylen" type="NOOP" property="ChoiceInt" validate="sm=wep" match="NAME=&quot;sec_keylen&quot;[^&gt;]*&gt;[^&quot;]*&lt;option value=([\d]*)[\s]*SELECTED&gt;">
        <Choice result="5" set="keylen=64"></Choice>
        <Choice result="13" set="keylen=128" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" property="ChoiceValidateInt" validate="sm=wep">
        <Choice validate="keylen=64" value="1"></Choice>
        <Choice validate="keylen=128" value="2"></Choice>
      </Field>
      <Field name="64WEPKEY1" type="WEPKEY1" validate="sm=wep;keylen=64" match="var wep_64_key1 = &quot;([\w]*)&quot;;" decode="false"></Field>
      <Field name="64WEPKEY2" type="WEPKEY2" validate="sm=wep;keylen=64" match="var wep_64_key2 = &quot;([\w]*)&quot;;" decode="false"></Field>
      <Field name="64WEPKEY3" type="WEPKEY3" validate="sm=wep;keylen=64" match="var wep_64_key3 = &quot;([\w]*)&quot;;" decode="false"></Field>
      <Field name="64WEPKEY4" type="WEPKEY4" validate="sm=wep;keylen=64" match="var wep_64_key4 = &quot;([\w]*)&quot;;" decode="false"></Field>
      <Field name="128WEPKEY1" type="WEPKEY1" validate="sm=wep;keylen=128" match="var wep_128_key1 = &quot;([\w]*)&quot;;" decode="false"></Field>
      <Field name="128WEPKEY2" type="WEPKEY2" validate="sm=wep;keylen=128" match="var wep_128_key2 = &quot;([\w]*)&quot;;" decode="false"></Field>
      <Field name="128WEPKEY3" type="WEPKEY3" validate="sm=wep;keylen=128" match="var wep_128_key3 = &quot;([\w]*)&quot;;" decode="false"></Field>
      <Field name="128WEPKEY4" type="WEPKEY4" validate="sm=wep;keylen=128" match="var wep_128_key4 = &quot;([\w]*)&quot;;" decode="false"></Field>
      <Field name="WPAPASSFORTKIP" type="WPAPASS" validate="sm=wpa;type=tkip" match="var get_wpa1 = &quot;(.+)&quot;;" decode="false" entity="\\(.)" />
      <Field name="WPAPASSFORWPA2" type="WPAPASS" validate="sm=wpa;type=aes" match="var get_wpa2 = &quot;(.+)&quot;;" decode="false" entity="\\(.)" />
      <Field name="WPAPASSFORAUTO" type="WPAPASS" validate="sm=wpa;type=auto" match="var get_wpas = &quot;(.+)&quot;;" decode="false" entity="\\(.)" />
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceValidateInt">
        <Choice validate="type=tkip" value="0" />
        <Choice validate="type=aes" value="1" />
        <Choice validate="type=auto" value="1" />
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!-- Netgear WG302 F/W 5.2.3 NA 2.5.2009-->
    <WifiDeviceConfig title="Netgear WG302" server="mini_httpd" realm="Netgear WAG302v2 / WG302v2" secure="true" user="admin" password="password" page="/ngadmin.cgi?action=wep1">
      <Field name="PreLoginFind" type="FOUND" skiplogin="true" required="false" match="BGCOLOR=&quot;#FFFFFF&quot; TEXT=&quot;#000000&quot; LINK=&quot;#2020ff&quot; VLINK=&quot;#(4040cc)&quot;&gt;" page="/" />
      <Field type="SET" name="modelName" property="Input" match="(wag302)" page="/ngadmin.cgi?action=menu" />
      <Field type="FOUND" name="PostLoginFind" match="(wag302)" page="/ngadmin.cgi?action=menu" />
      <Field name="SSID" type="SSID" match="name=&quot;sec_profile&quot;[^&lt;]*&lt;/td&gt;\n[\s]*&lt;td[^&gt;]*&gt;1&lt;/td&gt;\n[\s]*&lt;td[^&gt;]*&gt;[^&lt;]*&lt;/td&gt;\n[\s]*&lt;td[^&gt;]*&gt;(.+)&lt;/td&gt;" page="/ngadmin.cgi?action=profiles1" />
      <!--Will ONLY retreive settings for the first SSID/VAP.-->
      <Field type="SET" name="netauth" match="id=&quot;auth_11g&quot;[^&gt;]*&gt;[^&quot;]*&lt;option[\s]*value=([\d]*)[\s]*selected&gt;[^&lt;]*&lt;/option&gt;" page="/ngadmin.cgi?action=wep1" property="Choice">
        <Choice result="0" value="open" />
        <Choice result="1" value="shared" />
        <Choice result="2" value="legacy" />
        <Choice result="4" value="wparadius" />
        <Choice result="8" value="wparadius" />
        <Choice result="12" value="wparadius" />
        <Choice result="16" value="wpapsk" />
        <Choice result="32" value="wpapsk" />
        <Choice result="48" value="wpapsk" />
      </Field>
      <Field type="NOOP" name="securityenabled" match="case 0[^}]*list.options\[([\d])\].selected = true" validate="netauth=open" page="/ngadmin.cgi?action=wep1" property="Choice">
        <Choice result="0" set="keysoff=yes" />
        <Choice set="keysoff=no" />
      </Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="netauth=open;keysoff=yes" value="1" set="sm=none" />
        <Choice validate="netauth=open;keysoff=no" value="2" set="sm=wep;wepmode=open" />
        <Choice validate="netauth=shared" value="2" set="sm=wep;wepmode=shared" />
        <Choice validate="netauth=wpapsk" value="3" set="sm=wpa" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WEPMODESET" type="WEPMODE" property="ChoiceValidateInt" validate="sm=wep">
        <Choice validate="wepmode=shared" value="1" />
        <Choice validate="wepmode=open" value="0" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" property="ChoiceValidateInt" validate="sm=wep">
        <Choice value="0" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" property="ChoiceInt" validate="sm=wep" match="id=&quot;wep_key_length&quot;[^&gt;]*value=&quot;([\d]*)&quot;">
        <Choice result="40" value="1" />
        <Choice result="104" value="2" />
        <Choice value="0" />
      </Field>
      <!--Asterisks appear for WEP keys.-->
      <Field name="WEPKEY1" type="WEPKEY1" property="ChoiceValidate" validate="sm=wep">
        <Choice value="" />
      </Field>
      <Field name="WEPKEY2" type="WEPKEY2" property="ChoiceValidate" validate="sm=wep">
        <Choice value="" />
      </Field>
      <Field name="WEPKEY3" type="WEPKEY3" property="ChoiceValidate" validate="sm=wep">
        <Choice value="" />
      </Field>
      <Field name="WEPKEY4" type="WEPKEY4" property="ChoiceValidate" validate="sm=wep">
        <Choice value="" />
      </Field>
      <Field name="TKIPdrops" type="NOOP" property="Choice" match="options\[0\][^&quot;]*&quot;[\S]*&quot;, 253[^}]*\(&quot;([\w]*)&quot;[^}]*list.options\[([\d])\].selected = true" validate="sm=wpa">
        <Choice result="TKIP" set="tkipwasanoption=yes" />
        <Choice set="tkipwasanoption=no" />
      </Field>
      <Field name="TKIPSELECTCHECK" type="WPATYPE" property="ChoiceInt" validate="sm=wpa;tkipwasanoption=yes" match="options\[0\][^&quot;]*&quot;[\S]*&quot;, 253[^}]*\(&quot;([\w]*)&quot;[^}]*list.options\[([\d])\].selected = true" group="1">
        <Choice result="1" value="0" />
        <Choice value="1" />
      </Field>
      <Field name="DefaultingtoAES" type="WPATYPE" property="ChoiceValidateInt" validate="sm=wpa;tkipwasanoption=no">
        <Choice value="1" />
      </Field>
      <!--special characters can break this page, as the router is not handling them properly.-->
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" match="var wpapsk = &quot;([^&quot;]*)&quot;;"></Field>
      <!--WPSMODE is not supported on WG302-->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!-- Netgear WG602 v4 f/w V1.1.0NA 2.5.2009-->
    <WifiDeviceConfig title="Netgear WG602" user="admin" password="password" server="Boa/0.94.11" realm="WG602V4" page="/cgi-bin/wlan.html">
      <Field name="routerPresentCheck" required="false" type="FOUND" match="(401) Unauthorized" page="/" skiplogin="true"></Field>
      <Field name="modelname" type="SET" match="kbserver.netgear.com/products/(WG602)" page="/cgi-bin/menu.html"></Field>
      <Field name="Postloginfind" type="FOUND" match="(WG602)" page="/cgi-bin/index.html"></Field>
      <Field name="SSID" type="SSID" match="document.forms\[1\].ESSID.value = '(.+)';" entity="\\(.)" page="/cgi-bin/wlan.html"></Field>
      <Field name="SECURITY1" type="SECURITY" property="ChoiceInt" match="var security_mode = '([\d])';" page="/cgi-bin/security.html">
        <Choice result="0" value="1" set="sm=disabled" />
        <Choice result="1" value="2" set="sm=wep" />
        <Choice result="2" value="3" set="sm=wpa;wpatype=tkip" />
        <Choice result="3" value="3" set="sm=wpa;wpatype=aes" />
        <Choice result="4" value="3" set="sm=wpa;wpatype=auto" />
        <Choice value="0" />
      </Field>
      <Field name="WEPMODE" type="WEPMODE" property="ChoiceInt" page="/cgi-bin/wep.html" validate="sm=wep" match="var authentication_type = '([\d])';">
        <Choice result="0" value="2">
          <!--"Mix" in the dropdown.-->
        </Choice>
        <Choice result="1" value="0" />
        <Choice result="2" value="1" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt" page="/cgi-bin/wep.html">
        <Choice value="0"></Choice>
      </Field>
      <!--All WEP keys are obscured by asterisks (*).-->
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="key_length = '(\d+)'" page="/cgi-bin/info.html">
        <!---->
        <Choice result="64" value="1"></Choice>
        <Choice result="128" value="2"></Choice>
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" property="ChoiceValidate">
        <Choice value="" />
      </Field>
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" property="ChoiceValidate">
        <Choice value="" />
      </Field>
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" property="ChoiceValidate">
        <Choice value="" />
      </Field>
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" property="ChoiceValidate">
        <Choice value="" />
      </Field>
      <Field name="WPAPASSFORTKIP" type="WPAPASS" validate="sm=wpa;wpatype=tkip" entity="\\(.)" match="document.forms\[0\].setobject_wpapskPhrase.value = '(.+)';" page="/cgi-bin/wpa.html" />
      <Field name="WPAPASSFORWPA2" type="WPAPASS" validate="sm=wpa;wpatype=aes" entity="\\(.)" match="document.forms\[0\].setobject_wpa2pskPhrase.value = '(.+)';" page="/cgi-bin/wpa2.html" />
      <Field name="WPAPASSFORAUTO" type="WPAPASS" validate="sm=wpa;wpatype=auto" entity="\\(.)" match="document.forms\[0\].setobject_wpaspskPhrase.value = '(.+)';" page="/cgi-bin/wpas.html" />
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceValidateInt">
        <Choice validate="wpatype=tkip" value="0" />
        <Choice validate="wpatype=aes" value="1" />
        <Choice validate="wpatype=auto" value="1" />
        <Choice value="0" />
      </Field>
      <!--No WPSmode Supported.-->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!--Netgear WGR614 V9 V1.0.15_4.0.3NA 2.6.2009-->
    <WifiDeviceConfig title="Netgear WGR614" realm="NETGEAR WGR614V9" server="" user="admin" password="password" page="/WLG_wireless.htm">
      <Field name="routerPresentCheck" required="false" type="FOUND" match="&lt;p&gt;(Access) to this resource is denied; your client has not supplied the correct authentication.&lt;/p&gt;&lt;/body&gt;" page="/" skiplogin="true"></Field>
      <Field name="ModelCheck" type="NOOP" match="content=&quot;(WGR614)&quot;" set="modelname=WGR614" page="/WLG_wireless.htm"></Field>
      <Field name="Postloginfind" type="FOUND" match="(WGR614)" page="/WLG_wireless.htm"></Field>
      <Field name="SSID" type="SSID" match="name=&quot;ssid&quot; value=&quot;(.+)&quot; size=" page="/WLG_wireless2.htm"></Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceInt" match="var secuType=&quot;([\S]*)&quot;;" page="/WLG_wireless.htm">
        <Choice result="None" value="1" />
        <Choice result="WEP" value="2" set="sm=wep" />
        <Choice result="WPA-PSK" value="3" set="sm=wpa;wpa=wpa;wpatype=tkip" />
        <Choice result="WPA2-PSK" value="3" set="sm=wpa;wpa=wpa2;wpatype=aes" />
        <Choice result="WPA-AUTO-PSK" value="3" set="sm=wpa;wpatype=aes">
          <!--Use AES type when router allows either.-->
        </Choice>
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wep" property="ChoiceInt" match="name=&quot;initAuthType&quot; value=&quot;([\w]*)&quot;" page="/WLG_wireless1.htm">
        <Choice result="sharedkey" value="1" />
        <Choice result="automatic" value="2" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt" page="/WLG_wireless1.htm">
        <Choice value="0"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="&lt;option selected value=&quot;([\d])&quot;&gt;[\d]*bit" page="WLG_wireless1.htm">
        <Choice result="1" value="1"></Choice>
        <Choice result="2" value="2"></Choice>
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="&lt;input[^&gt;]*name=&quot;KEY1&quot;[^&gt;]*value=&quot;([\w]+)&quot;[^&gt;]*&gt;" page="/WLG_wireless1.htm"></Field>
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="&lt;input[^&gt;]*name=&quot;KEY2&quot;[^&gt;]*value=&quot;([\w]+)&quot;[^&gt;]*&gt;" page="/WLG_wireless1.htm" />
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="&lt;input[^&gt;]*name=&quot;KEY3&quot;[^&gt;]*value=&quot;([\w]+)&quot;[^&gt;]*&gt;" page="/WLG_wireless1.htm" />
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="&lt;input[^&gt;]*name=&quot;KEY4&quot;[^&gt;]*value=&quot;([\w]+)&quot;[^&gt;]*&gt;" page="/WLG_wireless1.htm" />
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" entity="\\(.)" match="passphrase&quot; size=20 maxLength=64 value=&quot;(.+)&quot; onFocus" page="/WLG_wireless2.htm"></Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceValidateInt">
        <Choice validate="wpatype=aes" value="1" />
        <Choice validate="wpatype=tkip" value="0" />
      </Field>
      <!-- router does not support WPSMODE - set default to No WPS -->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!-- Netgear WGT624v4 V2.0.6_2.0.6NA 2.6.2009-->
    <WifiDeviceConfig title="Netgear WGT624" server="" realm="NETGEAR WGT624v4" user="admin" password="password" page="/WLG_wireless.htm">
      <Field name="PreLoginFind" type="FOUND" match="&lt;head&gt;&lt;title&gt;(401) Unauthorized&lt;/title&gt;&lt;/head&gt;" required="false" />
      <Field name="ModelCheck" type="NOOP" match="content=&quot;(WGT624)&quot;" set="modelname=WGT624" />
      <Field name="PostLoginFind" type="FOUND" match="content=&quot;(WGT624)&quot;" />
      <!--Will use &entityname; for some characters.-->
      <Field name="SSID" type="SSID" match="&lt;input[^&gt;]*name=&quot;ssid&quot;[^&gt;]*value=&quot;(.+)&quot; size" page="/WLG_wireless3.htm" />
      <!--<Field name="SECURITY1" type="SECURITY" property="ChoiceInt" match="var wepStatus=&quot;(.+)&quot;;" page="/WLG_wireless.htm"><Choice result="Disable" value="1" set="ws=disabled" /><Choice result="Enable" value="0" set="ws=enabled" /></Field>-->
      <Field name="SECURITY" type="SECURITY" property="ChoiceInt" match="var secuType=&quot;([\S]*)&quot;;" page="/WLG_wireless.htm">
        <!--test="&lt;input type=&quot;radio&quot; name=&quot;security_type&quot; value=&quot;([^&quot;]*)&quot;[\s]*checked"-->
        <Choice result="None" value="1" />
        <Choice result="WEP" value="2" set="sm=wep" />
        <Choice result="WPA-PSK" value="3" set="sm=wpa;wpa=wpa;wpatype=tkip" />
        <Choice result="WPA2-PSK" value="3" set="sm=wpa;wpa=wpa2;wpatype=aes" />
        <Choice result="WPA-AUTO-PSK" value="3" set="sm=wpa;wpatype=aes">
          <!--Use AES type when router allows either.-->
        </Choice>
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wep" property="ChoiceInt" match="name=&quot;initAuthType&quot; value=&quot;([\w]*)&quot;" page="/WLG_wireless1.htm">
        <Choice result="opensystem" value="0" />
        <Choice result="sharedkey" value="1" />
        <Choice result="automatic" value="2" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="&lt;option[\s]*selected[\s]*value=&quot;[\d]&quot;&gt;([\d]*)bit&lt;/option&gt;" page="/WLG_wireless1.htm">
        <Choice result="64" value="1" />
        <Choice result="128" value="2" />
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="&lt;input[^&gt;]*name=&quot;KEY1&quot;[^&gt;]*value=&quot;([\w]+)&quot;[^&gt;]*&gt;" page="/WLG_wireless1.htm" />
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="&lt;input[^&gt;]*name=&quot;KEY2&quot;[^&gt;]*value=&quot;([\w]+)&quot;[^&gt;]*&gt;" page="/WLG_wireless1.htm" />
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="&lt;input[^&gt;]*name=&quot;KEY3&quot;[^&gt;]*value=&quot;([\w]+)&quot;[^&gt;]*&gt;" page="/WLG_wireless1.htm" />
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="&lt;input[^&gt;]*name=&quot;KEY4&quot;[^&gt;]*value=&quot;([\w]+)&quot;[^&gt;]*&gt;" page="/WLG_wireless1.htm" />
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" property="ChoiceValidate">
        <Choice value="" />
      </Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceValidateInt">
        <Choice validate="wpatype=aes" value="1" />
        <Choice validate="wpatype=tkip" value="0" />
      </Field>
      <!-- router does not support WPSMODE - set default to No WPS -->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!--Netgear WN802T 1.3.16NA 2.5.2009 JRO-->
    <WifiDeviceConfig title="Netgear WN802T" server="httpd" realm="NETGEAR WN802T" user="admin" password="password" page="/WLS_security.htm">
      <Field name="routerPresentCheck" type="FOUND" required="false" match="BODY  onload=cancelevent\(\)&gt;&lt;form name='formname' action='(ptimeout).cgi'" skipLogin="false" page="/WLS_security.htm" />
      <Field name="Postloginfind" type="found" match="content=&quot;WGR614_2022&quot;&gt;" set="modelname=WN802T" page="/WLS_security.htm"></Field>
      <!--Uses an escape "\" for certain characters, a single quote will break the SSID match.-->
      <Field name="SSID" type="SSID" match="fm.ssid.value = '(.+)';" entity="\\(.)" page="/WLG_wireless.htm" />
      <Field name="SECURITY1" type="SECURITY" property="ChoiceInt" match="name=&quot;wl0_sec_mode&quot; value=&quot;([\S]*)&quot;">
        <Choice result="none" value="1" set="sm=disabled" />
        <Choice result="wep" value="2" set="sm=wep" />
        <Choice result="psk" value="3" set="sm=wpa;wpa=tkip" />
        <Choice result="WPA1WPA2" value="3" set="sm=wpa;wpa=wpa2" />
        <Choice result="WPA2" value="3" set="sm=wpa;wpa=wpa2"></Choice>
        <Choice value="0" set="sm=unsupported"></Choice>
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wep" property="ChoiceInt" match="name=&quot;wl0_authtype&quot; value=&quot;([\w]*)&quot;">
        <Choice result="OPEN" value="0" />
        <Choice result="WEPAUTO" value="2" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="name=&quot;wl0_keylength&quot; value=&quot;([\d]*)&quot;" page="/WLS_security.htm">
        <Choice result="40" value="1" />
        <Choice result="104" value="2" />
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="name=&quot;wl0_key1&quot; value=&quot;([\w]*)&quot;" />
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="name=&quot;wl0_key2&quot; value=&quot;([\w]*)&quot;" />
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="name=&quot;wl0_key3&quot; value=&quot;([\w]*)&quot;" />
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="name=&quot;wl0_key4&quot; value=&quot;([\w]*)&quot;" />
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" match="fm.wl0_pskkey.value = '(.+)';" entity="\\(.)" />
      <Field name="WPATYPE1" type="WPATYPE" validate="sm=wpa;wpa=tkip" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field name="WPATYPE2" type="WPATYPE" validate="sm=wpa;wpa=wpa2" property="ChoiceValidateInt">
        <Choice value="1" />
      </Field>
      <!--No WPS mode support.-->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!--Netgear WPN824 hw v3 V1.0.6_1.0.5NA 2.5.2009-->
    <WifiDeviceConfig title="Netgear WPN824" realm="NETGEAR_WPN824v3" user="admin" password="password" page="/cgi-bin/wlan.html" server="Boa/0.94.11">
      <Field name="routerPresentCheck" type="FOUND" required="FALSE" match="(url=/cgi-bin/check_hijack.html)" skiplogin="true" page="/"></Field>
      <Field name="ModelCheck" type="NOOP" match="documentation.netgear.com[\S](wpn824)[\S]" set="modelname=WPN824" page="/cgi-bin/menu.html" />
      <Field name="Postloginfind" type="FOUND" match="(WPN824v3)" page="/cgi-bin/info.html"></Field>
      <Field name="SSID" type="SSID" entity="\\(.)" match="form.wlan_ssid.value=&quot;(.+)&quot;;" page="/cgi-bin/wlan.html" />
      <Field name="SECURITY1" type="SECURITY" property="ChoiceInt" match="var sectype='([\d])';">
        <Choice result="1" value="1" set="sm=disabled" />
        <Choice result="2" value="2" set="sm=wep" />
        <Choice result="3" value="3" set="sm=wpa;wpatype=tkip" />
        <Choice value="3" set="sm=wpa;wpatype=aes" />
      </Field>
      <Field name="WEPMODE" type="WEPMODE" property="ChoiceInt" validate="sm=wep" match="NAME=&quot;sec_auth&quot;[^&gt;]*&gt;[^&quot;]*&lt;option[\s]*value=([\d])[\s]*SELECTED">
        <Choice result="0" value="0">
          <!--"open" in the dropdown.-->
        </Choice>
        <Choice result="1" value="1" />
        <Choice result="2" value="2" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="&lt;option value=[\d]* SELECTED&gt;([\d]*) bits&lt;/option" page="/cgi-bin/wlan.html">
        <Choice result="64" value="1" />
        <Choice result="128" value="2" />
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="form.wepkey1.value=&quot;([\w]*)&quot;;"></Field>
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="form.wepkey2.value=&quot;([\w]*)&quot;;"></Field>
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="form.wepkey3.value=&quot;([\w]*)&quot;;"></Field>
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="form.wepkey4.value=&quot;([\w]*)&quot;;"></Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceValidateInt">
        <Choice validate="wpatype=tkip" value="0" />
        <Choice value="1" />
      </Field>
      <!--WPAPASSKEY is hidden with asterisks.-->
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" property="ChoiceValidate">
        <Choice value="" />
      </Field>
      <!--No WPSmode Supported.-->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!-- Netgear WNDR3300 V1.0.14_1.0.14NA 2.3.2009 JRO-->
    <WifiDeviceConfig title="Netgear WNDR3300" realm="NETGEAR WNDR3300" server="" user="admin" password="password" page="/WLG_wireless.htm">
      <Field name="routerPresentCheck" type="FOUND" required="FALSE" match="(&lt;h1&gt;401 Unauthorized&lt;/h1&gt;)" skipLogin="true" page="/" />
      <Field name="ModelCheck" type="NOOP" match="content=&quot;(WNDR3300)&quot;" set="modelname=WNDR3300" />
      <Field name="Postloginfind" type="found" match="content=&quot;(WNDR3300)&quot;" set="modelname=WNDR3300" />
      <!--Use g ssid instead of N.-->
      <!--Note if G is disabled on the router, the retrieved settings will not work.-->
      <Field name="SSID" type="SSID" match="&lt;input[^&gt;]*name=&quot;g_ssid&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;[^&gt;]*&gt;" page="/WLG_wireless3.htm" />
      <Field name="SECURITY" type="SECURITY" property="ChoiceInt" match="var secuType=&quot;([\S]*)&quot;;" page="/WLG_wireless.htm">
        <Choice result="None" value="1" set="wps=enabled" />
        <Choice result="WEP" value="2" set="sm=wep;wps=disabled" />
        <Choice result="WPA-PSK" value="3" set="sm=wpa;wpa=wpa;wpatype=tkip;wps=enabled" />
        <Choice result="WPA2-PSK" value="3" set="sm=wpa;wpa=wpa2;wpatype=aes;wps=enabled" />
        <Choice result="WPA-AUTO-PSK" value="3" set="sm=wpa;wpatype=aes;wps=enabled">
          <!--Use AES type when router allows either.-->
        </Choice>
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wep" property="ChoiceInt" match="name=&quot;initAuthType&quot; value=&quot;([\w]*)&quot;" page="/WLG_wireless1.htm">
        <Choice result="sharedkey" value="1" />
        <Choice result="automatic" value="2" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="name=&quot;wepenc&quot;[^&gt;]*&gt;[^r]*&lt;option selected value=&quot;([\d])&quot;&gt;" page="/WLG_wireless1.htm">
        <Choice result="1" value="1" />
        <Choice result="2" value="2" />
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="&lt;input[^&gt;]*name=&quot;KEY1&quot;[^&gt;]*value=&quot;([\w]+)&quot;[^&gt;]*&gt;" page="/WLG_wireless1.htm" />
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="&lt;input[^&gt;]*name=&quot;KEY2&quot;[^&gt;]*value=&quot;([\w]+)&quot;[^&gt;]*&gt;" page="/WLG_wireless1.htm" />
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="&lt;input[^&gt;]*name=&quot;KEY3&quot;[^&gt;]*value=&quot;([\w]+)&quot;[^&gt;]*&gt;" page="/WLG_wireless1.htm" />
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="&lt;input[^&gt;]*name=&quot;KEY4&quot;[^&gt;]*value=&quot;([\w]+)&quot;[^&gt;]*&gt;" page="/WLG_wireless1.htm" />
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" match="name=&quot;passphrase&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;" page="/WLG_wireless2.htm"></Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceValidateInt">
        <Choice validate="wpatype=aes" value="1" />
        <Choice validate="wpatype=tkip" value="0" />
      </Field>
      <!--WPS Mode applies only to 802.11N when the SSID does not match 802.11g setting.-->
      <!--WPS will be disabled for wireless g by default and we cannot check for match, so no WPS security set.-->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!--Netgear WNR834Bv2 V2.1.13_2.1.13NA  - 2.18.2009-->
    <!--Server header is shown as Server Header = ''  in the tool.-->
    <WifiDeviceConfig title="Netgear WNR834B" server="" realm="Netgear WNR834Bv2" user="admin" password="password" page="/WLG_wireless3.htm">
      <!--Model Check will match to any HW ver that appears in this string. Using V2.-->
      <Field name="routerPresentCheck" type="FOUND" match="(&lt;body&gt;&lt;h1&gt;401 Unauthorized&lt;/h1&gt;)" required="FALSE" skiplogin="true" page="/" />
      <Field name="Postloginfind" type="FOUND" match="(content=&quot;WNR834Bv2&quot;&gt;)" set="modelname=WNR834Bv2" page="/BAS_basictop.htm" />
      <Field name="SSID" type="SSID" match="&lt;input[^&gt;]*name=&quot;ssid&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;[^&gt;]*&gt;" />
      <!--Router always has WPS enabled for Non-WEP Security settings.-->
      <Field name="SECURITY1" type="SECURITY" property="ChoiceInt" match="var secuType=&quot;([\S]*)&quot;;" page="/WLG_wireless.htm">
        <Choice result="None" value="1" set="sm=disable;wps=on" />
        <Choice result="WEP" value="2" set="wps=off;sm=wep" />
        <Choice result="WPA-PSK" value="3" set="wps=on;sm=wpa;type=tkip" />
        <Choice result="WPA2-PSK" value="3" set="wps=on;sm=wpa;type=aes" />
        <Choice result="WPA-AUTO-PSK" value="3" set="wps=on;sm=wpa;type=aes" />
        <Choice value="0" set="wps=off;sm=nosupport" />
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice validate="wps=on" value="3" />
        <Choice value="0" />
      </Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceValidateInt">
        <Choice value="0" validate="type=tkip" />
        <Choice value="1" />
      </Field>
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" match="name=&quot;passphrase&quot;[^&gt;]*value=&quot;(.+)&quot;&gt;&amp;nbsp;&amp;nbsp" page="/WLG_wireless2.htm">
        <Choice value="0" validate="type=tkip" />
        <Choice value="1" />
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wep" property="ChoiceInt" match="name=&quot;initAuthType&quot; value=&quot;([\w]*)&quot;" page="/WLG_wireless1.htm">
        <Choice value="1" result="sharedkey" />
        <Choice value="2" result="automatic" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="name=&quot;wepenc&quot;[^&gt;]*&gt;[^!]*selected value=&quot;([\d])&quot;&gt;" page="/WLG_wireless1.htm">
        <Choice result="1" value="1" />
        <Choice result="2" value="2" />
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="name=&quot;KEY1&quot;[^&gt;]*value=&quot;([\w]*)&quot;" page="/WLG_wireless1.htm" />
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="name=&quot;KEY2&quot;[^&gt;]*value=&quot;([\w]*)&quot;" page="/WLG_wireless1.htm" />
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="name=&quot;KEY3&quot;[^&gt;]*value=&quot;([\w]*)&quot;" page="/WLG_wireless1.htm" />
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="name=&quot;KEY4&quot;[^&gt;]*value=&quot;([\w]*)&quot;" page="/WLG_wireless1.htm" />
    </WifiDeviceConfig>
    <!--Netgear WNR854T 1.4.23NA 2.6.2009-->
    <WifiDeviceConfig title="Netgear WNR854T" server="httpd" realm="NETGEAR WNR854T" user="admin" password="password" page="/WLG_wireless.htm">
      <Field name="routerPresentCheck" type="FOUND" required="false" match="cancelevent\(\)&gt;&lt;form name='formname' action='(ptimeout).cgi'" page="/WLG_wireless.htm" skiplogin="false" />
      <Field name="Postloginfind" type="FOUND" match="content=&quot;(WNR854T)&quot;&gt;" page="/WLG_wireless.htm" />
      <Field name="ModelCheck" type="NOOP" match="content=&quot;(WNR854T)&quot;" set="modelname=WNR854T"></Field>
      <Field name="SSID" type="SSID" match="fm.wl_ssid.value = '(.*)';" entity="\\(.)"></Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceInt" match="name=&quot;wl0_sec_mode&quot; value=&quot;([\w]*)&quot;" page="/WLG_wireless.htm">
        <Choice result="wep" value="2" set="sm=wep" />
        <Choice result="psk" value="3" set="sm=wpa;wpa=tkip" />
        <Choice result="WPA2" value="3" set="sm=wpa;wpa=wpa2" />
        <Choice result="WPA1WPA2" value="3" set="sm=wpa;wpa=auto" />
        <Choice value="1" set="sm=disabled" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="name=&quot;wl0_keylength&quot; value=&quot;(\d+)&quot;\&gt;" page="/WLG_wireless.htm">
        <Choice result="40" value="1"></Choice>
        <Choice result="104" value="2"></Choice>
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wep" property="ChoiceInt" match="name=&quot;wl0_authtype&quot; value=&quot;([\S]*)&quot;" page="/WLG_wireless.htm">
        <Choice result="OPEN" value="0" />
        <Choice result="SHARED" value="1" />
        <Choice result="WEPAUTO" value="2" />
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="name=&quot;wl0_key1&quot; value=&quot;([\w]*)&quot;" />
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="name=&quot;wl0_key2&quot; value=&quot;([\w]*)&quot;" />
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="name=&quot;wl0_key3&quot; value=&quot;([\w]*)&quot;" />
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="name=&quot;wl0_key4&quot; value=&quot;([\w]*)&quot;" />
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" match="fm.wl0_pskkey.value = '(.*)';" entity="\\(.)"></Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceValidateInt">
        <Choice value="1" validate="wpa=wpa2"></Choice>
        <Choice value="0" validate="wpa=tkip" />
        <Choice value="1" validate="wpa=auto" />
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
    </WifiDeviceConfig>
    <!-- Netgear WNR3500 V1.0.15_1.0.15NA 2.12.2009-->
    <WifiDeviceConfig title="Netgear WNR3500" server="" realm="NETGEAR WNR3500" user="admin" password="password" page="/WLG_wireless.htm">
      <Field name="routerPresentCheck" type="FOUND" required="false" match="(Access\sto\sthis\sresource\sis\sdenied.*your\sclient\shas\snot\ssupplied\sthe\scorrect\sauthentication\.)" page="/" skipLogin="true" />
      <Field name="ModelCheck" type="NOOP" match="content=&quot;(WNR3500)&quot;&gt;" set="modelname=WNR3500" />
      <Field name="Postloginfind" type="FOUND" match="content=&quot;(WNR3500)&quot;&gt;" page="/WLG_wireless3.htm" />
      <!--Router disallows spaces-->
      <Field name="SSID" type="SSID" match="&lt;input[^&gt;]*name=&quot;ssid&quot;[^&gt;]*value=&quot;([\S]*)&quot;[^&gt;]*&gt;" page="/WLG_wireless3.htm" />
      <!--WPS always enabled for non-wep settings.-->
      <!--Note ALL of the potential settings on this router are supported; NO Enterprise or radius.-->
      <Field name="SECURITY" type="SECURITY" property="ChoiceInt" match="var secuType=&quot;([\S]*)&quot;;" page="/WLG_wireless.htm">
        <Choice result="None" value="1" set="wps=enabled" />
        <Choice result="WEP" value="2" set="sm=wep;wps=disabled" />
        <Choice result="WPA-PSK" value="3" set="sm=wpa;wpa=wpa;wpatype=tkip;wps=enabled" />
        <Choice result="WPA2-PSK" value="3" set="sm=wpa;wpa=wpa2;wpatype=aes;wps=enabled" />
        <Choice result="WPA-AUTO-PSK" value="3" set="sm=wpa;wpatype=aes;wps=enabled">
          <!--Use AES type when router allows either.-->
        </Choice>
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" property="ChoiceValidateInt" validate="sm=wep">
        <Choice value="0" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="name=&quot;wepenc&quot;[^&gt;]*&gt;[^R]*&lt;option selected value=&quot;([\d])&quot;&gt;" page="/WLG_wireless1.htm">
        <Choice value="1" result="1" />
        <Choice value="2" result="2" />
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wep" property="ChoiceInt" match="name=&quot;initAuthType&quot; value=&quot;([\w]*)&quot;" page="/WLG_wireless1.htm">
        <Choice result="sharedkey" value="1" />
        <Choice result="opensystem" value="0" />
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="&lt;input[^&gt;]*name=&quot;KEY1&quot;[^&gt;]*value=&quot;([\w]+)&quot;[^&gt;]*&gt;" page="/WLG_wireless1.htm" />
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="&lt;input[^&gt;]*name=&quot;KEY2&quot;[^&gt;]*value=&quot;([\w]+)&quot;[^&gt;]*&gt;" page="/WLG_wireless1.htm" />
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="&lt;input[^&gt;]*name=&quot;KEY3&quot;[^&gt;]*value=&quot;([\w]+)&quot;[^&gt;]*&gt;" page="/WLG_wireless1.htm" />
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="&lt;input[^&gt;]*name=&quot;KEY4&quot;[^&gt;]*value=&quot;([\w]+)&quot;[^&gt;]*&gt;" page="/WLG_wireless1.htm" />
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" match="name=&quot;passphrase&quot;[^&gt;]*value=&quot;(.+)&quot; onFocus=" page="/WLG_wireless2.htm"></Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceValidateInt">
        <Choice validate="wpatype=aes" value="1" />
        <Choice validate="wpatype=tkip" value="0" />
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice validate="sm=wep" value="0" />
        <Choice value="1" validate="wps=disabled" />
        <Choice value="3" validate="wps=enabled" />
      </Field>
    </WifiDeviceConfig>
    <!--Rosewill RNX-G40 V2.3 2.9.2009-->
    <WifiDeviceConfig title="Rosewill RNX-G40" realm="Wireless Access Point" server="GoAhead-Webs" user="user" password="user" page="/wlwpa.asp">
      <Field name="PreLoginFind" type="FOUND" match="when trying to obtain &lt;b&gt;/(home).asp&lt;/b&gt;&lt;br&gt;&lt;p&gt;Access " required="false" skiplogin="true" page="/home.asp" />
      <Field name="modelname" type="NOOP" match="&lt;title&gt;(Realtek WLAN AP) WebServer&lt;/title&gt;" page="/title.htm" />
      <Field name="PostLoginFind" type="FOUND" match="&lt;title&gt;(Realtek WLAN AP) WebServer&lt;/title&gt;" page="/title.htm" />
      <Field name="SSID" type="SSID" match="name=&quot;ssid0&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;" page="/wlbasic.asp"></Field>
      <!-- router does not support WPSMODE - set default of No WPS -->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field name="encryption" type="SET" property="Choice" match="name=&quot;method0&quot;[^&gt;]*&gt;[^%]*&lt;option[\s]*selected[\s]*value=&quot;([\d])&quot;&gt;[^&lt;]*&lt;/option&gt;">
        <Choice result="0" value="none" />
        <Choice result="1" value="wep" />
        <Choice result="2" value="wpa" />
        <Choice result="4" value="wpa2" />
        <Choice result="6" value="wpamix" />
        <Choice value="nomatch" />
      </Field>
      <Field name="wep802" type="SET" property="Choice" validate="encryption=wep" match="type=&quot;checkbox&quot; name=&quot;([\w]*)&quot; value=&quot;[^&quot;]*&quot;[^&gt;]*checked[\s]*&gt;">
        <Choice result="use1x0" value="1" />
        <Choice value="0" />
      </Field>
      <Field name="wpaauth" type="SET" match="name=&quot;wpaAuth0&quot; value=&quot;([\w]*)&quot; onClick=&quot;checkState\(wlan_idx\)&quot; checked&gt;"></Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="encryption=none" value="1" set="sm=disabled" />
        <Choice validate="encryption=wep;wep802=0" value="2" set="sm=wep" />
        <Choice validate="encryption=wpa;wpaauth=psk" value="3" set="sm=wpa" />
        <Choice validate="encryption=wpa2;wpaauth=psk" value="3" set="sm=wpa" />
        <Choice validate="encryption=wpamix;wpaauth=psk" value="3" set="sm=wpa" />
        <Choice value="0" set="sm=nosupport" />
      </Field>
      <Field name="WEPAUTHRADIO" type="WEPMODE" validate="sm=wep" property="ChoiceInt" match="name=&quot;authType&quot; value=&quot;([\w]*)&quot; checked&gt;" page="/wladvanced.asp">
        <Choice result="open" value="0" />
        <Choice result="shared" value="1" />
        <Choice result="both" value="2" />
      </Field>
      <!--WEP & WPA passkeys hidden by asterisks (*).-->
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" property="ChoiceInt" validate="sm=wep" match="&lt;option value=[\d] selected&gt;([\d]*)-bit&lt;/option&gt;" page="/wlwep.asp">
        <Choice result="64" value="1" />
        <Choice result="128" value="2" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" property="ChoiceInt" validate="sm=wep" match="format.options\[([\d])\].selected = 'true';" page="/wlwep.asp">
        <Choice result="0" value="1" />
        <Choice result="1" value="0" />
      </Field>
      <!--Cannot retrieve WEPKEYs.-->
      <!--<Field name="WEPKEY1" type="WEPKEY1" property="ChoiceValidateInt" validate="sm=wep"><Choice value="" /></Field>-->
      <!--<Field name="WEPKEY2" type="WEPKEY2" property="ChoiceValidateInt" validate="sm=wep"><Choice value="" /></Field>-->
      <!--<Field name="WEPKEY3" type="WEPKEY3" property="ChoiceValidateInt" validate="sm=wep"><Choice value="" /></Field>-->
      <!--<Field name="WEPKEY4" type="WEPKEY4" property="ChoiceValidateInt" validate="sm=wep"><Choice value="" /></Field>-->
      <!--Set to TKIP first. Then check for AES checked in either wpa or wpa2 cases.-->
      <Field name="WPATYPEDEFAULT" type="WPATYPE" validate="sm=wpa" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field name="WPA1AESTYPE" type="WPATYPE" property="ChoiceInt" required="false" validate="sm=wpa;encryption=wpa" match="name=&quot;ciphersuite0&quot; value=&quot;aes&quot;[\s]*(checked)&gt;">
        <Choice value="1" result="checked" />
      </Field>
      <Field name="WPA2AESTYPE" type="WPATYPE" property="ChoiceInt" required="false" validate="sm=wpa;encryption=wpa2" match="name=&quot;wpa2ciphersuite0&quot; value=&quot;aes&quot;[\s]*(checked)&gt;">
        <Choice value="1" result="checked" />
      </Field>
      <Field name="WPAPASS" type="WPAPASS" property="ChoiceValidateInt" validate="sm=wpa">
        <Choice value="" />
      </Field>
    </WifiDeviceConfig>
    <!--Rosewill RNX-N4 F/W: 1.2.04 2.20.2009-->
    <WifiDeviceConfig title="Rosewill RNX-N4" server="Ubicom/1.1" user="admin" password="" page="/Basic/Wireless.shtml" login="/post_login.xml?hash=%salt%%saltedHash%">
      <Field name="PreLoginFind" type="FOUND" match="(&lt;title&gt;Rosewill Media Gateway)" skiplogin="true" page="/" />
      <Field name="salt" type="SET" property="Input" match="var salt = &quot;(.+)&quot;" skiplogin="true" page="/" />
      <Field name="saltedHash" type="SET" property="ChoiceValidate" skiplogin="true" hashresult="true" fillsize="64" fillbyte="1" page="/">
        <Choice value="%salt%%password%">
          <!--<Field name="modelName" type="FOUND" match="&lt;a[^&gt;]*&gt;(DIR-625)&lt;/a&gt;" page="/" />-->
        </Choice>
      </Field>
      <Field name="PostLoginFind" type="FOUND" match="(&lt;title&gt;Wireless Access Point SETUP MENU&lt;/title&gt;)" page="/Basic/index.html"></Field>
      <!--Using &entityname;-->
      <Field name="ssid" type="SSID" match="&lt;input[^&gt;]*id=&quot;wireless_SSID&quot;[^&gt;]*value=&quot;(.+)&quot; name=" />
      <Field name="wifisc_enabled" type="SET" property="ChoiceInt" match="var wifisc_enabled = &quot;([\w]*)&quot;" page="/Status/Device_Info.shtml">
        <Choice result="false" set="wpsenabled=no;wps=off"></Choice>
        <Choice result="true" set="wpsenabled=yes;" />
      </Field>
      <Field name="wifisc_configured" type="NOOP" property="ChoiceInt" validate="wpsenabled=yes" match="var wifisc_configured = &quot;([\w]*)&quot;" page="/Status/Device_Info.shtml">
        <Choice set="wps=on" result="true"></Choice>
        <Choice set="wps=off"></Choice>
      </Field>
      <Field name="wireless_ieee8021x_enabled" type="NOOP" property="Choice" match="name=&quot;config.wireless.ieee8021x_enabled&quot; value=&quot;([\w]*)&quot;">
        <Choice result="true" set="enterprise=on" />
        <Choice result="false" set="enterprise=off" />
      </Field>
      <Field name="wireless_wpa_enabled" type="NOOP" property="ChoiceInt" match="name=&quot;config.wireless.wpa_enabled&quot; value=&quot;([\w]*)&quot;">
        <Choice set="wpa=enabled" result="true" />
        <Choice result="false" set="wpa=disabled" />
      </Field>
      <Field name="wireless_wepon" type="NOOP" property="ChoiceInt" match="name=&quot;config.wireless.wepon&quot; value=&quot;([\w]*)&quot;">
        <Choice set="wep=disabled" result="false" />
        <Choice set="wep=enabled" result="true" />
      </Field>
      <Field name="Security" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="wep=disabled;wpa=disabled" value="1" set="sm=none" />
        <Choice validate="wep=enabled;wpa=disabled" value="2" set="sm=wep" />
        <Choice validate="wep=disabled;wpa=enabled;enterprise=off" value="3" set="sm=wpapsk" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice validate="sm=unsupported" value="0"></Choice>
        <Choice validate="sm=wep" value="0"></Choice>
        <Choice validate="wps=on;enterprise=off" value="3"></Choice>
        <Choice value="1"></Choice>
      </Field>
      <Field name="wireless_auth" type="WEPMODE" validate="sm=wep" property="ChoiceInt" match="name=&quot;config.wireless.auth&quot; value=&quot;([\d])&quot;">
        <Choice result="1" value="0">
          <!--Open-->
        </Choice>
        <Choice result="2" value="1">
          <!--Shared-->
        </Choice>
      </Field>
      <Field name="wireless_keylen" type="NOOP" validate="sm=wep" property="ChoiceInt" match="name=&quot;config.wireless.keylen&quot; value=&quot;([\d])&quot;">
        <Choice result="1" set="keylen=128"></Choice>
        <Choice result="0" set="keylen=64"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="name=&quot;config.wireless.keylen&quot; value=&quot;(0|1)&quot;" page="/Basic/Wireless.shtml">
        <Choice result="0" value="1">
          <!--value of 1 is indicative of 64 Bit-->
        </Choice>
        <Choice result="1" value="2">
          <!--value of 2 is indicative of 128 Bit-->
        </Choice>
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <Field name="64bitKEY1" type="WEPKEY1" validate="sm=wep;keylen=64" match="id=&quot;wep_key0&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY2" type="WEPKEY2" validate="sm=wep;keylen=64" match="id=&quot;wep_key1&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY3" type="WEPKEY3" validate="sm=wep;keylen=64" match="id=&quot;wep_key2&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY4" type="WEPKEY4" validate="sm=wep;keylen=64" match="id=&quot;wep_key3&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="128bitKEY1" type="WEPKEY1" validate="sm=wep;keylen=128" match="id=&quot;wep_key0&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY2" type="WEPKEY2" validate="sm=wep;keylen=128" match="id=&quot;wep_key1&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY3" type="WEPKEY3" validate="sm=wep;keylen=128" match="id=&quot;wep_key2&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY4" type="WEPKEY4" validate="sm=wep;keylen=128" match="id=&quot;wep_key3&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="CipherType" type="WPATYPE" validate="sm=wpapsk" property="ChoiceInt" match="name=&quot;config.wireless.wpa_cipher&quot; value=&quot;([\d])&quot;">
        <Choice result="1" value="0">
          <!--TKIP-->
        </Choice>
        <Choice result="2" value="1">
          <!--AES-->
        </Choice>
        <Choice result="3" value="1">
          <!--AES and TKIP-->
        </Choice>
      </Field>
      <!--uses &entityname;-->
      <Field name="PreSharedKey" type="WPAPASS" validate="sm=wpapsk" match="name=&quot;config.wireless.wpa_psk&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;"></Field>
    </WifiDeviceConfig>
    <!--Rosewill RNX-N4PS  HW: 1.00 FW: 1.1.4  2.19.2009-->
    <WifiDeviceConfig title="Rosewill RNX-N4PS" realm="Default: admin/admin" server="" user="admin" password="admin" page="/wlencrypt.htm">
      <Field name="PreLoginFound" type="FOUND" match="&lt;title&gt;401 Unauthorized&lt;/title&gt;&lt;body&gt;&lt;h1&gt;(401) Unauthorized&lt;/h1&gt;&lt;/body&gt;" page="/index.htm" required="false" />
      <Field name="PostLoginFound" type="FOUND" match="VENDORS.modelName==&quot;RNX-(N4PS)&quot; \|\| VENDORS.modelName==&quot;RNX-N400PS&quot;" page="/index.htm" />
      <Field name="modelname" type="SET" match="VENDORS.modelName==&quot;RNX-(N4PS)&quot; \|\| VENDORS.modelName==&quot;RNX-N400PS&quot;" page="/index.htm" />
      <!--Supports up to 4 ssid but get only the first.-->
      <Field name="SSID" type="SSID" match="var ssidList = \[[^e]*enable:&quot;1&quot;,ssid:&quot;(.+)&quot;\}," entity="\\(.)" page="/wlbasic.htm"></Field>
      <Field name="secmode" type="SET" property="Choice" match="secMode:&quot;([\d])&quot;,">
        <Choice result="0" value="disable" />
        <Choice value="enable" />
      </Field>
      <Field name="wlanauth" type="SET" property="Choice" match="wlan_auth:&quot;([\d])&quot;,">
        <Choice result="0" value="open" />
        <Choice result="1" value="auto" />
        <Choice result="2" value="shared" />
        <Choice result="3" value="wpapsk" set="wpaenc=tkip" />
        <Choice result="5" value="wpapsk" set="wpaenc=aes" />
        <Choice result="8" value="wpapsk" set="wpaenc=aes">
          <!--Auto WPAPSK.-->
        </Choice>
        <Choice value="nomatch"></Choice>
      </Field>
      <Field name="enable1x" type="SET" property="Choice" match="enable1X:&quot;([\d])&quot;,">
        <Choice result="0" value="no" />
        <Choice result="1" value="yes" />
      </Field>
      <Field name="wifisc_enabled" type="SET" match="wps_enable:'([\d])'," page="/wps.htm" property="Choice">
        <Choice result="0" value="no" />
        <Choice result="1" value="yes" />
      </Field>
      <Field name="wifisc_configured" type="SET" match="st.WpsStatus==([\d])" page="/wps.htm" property="Choice">
        <Choice result="0" value="no" />
        <Choice result="1" value="yes" />
      </Field>
      <Field name="wps" type="SET" property="ChoiceValidate">
        <Choice validate="wifisc_configured=yes;wifisc_enabled=yes" value="on" />
        <Choice value="off" />
      </Field>
      <Field name="SECURITY1" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="secmode=disable" value="1" set="sm=disable" />
        <Choice validate="wlanauth=wpapsk" value="3" set="sm=wpapsk" />
        <Choice validate="wlanauth=open;enable1x=no" value="2" set="sm=wep" />
        <Choice validate="wlanauth=shared;enable1x=no" value="2" set="sm=wep" />
        <Choice validate="wlanauth=auto;enable1x=no" value="2" set="sm=wep" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice validate="sm=unsupported" value="0"></Choice>
        <Choice validate="sm=wep" value="0"></Choice>
        <Choice validate="wps=on;enable1x=no" value="3"></Choice>
        <Choice value="1" />
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0" validate="wlanauth=open" />
        <Choice value="1" validate="wlanauth=shared" />
        <Choice value="2" validate="wlanauth=auto" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceInt" match="keyType:&quot;([\d])&quot;,">
        <Choice value="0" result="0" />
        <Choice value="1" result="1" />
        <Choice value="0" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="wep:&quot;([\d]*)&quot;,">
        <Choice value="1" result="64" />
        <Choice value="2" result="128" />
      </Field>
      <!--WEPKEY values do not appear in the source.-->
      <!--<Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" property="ChoiceValidateInt"><Choice value=""></Choice></Field>-->
      <!--special characters can break the security page.-->
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpapsk" match="wdsPskValue:&quot;(.+)&quot;,eMode:"></Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpapsk" property="ChoiceValidateInt">
        <Choice validate="wpaenc=tkip" value="0"></Choice>
        <Choice value="1" />
      </Field>
    </WifiDeviceConfig>
    <!--SMC 2555W-AG2 h/w R01 f/w v3.0.0.2 2.11.2009-->
    <WifiDeviceConfig title="SMC 2555W-AG2" server="" user="admin" password="smcadmin" page="/login.htm" login="/index.htm" data="userid=%user%&amp;passwd=%password%&amp;Submit=LOGIN">
      <!--ModelNumber does not appear anywhere in web setup source. Checking for the vendor only.-->
      <Field name="routerPresentCheck" required="false" type="FOUND" match="(&lt;title&gt;SMC Enterprise Access Point&lt;/title&gt;)" page="/" skipLogin="true"></Field>
      <Field name="Maker" type="NOOP" match="(SMC)" page="/" skiplogin="true" />
      <!--This check makes the XML file specific to SMC AP's that include 802.11a settings.-->
      <Field name="Postloginfind" type="FOUND" match="(SMC)"></Field>
      <Field name="has80211a" type="NOOP" match="(802.11a)" page="/rd1_multi_ssid.htm" />
      <!--Will retrieve settings ONLY for the first of 8 possible SSID.-->
      <Field name="ssid" type="SSID" match="name=&quot;szSsidgString&quot; size=32 value=&quot;([^&quot;]*)&quot;" page="/rd2_multi_ssid.htm" />
      <Field name="encryption" type="SET" match="name=&quot;sgWepSetup&quot; value=&quot;([\d])&quot;[\s]*CHECKED" page="/rd2_sec_ssid_0_.htm" property="Choice">
        <Choice result="1" value="on" />
        <Choice result="0" value="off" />
      </Field>
      <Field name="802setup" type="SET" match="name=&quot;sgSetup1x_vap0&quot; value=&quot;([\d])&quot;[\s]*CHECKED" page="/rd2_sec_ssid_0_.htm" property="Choice">
        <Choice result="0" value="disable" />
        <Choice result="1" value="disable">
          <!--"supported", but we will be able to connect while it is in this state.-->
        </Choice>
        <Choice result="2" value="required" />
      </Field>
      <Field name="cipher" type="SET" match="id=&quot;([\w]*)&quot; name=&quot;sgWPAMulticastCipherMode&quot; value=&quot;[\d]&quot;[\s]*CHECKED" page="/rd2_sec_ssid_0_.htm" property="Choice">
        <Choice result="modeWep" value="wep" />
        <Choice result="modeTkip" value="tkip" set="wepcipher=no"></Choice>
        <Choice result="modeAES" value="aes" set="wepcipher=no" />
      </Field>
      <Field name="authtype" type="SET" match="name=&quot;sgAuthType&quot; id=&quot;([\w]*)&quot;[^&gt;]*CHECKED" page="/rd2_sec_ssid_0_.htm" property="Choice">
        <Choice result="OpenSystem" value="open" />
        <Choice result="ShareKey" value="shared" />
        <Choice result="WPA" value="wparadius" />
        <Choice result="WPA_PSK" value="wpapsk" />
        <Choice result="WPA2" value="wpa2radius" />
        <Choice result="WPA2_PSK" value="wpapsk" />
        <Choice result="WPA_WPA2_mixed" value="wpamixedradius" />
        <Choice result="WPA_WPA2_PSK_mixed" value="wpapsk" />
      </Field>
      <Field name="Securityflags" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="encryption=off" value="1" set="sm=disabled" />
        <Choice validate="802setup=required" value="0" set="sm=unsupported" />
        <Choice validate="encryption=on;802setup=disable;authtype=open" value="2" set="sm=wep" />
        <Choice validate="encryption=on;802setup=disable;authtype=shared" value="2" set="sm=wep" />
        <Choice validate="encryption=on;802setup=disable;authtype=wpapsk;wepcipher=no" value="3" set="sm=wpa" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceInt" match="key type[^q]*name=&quot;sgKeyType&quot; value=&quot;(\d)&quot;  CHECKED" page="/rd2_set_brief.htm">
        <Choice value="0" result="0"></Choice>
        <Choice value="1" result="1"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="name=&quot;sgSharedKey_1&quot;.*value=&quot;(\d)&quot;\s*CHECKED" page="/rd2_set_brief.htm">
        <Choice value="1" result="2"></Choice>
        <Choice value="2" result="6"></Choice>
      </Field>
      <Field name="WEPMODE1" type="WEPMODE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice validate="authtype=shared" value="1" />
        <Choice validate="authtype=open" value="0" />
      </Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceValidateInt">
        <Choice validate="cipher=aes" value="1" />
        <Choice validate="cipher=tkip" value="0" />
      </Field>
      <!--Only shows asterisks in the source.-->
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" property="ChoiceValidate">
        <Choice value="" />
      </Field>
      <!--<Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" property="ChoiceValidate"><Choice value="" /></Field>-->
      <!--<Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" property="ChoiceValidate"><Choice value="" /></Field>-->
      <!--<Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" property="ChoiceValidate"><Choice value="" /></Field>-->
      <!--<Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" property="ChoiceValidate"><Choice value="" /></Field>-->
    </WifiDeviceConfig>
    <!--SMC 2552W-G2 h/w R01 f/w v5.0.0.3 2.11.2009-->
    <WifiDeviceConfig title="SMC 2552W-G2" server="" realm="" user="admin" password="smcadmin" page="/login.htm" login="/index.htm" data="userid=%user%&amp;passwd=%password%&amp;Submit=LOGIN">
      <!--ModelNumber does not appear anywhere in web setup source. Checking for the vendor only.-->
      <!--Server and Realm are not being returned from the device.-->
      <Field name="routerPresentCheck" type="FOUND" required="FALSE" match="(&lt;title&gt;SMC Enterprise Access Point&lt;/title&gt;)" skiplogin="true" page="/index.htm" />
      <Field name="Postloginfind" type="FOUND" match="(&lt;title&gt;SMC Enterprise Access Point&lt;/title&gt;)" page="/" />
      <Field name="Maker" type="NOOP" match="(SMC)" page="/" skiplogin="true" />
      <!--Will retrieve settings ONLY for the first of 8 possible SSID.-->
      <Field name="ssid" type="SSID" match="name=&quot;szSsidgString&quot; size=32 value=&quot;([^&quot;]*)&quot;" page="/rd2_multi_ssid.htm" />
      <Field name="encryption" type="SET" match="name=&quot;sgWepSetup&quot; value=&quot;([\d])&quot;[\s]*CHECKED" page="/rd2_sec_ssid_0_.htm" property="Choice">
        <Choice result="1" value="on" />
        <Choice result="0" value="off" />
      </Field>
      <Field name="802setup" type="SET" match="name=&quot;sgSetup1x_vap0&quot; value=&quot;([\d])&quot;[\s]*CHECKED" page="/rd2_sec_ssid_0_.htm" property="Choice">
        <Choice result="0" value="disable" />
        <Choice result="1" value="disable">
          <!--"supported", but we will be able to connect while it is in this state.-->
        </Choice>
        <Choice result="2" value="required" />
      </Field>
      <Field name="cipher" type="SET" match="id=&quot;([\w]*)&quot; name=&quot;sgWPAMulticastCipherMode&quot; value=&quot;[\d]&quot;[\s]*CHECKED" page="/rd2_sec_ssid_0_.htm" property="Choice">
        <Choice result="modeWep" value="wep" />
        <Choice result="modeTkip" value="tkip" set="wepcipher=no"></Choice>
        <Choice result="modeAES" value="aes" set="wepcipher=no" />
      </Field>
      <Field name="authtype" type="SET" match="name=&quot;sgAuthType&quot; id=&quot;([\w]*)&quot;[^&gt;]*CHECKED" page="/rd2_sec_ssid_0_.htm" property="Choice">
        <Choice result="OpenSystem" value="open" />
        <Choice result="ShareKey" value="shared" />
        <Choice result="WPA" value="wparadius" />
        <Choice result="WPA_PSK" value="wpapsk" />
        <Choice result="WPA2" value="wpa2radius" />
        <Choice result="WPA2_PSK" value="wpapsk" />
        <Choice result="WPA_WPA2_mixed" value="wpamixedradius" />
        <Choice result="WPA_WPA2_PSK_mixed" value="wpapsk" />
      </Field>
      <Field name="Securityflags" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="encryption=off" value="1" set="sm=disabled" />
        <Choice validate="802setup=required" value="0" set="sm=unsupported" />
        <Choice validate="encryption=on;802setup=disable;authtype=open" value="2" set="sm=wep" />
        <Choice validate="encryption=on;802setup=disable;authtype=shared" value="2" set="sm=wep" />
        <Choice validate="encryption=on;802setup=disable;authtype=wpapsk;wepcipher=no" value="3" set="sm=wpa" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="InputInt" match="name=&quot;sgKeyType&quot; value=&quot;([0|1])&quot;  CHECKED" page="/rd2_set_brief.htm"></Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="name=&quot;sgSharedKey_1&quot;.* value=&quot;(2|6)&quot;  CHECKED" page="/rd2_set_brief.htm">
        <Choice result="2" value="1">
          <!--The radio button values are odd so result of 2 actually indicates 64 Bit Key Strength.-->
        </Choice>
        <Choice result="6" value="2">
          <!--The radio button values are odd so result of 6 actually indicates 128 Bit Key Strength.-->
        </Choice>
      </Field>
      <Field name="WEPMODE1" type="WEPMODE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice validate="authtype=shared" value="1" />
        <Choice validate="authtype=open" value="0" />
      </Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceValidateInt">
        <Choice validate="cipher=aes" value="1" />
        <Choice validate="cipher=tkip" value="0" />
      </Field>
      <!--Only shows asterisks in the source.-->
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" property="ChoiceValidate">
        <Choice value="" />
      </Field>
      <!--<Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" property="ChoiceValidate"><Choice value="" /></Field>-->
      <!--<Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" property="ChoiceValidate"><Choice value="" /></Field>-->
      <!--<Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" property="ChoiceValidate"><Choice value="" /></Field>-->
      <!--<Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" property="ChoiceValidate"><Choice value="" /></Field>-->
    </WifiDeviceConfig>
    <!--SMC 2890W AG h/w R01 f/w v4.3.4.1 2.11.2009-->
    <WifiDeviceConfig title="SMC 2890W AG" server="" realm="" user="admin" password="smcadmin" page="/login.htm" login="/index.htm" data="userid=%user%&amp;passwd=%password%&amp;Submit=LOGIN">
      <!--ModelNumber does not appear anywhere in web setup source. Checking for the vendor only.-->
      <Field name="routerPresentCheck" type="FOUND" match="(&lt;title&gt;SMC Enterprise Bridge&lt;/title&gt;)" page="/" skiplogin="true" />
      <Field name="Postloginfind" type="FOUND" match="(&lt;title&gt;SMC Enterprise Bridge&lt;/title&gt;)" page="/index.htm" skiplogin="true" />
      <Field name="Maker" type="NOOP" match="(SMC)" page="/" skiplogin="true" />
      <!--This check makes the XML file specific to SMC AP's that include 802.11a settings.-->
      <Field name="has80211a" type="NOOP" match="(802.11a)" page="/rd1_multi_ssid.htm" />
      <!--Will retrieve settings ONLY for the first of 8 possible SSID.-->
      <Field name="ssid" type="SSID" match="name=&quot;szSsidgString&quot; size=32 value=&quot;([^&quot;]*)&quot;" page="/rd2_multi_ssid.htm" />
      <Field name="encryption" type="SET" match="name=&quot;sgWepSetup&quot; value=&quot;([\d])&quot;[\s]*CHECKED" page="/rd2_sec_ssid_0_.htm" property="Choice">
        <Choice result="1" value="on" />
        <Choice result="0" value="off" />
      </Field>
      <Field name="802setup" type="SET" match="name=&quot;sgSetup1x_vap0&quot; value=&quot;([\d])&quot;[\s]*CHECKED" page="/rd2_sec_ssid_0_.htm" property="Choice">
        <Choice result="0" value="disable" />
        <Choice result="1" value="disable">
          <!--"supported", but we will be able to connect while it is in this state.-->
        </Choice>
        <Choice result="2" value="required" />
      </Field>
      <Field name="cipher" type="SET" match="id=&quot;([\w]*)&quot; name=&quot;sgWPAMulticastCipherMode&quot; value=&quot;[\d]&quot;[\s]*CHECKED" page="/rd2_sec_ssid_0_.htm" property="Choice">
        <Choice result="modeWep" value="wep" />
        <Choice result="modeTkip" value="tkip" set="wepcipher=no"></Choice>
        <Choice result="modeAES" value="aes" set="wepcipher=no" />
      </Field>
      <Field name="authtype" type="SET" match="name=&quot;sgAuthType&quot; id=&quot;([\w]*)&quot;[^&gt;]*CHECKED" page="/rd2_sec_ssid_0_.htm" property="Choice">
        <Choice result="OpenSystem" value="open" />
        <Choice result="ShareKey" value="shared" />
        <Choice result="WPA" value="wparadius" />
        <Choice result="WPA_PSK" value="wpapsk" />
        <Choice result="WPA2" value="wpa2radius" />
        <Choice result="WPA2_PSK" value="wpapsk" />
        <Choice result="WPA_WPA2_mixed" value="wpamixedradius" />
        <Choice result="WPA_WPA2_PSK_mixed" value="wpapsk" />
      </Field>
      <Field name="Securityflags" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="encryption=off" value="1" set="sm=disabled" />
        <Choice validate="802setup=required" value="0" set="sm=unsupported" />
        <Choice validate="encryption=on;802setup=disable;authtype=open" value="2" set="sm=wep" />
        <Choice validate="encryption=on;802setup=disable;authtype=shared" value="2" set="sm=wep" />
        <Choice validate="encryption=on;802setup=disable;authtype=wpapsk;wepcipher=no" value="3" set="sm=wpa" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="InputInt" match="name=&quot;sgKeyType&quot; value=&quot;(0|1)&quot;  CHECKED" page="/rd2_set_brief.htm"></Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="name=&quot;sgSharedKey_1&quot;.* value=&quot;(2|6)&quot;  CHECKED" page="/rd2_set_brief.htm">
        <Choice result="2" value="1">
          <!--Result of 2 indicates 64 Bit-->
        </Choice>
        <Choice result="6" value="2">
          <!--Result of 6 indicates 128 Bit-->
        </Choice>
      </Field>
      <Field name="WEPMODE1" type="WEPMODE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice validate="authtype=shared" value="1" />
        <Choice validate="authtype=open" value="0" />
      </Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceValidateInt">
        <Choice validate="cipher=aes" value="1" />
        <Choice validate="cipher=tkip" value="0" />
      </Field>
      <!--Only shows asterisks in the source.-->
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" property="ChoiceValidate">
        <Choice value="" />
      </Field>
      <!--<Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" property="ChoiceValidate"><Choice value="" /></Field>-->
      <!--<Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" property="ChoiceValidate"><Choice value="" /></Field>-->
      <!--<Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" property="ChoiceValidate"><Choice value="" /></Field>-->
      <!--<Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" property="ChoiceValidate"><Choice value="" /></Field>-->
    </WifiDeviceConfig>
    <!--SMC WBR14S-N2 H/W 01 Boot Code Version:  V0.12 2.20.2009-->
    <WifiDeviceConfig title="SMC WBR14S-N2" password="smcadmin" server="Apache/0.6.5" page="/index.stm" login="/cgi-bin/login.exe" data="totalMSec=1230035396.828&amp;pws=%password%">
      <Field type="SET" name="modelName" match="var PM=&quot;(SMCWBR14S-N2)&quot;;" skiplogin="true" page="/login.stm"></Field>
      <Field name="routerPresentCheck" type="FOUND" required="FALSE" match="(SMCWBR14S-N2)" skipLogin="FALSE" page="/login.stm"></Field>
      <Field name="Postloginfind" type="FOUND" match="(SMC Networks)" set="modelname=SMCWBR14T-G" page="/status_main.stm"></Field>
      <!--It's possible this router will be set to N wireless only. That scenario is not taken into account.-->
      <Field type="SSID" name="ssid" match="name=&quot;ssid&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;" page="/wireless_id.stm" />
      <Field type="SET" name="wscmode" match="var WSC_Mode = ([\d]);" page="/wireless_WPS.stm"></Field>
      <Field type="SET" name="clienttype" match="name=&quot;client_type&quot;&gt;[^&quot;]*&lt;option value=([\d]) selected&gt;[^&lt;]*&lt;/option&gt;" page="/wireless_e.stm" property="Choice">
        <Choice result="0" value="none" />
        <Choice result="1" value="wep" />
        <Choice result="2" value="wpa" />
        <Choice value="NOMATCH" />
      </Field>
      <Field type="SET" name="preshared" match="var WPAPSK=([\d]);" page="/wireless_wpa.stm"></Field>
      <Field name="Security" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="clienttype=none;" value="1" set="sm=none" />
        <Choice validate="clienttype=wep" value="2" set="sm=wep" />
        <Choice validate="clienttype=wpa;preshared=1" value="3" set="sm=wpa" />
        <Choice value="0" set="sm=NOTSUPPORTED" />
      </Field>
      <Field type="WPSMODE" name="WPSMODE" property="ChoiceValidateInt">
        <Choice validate="sm=wep" value="0" />
        <Choice validate="sm=NOTSUPPORTED" value="0" />
        <Choice validate="wscmode=1" value="3" />
        <Choice value="1" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="InputInt" match="var iDOD =  (\d)" page="/wireless_wep.stm"></Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="wep_len\[(\d)\].defaultChecked=true" page="/wireless_wep.stm">
        <Choice result="0" value="1" />
        <Choice result="1" value="2" />
      </Field>
      <!--This router has no option for AUTH MODE. Assuming open.-->
      <Field type="WEPMODE" name="wepmode" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field type="WEPKEY1" name="WEPKEY1" validate="sm=wep" match="document.form0.key1.value=&quot;(.+)&quot;;" page="/wireless_wep.stm"></Field>
      <Field type="WEPKEY2" name="WEPKEY2" validate="sm=wep" match="document.form0.key2.value=&quot;(.+)&quot;;" page="/wireless_wep.stm"></Field>
      <Field type="WEPKEY3" name="WEPKEY3" validate="sm=wep" match="document.form0.key3.value=&quot;(.+)&quot;;" page="/wireless_wep.stm"></Field>
      <Field type="WEPKEY4" name="WEPKEY4" validate="sm=wep" match="document.form0.key4.value=&quot;(.+)&quot;;" page="/wireless_wep.stm"></Field>
      <Field type="WPAPASS" name="wpapsk" validate="sm=wpa" entity="\\(.)" match="document.form0.sharedkey.value=&quot;(.+)&quot;;" page="/wireless_wpa.stm"></Field>
      <Field type="WPATYPE" name="wpatypecheck" validate="sm=wpa" match="name=&quot;cypher_suite&quot;&gt;[^&quot;]*&lt;option[\s]*value=[\d][\s]*selected&gt;([^&lt;]*)&lt;/option&gt;" property="ChoiceInt" page="/wireless_wpa.stm">
        <Choice result="TKIP" value="0" />
        <Choice result="AES" value="1" />
        <Choice result="TKIP+AES" value="1" />
        <Choice result="TKIP AES" value="1" />
      </Field>
    </WifiDeviceConfig>
    <!--SMC WEB-N 1.0.3.8 2.18.2009-->
    <WifiDeviceConfig title="SMC WEB-N" password="smcadmin" server="Ubicom/1.1" page="/Basic/Wireless.shtml" login="/post_login.xml?hash=%salt%%saltedHash%">
      <!--Model Number does not appear, except on an image whose link is not unique, and user editable system name.-->
      <Field name="routerPresentCheck" type="FOUND" required="false" match="(&lt;title&gt;&#x9;SMC Access Point : Login&lt;/title&gt;)" skiplogin="true" page="/" />
      <Field name="salt" type="SET" property="Input" match="var salt = &quot;(.+)&quot;" skiplogin="true" page="/" />
      <Field name="saltedHash" type="SET" property="ChoiceValidate" skiplogin="true" hashresult="true" fillsize="64" fillbyte="1" page="/">
        <Choice value="%salt%%password%" />
      </Field>
      <Field name="Postloginfind" type="FOUND" match="(&lt;title&gt;SMC Access Point : Basic / Wireless Settings&lt;/title&gt;)" skiplogin="false" page="/Basic/Wizard_Wireless.shtml"></Field>
      <Field name="Maker" type="NOOP" property="Input" match="(SMC), Inc." skiplogin="true" page="/" />
      <!--Special characters here break the page.-->
      <Field name="ssid" type="SSID" match="&lt;input[^&gt;]*id=&quot;wireless_SSID&quot;[^&gt;]*value=&quot;(.+)&quot; name=&quot;config." />
      <Field name="wifisc" type="SET" match="var wifisc_enabled = &quot;([\w]*)&quot;" page="/Status/Device_Info.shtml"></Field>
      <Field name="wpsenable" type="SET" match="var wifisc_enabled = &quot;([\w]*)&quot;" page="/Status/Device_Info.shtml"></Field>
      <Field name="wpsconfig" type="SET" match="var wifisc_configured = &quot;([\w]*)&quot;;" page="/Status/Device_Info.shtml"></Field>
      <Field name="wps" type="SET" property="ChoiceValidate">
        <Choice validate="wpsenable=true;wpsconfig=true" value="on" />
        <Choice value="off" />
      </Field>
      <Field name="wireless_ieee8021x_enabled" type="NOOP" property="Choice" match="name=&quot;config.wireless.ieee8021x_enabled&quot; value=&quot;([\w]*)&quot;">
        <Choice result="true" set="enterprise=on" />
        <Choice result="false" set="enterprise=off" />
      </Field>
      <Field name="wireless_wpa_enabled" type="NOOP" property="ChoiceInt" match="name=&quot;config.wireless.wpa_enabled&quot; value=&quot;([\w]*)&quot;">
        <Choice set="wpa=enabled" result="true" />
        <Choice result="false" set="wpa=disabled" />
      </Field>
      <Field name="wireless_wepon" type="NOOP" property="ChoiceInt" match="name=&quot;config.wireless.wepon&quot; value=&quot;([\w]*)&quot;">
        <Choice set="wep=disabled" result="false" />
        <Choice set="wep=enabled" result="true" />
      </Field>
      <Field name="Security" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="wep=disabled;wpa=disabled" value="1" set="sm=none" />
        <Choice validate="wep=enabled;wpa=disabled" value="2" set="sm=wep" />
        <Choice validate="wep=disabled;wpa=enabled;enterprise=off" value="3" set="sm=wpapsk" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice validate="sm=wep" value="0"></Choice>
        <Choice validate="sm=unsupported" value="0"></Choice>
        <Choice validate="wps=on" value="3"></Choice>
        <Choice validate="wps=off" value="1"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" match="name=&quot;config.wireless.keylen&quot; value=&quot;(0|1)&quot;">
        <Choice result="0" value="1"></Choice>
        <Choice result="1" value="2"></Choice>
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <Field name="wireless_auth" type="WEPMODE" validate="sm=wep" property="ChoiceInt" match="name=&quot;config.wireless.auth&quot; value=&quot;([\d])&quot;">
        <Choice result="2" value="1">
          <!--Shared-->
        </Choice>
        <Choice result="1" value="0">
          <!--"open" in the dropdown-->
        </Choice>
      </Field>
      <Field name="wireless_keylen" type="NOOP" validate="sm=wep" property="ChoiceInt" match="name=&quot;config.wireless.keylen&quot; value=&quot;([\d])&quot;">
        <Choice result="1" set="keylen=128"></Choice>
        <Choice value="0" set="keylen=64"></Choice>
      </Field>
      <Field name="64bitKEY1" type="WEPKEY1" validate="sm=wep;keylen=64" match="id=&quot;wep_key0&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY2" type="WEPKEY2" validate="sm=wep;keylen=64" match="id=&quot;wep_key1&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY3" type="WEPKEY3" validate="sm=wep;keylen=64" match="id=&quot;wep_key2&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY4" type="WEPKEY4" validate="sm=wep;keylen=64" match="id=&quot;wep_key3&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="128bitKEY1" type="WEPKEY1" validate="sm=wep;keylen=128" match="id=&quot;wep_key0&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY2" type="WEPKEY2" validate="sm=wep;keylen=128" match="id=&quot;wep_key1&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY3" type="WEPKEY3" validate="sm=wep;keylen=128" match="id=&quot;wep_key2&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY4" type="WEPKEY4" validate="sm=wep;keylen=128" match="id=&quot;wep_key3&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="CipherType" type="WPATYPE" validate="sm=wpapsk" property="ChoiceInt" match="name=&quot;config.wireless.wpa_cipher&quot; value=&quot;([\d])&quot;">
        <Choice result="1" value="0">
          <!--TKIP-->
        </Choice>
        <Choice result="2" value="1">
          <!--AES-->
        </Choice>
        <Choice result="3" value="1">
          <!--AES and TKIP-->
        </Choice>
      </Field>
      <Field name="PreSharedKey" type="WPAPASS" validate="sm=wpapsk" match="name=&quot;config.wireless.wpa_psk&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;"></Field>
    </WifiDeviceConfig>
    <!--SMC WGBR14-N F/W 1.0.1.2 2.20.2009-->
    <WifiDeviceConfig title="SMC WGBR14-N" password="smcadmin" server="Ubicom/1.1" page="/Basic/Wireless.shtml" login="/post_login.xml?hash=%salt%%saltedHash%">
      <!--Model Number does not appear, except on an image whose link is not unique, and user editable system name.-->
      <Field name="routerPresentCheck" type="FOUND" required="fa;se" match="(&lt;title&gt;SMC StreamEngine Router : Login&lt;/title&gt;)" skiplogin="true" page="/"></Field>
      <Field name="salt" type="SET" property="Input" match="var salt = &quot;(.+)&quot;" skiplogin="true" page="/" />
      <Field name="saltedHash" type="SET" property="ChoiceValidate" skiplogin="true" hashresult="true" fillsize="64" fillbyte="1" page="/">
        <Choice value="%salt%%password%"></Choice>
      </Field>
      <Field name="Postloginfind" type="FOUND" match="(&lt;title&gt;SMC StreamEngine Router : Basic / Internet&lt;/title&gt;)" skiplogin="false" page="/Basic/Internet.shtml"></Field>
      <Field name="Maker" type="NOOP" property="Input" match="(SMC), Inc." skiplogin="true" page="/" />
      <Field name="ssid" type="SSID" match="var escapeValue = &quot;([^&quot;]*)&quot;;" />
      <Field name="wifisc_enabled" type="NOOP" property="ChoiceInt" match="var wifisc_enabled = &quot;([\w]*)&quot;" page="/Status/Device_Info.shtml">
        <Choice result="false" set="wpsenabled=no;wps=off"></Choice>
        <Choice result="true" set="wpsenabled=yes" />
      </Field>
      <Field name="wifisc_configured" type="NOOP" property="ChoiceInt" validate="wpsenabled=yes" match="var wifisc_configured = &quot;([\w]*)&quot;" page="/Status/Device_Info.shtml">
        <Choice set="wps=on" result="true"></Choice>
        <Choice set="wps=off"></Choice>
      </Field>
      <Field name="wireless_ieee8021x_enabled" type="NOOP" property="Choice" match="name=&quot;config.wireless.ieee8021x_enabled&quot; value=&quot;([\w]*)&quot;">
        <Choice result="true" set="enterprise=on" />
        <Choice result="false" set="enterprise=off" />
      </Field>
      <Field name="wireless_wpa_enabled" type="NOOP" property="ChoiceInt" match="name=&quot;config.wireless.wpa_enabled&quot; value=&quot;([\w]*)&quot;">
        <Choice set="wpa=enabled" result="true" />
        <Choice result="false" set="wpa=disabled" />
      </Field>
      <Field name="wireless_wepon" type="NOOP" property="ChoiceInt" match="name=&quot;config.wireless.wepon&quot; value=&quot;([\w]*)&quot;">
        <Choice set="wep=disabled" result="false" />
        <Choice set="wep=enabled" result="true" />
      </Field>
      <Field name="Security" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="wep=disabled;wpa=disabled" value="1" set="sm=none" />
        <Choice validate="wep=enabled;wpa=disabled" value="2" set="sm=wep" />
        <Choice validate="wep=disabled;wpa=enabled;enterprise=off" value="3" set="sm=wpapsk" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice validate="sm=unsupported" value="0"></Choice>
        <Choice validate="sm=wep" value="0"></Choice>
        <Choice validate="wps=on;enterprise=off" value="3"></Choice>
        <Choice value="1"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="name=&quot;config.wireless.keylen&quot; value=&quot;(0|1)&quot;">
        <Choice result="0" value="1"></Choice>
        <Choice result="1" value="2"></Choice>
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <Field name="wireless_auth" type="WEPMODE" validate="sm=wep" property="ChoiceInt" match="name=&quot;config.wireless.auth&quot; value=&quot;([\d])&quot;">
        <Choice result="2" value="1">
          <!--Shared-->
        </Choice>
        <Choice result="1" value="0">
          <!--"open" in the dropdown-->
        </Choice>
      </Field>
      <Field name="wireless_keylen" type="NOOP" validate="sm=wep" property="ChoiceInt" match="name=&quot;config.wireless.keylen&quot; value=&quot;([\d])&quot;">
        <Choice result="1" set="keylen=128"></Choice>
        <Choice value="0" set="keylen=64"></Choice>
      </Field>
      <Field name="64bitKEY1" type="WEPKEY1" validate="sm=wep;keylen=64" match="id=&quot;wep_key0&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY2" type="WEPKEY2" validate="sm=wep;keylen=64" match="id=&quot;wep_key1&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY3" type="WEPKEY3" validate="sm=wep;keylen=64" match="id=&quot;wep_key2&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY4" type="WEPKEY4" validate="sm=wep;keylen=64" match="id=&quot;wep_key3&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="128bitKEY1" type="WEPKEY1" validate="sm=wep;keylen=128" match="id=&quot;wep_key0&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY2" type="WEPKEY2" validate="sm=wep;keylen=128" match="id=&quot;wep_key1&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY3" type="WEPKEY3" validate="sm=wep;keylen=128" match="id=&quot;wep_key2&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY4" type="WEPKEY4" validate="sm=wep;keylen=128" match="id=&quot;wep_key3&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="CipherType" type="WPATYPE" validate="sm=wpapsk" property="ChoiceInt" match="name=&quot;config.wireless.wpa_cipher&quot; value=&quot;([\d])&quot;">
        <Choice result="1" value="0">
          <!--TKIP-->
        </Choice>
        <Choice result="2" value="1">
          <!--AES-->
        </Choice>
        <Choice result="3" value="1">
          <!--AES and TKIP-->
        </Choice>
      </Field>
      <Field name="PreSharedKey" type="WPAPASS" validate="sm=wpapsk" match="name=&quot;config.wireless.wpa_psk&quot;[^&gt;]*value=&quot;(.+)&quot; onchange"></Field>
    </WifiDeviceConfig>
    <!--TRENDnet TEW-430APB HW D1.0R v1.00 2.10.2009-->
    <WifiDeviceConfig title="TRENDnet TEW-430APB" server="CAMEO-httpd" realm="802.11g WLAN" user="admin" password="admin" page="/basic_setting.html">
      <Field name="routerPresentCheck" required="false" type="FOUND" match="(cc9999)" page="/" skipLogin="true"></Field>
      <Field name="ModelCheck" type="NOOP" match="&lt;title&gt;TRENDNET [\|] (TEW-430APB) Utility" set="modelname=TEW430APB" />
      <Field name="Postloginfind" type="FOUND" match="(TEW-430APB)"></Field>
      <!--Uses &entityname;-->
      <Field name="SSID" type="SSID" match="name=&quot;ssid0&quot; size=&quot;32&quot; value=&quot;(.*)&quot;" />
      <Field name="AuthenticationRadios" type="SECURITY" property="ChoiceInt" match="name=&quot;authType&quot;[^&gt;]*value=&quot;([\S]*)&quot;[\s]*checked[\s]*onclick=&quot;show_wpa[\(][\)]&quot;">
        <Choice result="open" value="2" set="sm=wep;wepis=open" />
        <Choice result="shared" value="2" set="sm=wep;wepis=shared" />
        <Choice result="wpa-psk" value="3" set="sm=wpa;wpa=wpa1" />
        <Choice result="wpa2-psk" value="3" set="sm=wpa;wpa=wpa2" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceInt" match="function\supdateFormat[^}]*format\.selectedIndex\s=\s(\d);" page="/basic_setting.html">
        <Choice value="0" result="1"></Choice>
        <Choice value="1" result="0"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="name=&quot;length0&quot;\stype=&quot;radio&quot;\svalue=&quot;(\d)&quot;\schecked\sonclick=&quot;setDefaultKeyValue" page="/basic_setting.html">
        <Choice value="1" result="1"></Choice>
        <Choice value="2" result="2"></Choice>
      </Field>
      <Field name="WEPRadio" type="SECURITY" validate="sm=wep" property="ChoiceInt" match="name=&quot;wepEnabled0&quot;[^&gt;]*value=&quot;([\w]*)&quot;[\s]*checked[\s]*onclick=&quot;setWEPEnabled">
        <Choice result="OFF" value="1" set="sm=disabled" />
        <Choice result="ON" value="2" set="sm=wep" />
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice validate="wepis=open" value="0" />
        <Choice validate="wepis=shared" value="1" />
      </Field>
      <!--WEP/WPA keys are not shown in html source - obscured with asterisks.-->
      <!--<Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" property="ChoiceValidate"><Choice value="" /></Field>-->
      <!--<Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" property="ChoiceValidate"><Choice value="" /></Field>-->
      <!--<Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" property="ChoiceValidate"><Choice value="" /></Field>-->
      <!--<Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" property="ChoiceValidate"><Choice value="" /></Field>-->
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" property="ChoiceValidate">
        <Choice value="" />
      </Field>
      <!--There is no TKIP/AES option. This router supports only TKIP.-->
      <Field name="WPATYPE" type="WPATYPE" property="ChoiceValidateInt" validate="sm=wpa">
        <Choice value="0" />
      </Field>
      <!-- router does not support WPSMODE - set default to No WPS -->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!--TRENDnet TEW-450APB 5.01.01 2.9.2009-->
    <WifiDeviceConfig title="TRENDnet TEW-450APB" server="Embedded HTTP Server 5.01" user="admin" password="admin" page="/basic_setting.html">
      <!--realm is user editable.-->
      <!--realm="WirelessAccessPoint"-->
      <Field name="routerPresentCheck" required="false" type="FOUND" match="(&lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;401\sUnauthorized&lt;/TITLE&gt;&lt;/HEAD&gt;\n&lt;BODY\sBGCOLOR=&quot;#ffffff&quot;&gt;&lt;H4&gt;401\sUnauthorized&lt;/H4&gt;&lt;/BODY&gt;&lt;/HTML&gt;)" page="/" skipLogin="true"></Field>
      <Field name="ModelCheck" type="NOOP" match="&lt;title&gt;TRENDNET [\|] (TEW-450APB) Utility " set="modelname=TEW450APB" page="/status.htm" />
      <Field name="Postloginfind" type="FOUND" match="(TEW-450APB)"></Field>
      <Field name="SSID" type="SSID" match="name=&quot;ssid&quot;[^&gt;]*value=&quot;(.*)&quot;" page="/basic_setting.html">
        <!--entity names not converted-->
      </Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceInt" match="&lt;select id=&quot;wep_type&quot; name=&quot;wep_type&quot;[^&gt;]*&gt;[^z]*&lt;option value=&quot;([\d])&quot; selected">
        <Choice result="0" value="1" set="sm=none" />
        <Choice result="1" value="2" set="sm=wep" />
        <Choice result="2" value="3" set="sm=wpa;wpa=wpa" />
        <Choice result="3" value="3" set="sm=wpa;wpa=wpa2" />
      </Field>
      <Field name="SECURITYEAPCHECK" type="SECURITY" property="ChoiceInt" validate="sm=wpa" match="name=&quot;eap_type&quot;[^&gt;]*value=&quot;([\d])&quot;[^&gt;]*checked&gt;">
        <!--Set Security to unsupported if WPA is not PSK.-->
        <Choice result="0" value="3" set="sm=wpa" />
        <Choice result="1" value="0" set="sm=unsupported" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceInt" match="id=&quot;wep_key_type&quot;\sname=&quot;wep_key_type&quot;[^#]*value=&quot;(\d)&quot;\sselected" page="/basic_setting.html">
        <Choice value="0" result="0"></Choice>
        <Choice value="1" result="1"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="id=&quot;wep_key_len_\d+&quot;\sname=&quot;wep_key_len&quot;.*value=(\d+).*checked&gt;" page="/basic_setting.html">
        <Choice value="1" result="5"></Choice>
        <Choice value="2" result="13"></Choice>
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="name=&quot;key1&quot;[^&gt;]*value=&quot;([\S]*)&quot;&gt;" />
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="name=&quot;key2&quot;[^&gt;]*value=&quot;([\S]*)&quot;&gt;" />
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="name=&quot;key3&quot;[^&gt;]*value=&quot;([\S]*)&quot;&gt;" />
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="name=&quot;key4&quot;[^&gt;]*value=&quot;([\S]*)&quot;&gt;" />
      <Field name="WEPMODE" type="WEPMODE" property="ChoiceInt" validate="sm=wep" match="&lt;input name=&quot;auth_type&quot; type=&quot;radio&quot; value=&quot;([\d])&quot; checked">
        <Choice result="0" value="0" />
        <Choice result="1" value="1" />
        <Choice result="4" value="2" />
      </Field>
      <!--Assume the AP only supports TKIP when it fails to indicate WPA TYPE.-->
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" match="name=&quot;wpapsk1&quot;[^&gt;]*value=&quot;(.*)&quot;&gt;">
        <!--entity names not converted-->
      </Field>
      <!--No WPS support.-->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!--TRENDnet TEW-432BRP h/w c1.1r 2.00 2.5.2009-->
    <WifiDeviceConfig title="TRENDnet TEW-432BRP(C1)" realm="Trendnet" user="admin" password="admin" page="/wireless_auth.htm" server="Embedded HTTP Server 2.00">
      <Field name="routerPresentCheck" type="FOUND" required="FALSE" match="(#ffffff)" skipLogin="true" page="/" />
      <Field name="Postloginfind" type="FOUND" match="(TEW-432BRP)" set="modelname=TEW-432BRP" page="/lan.htm"></Field>
      <Field name="ModelCheck" type="NOOP" match="&lt;title&gt;TRENDNET [\S] (TEW-432BRP)" set="modelname=TEW432BRP" />
      <!--There are currently 4 f/w versions available for TEW-432BRP. This XML supports 2.00-->
      <Field name="FirmwareVer" type="NOOP" match="Firmware Version:[^&lt;]*(2.00)" page="/status.htm" />
      <Field name="SSID" type="SSID" match="name=&quot;[e]*ssid&quot;[^&gt;]*value=&quot;(.+)&quot;" page="/wireless_basic.htm" />
      <Field name="SECURITY" type="SECURITY" property="ChoiceInt" match="&lt;select id=&quot;wep_type&quot; name=&quot;wep_type&quot;[^&gt;]*&gt;[^z]*&lt;option value=&quot;([\d])&quot; selected">
        <Choice result="0" value="1" set="sm=none" />
        <Choice result="1" value="2" set="sm=wep" />
        <Choice result="2" value="3" set="sm=wpa;wpa=wpa" />
        <Choice result="3" value="3" set="sm=wpa;wpa=wpa2" />
      </Field>
      <Field name="SECURITYEAPCHECK" type="SECURITY" property="ChoiceInt" validate="sm=wpa" match="name=&quot;eap_type&quot;[^&gt;]*value=&quot;([\d])&quot;[^&gt;]*checked&gt;">
        <Choice result="0" value="3" set="sm=wpa" />
        <Choice result="1" value="0" set="sm=unsupported" />
      </Field>
      <!--Set Security to unsupported if WPA is not PSK.-->
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="selected&gt;([\d]*)-bit&lt;/option&gt;" page="/wireless_auth.htm">
        <Choice result="64" value="1" />
        <Choice result="128" value="2" />
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" match="&lt;option value=&quot;[\d]&quot; selected&gt;([\w]*)&lt;/option&gt;" property="ChoiceInt" page="/wireless_auth.htm">
        <Choice result="hex" value="0" />
        <Choice result="ascii" value="1" />
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="name=&quot;key1&quot;[^&gt;]*value=&quot;([\S]*)&quot;&gt;" />
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="name=&quot;key2&quot;[^&gt;]*value=&quot;([\S]*)&quot;&gt;" />
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="name=&quot;key3&quot;[^&gt;]*value=&quot;([\S]*)&quot;&gt;" />
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="name=&quot;key4&quot;[^&gt;]*value=&quot;([\S]*)&quot;&gt;" />
      <Field name="WEPMODE" type="WEPMODE" property="ChoiceInt" validate="sm=wep" match="&lt;input name=&quot;auth_type&quot; type=radio value=([\d]) checked&gt;">
        <Choice result="0" value="0" />
        <Choice result="1" value="1" />
        <Choice result="4" value="2" />
      </Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceInt" match="&lt;input name=&quot;cipher_type&quot; type=&quot;radio&quot; value=&quot;([\d])&quot; checked&gt;">
        <Choice result="0" value="0" />
        <Choice result="1" value="1" />
        <Choice result="2" value="1">
          <!--use AES for "Auto"-->
        </Choice>
      </Field>
      <!--No WPS support.-->
      <!--Uses &entityname for special characters.-->
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" match="name=&quot;wpapsk1&quot;[^&gt;]*value=&quot;(.+)&quot;&gt;" />
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
    </WifiDeviceConfig>
    <!--TRENDnet TEW-631BRP Using HW v3.0R F/W 1.0.3.5    |   2.19.2009-->
    <WifiDeviceConfig title="TRENDnet TEW-631BRP" password="" page="/Basic/Wireless.shtml" login="/post_login.xml?hash=%salt%%saltedHash%" server="Ubicom/1.1">
      <Field name="routerPresentCheck" type="FOUND" required="FALSE" match="(TEW-631BRP)" skiplogin="true" page="/"></Field>
      <Field name="salt" type="SET" property="Input" match="var salt = &quot;(.+)&quot;" skiplogin="true" page="/" />
      <Field name="saltedHash" type="SET" property="ChoiceValidate" skiplogin="true" hashresult="true" fillsize="64" fillbyte="1" page="/">
        <Choice value="%salt%%password%" />
      </Field>
      <Field name="Postloginfind" type="FOUND" match="(TEW-631BRP)" set="modelname=TEW-631BRP" page="/Basic/Wizard.shtml"></Field>
      <Field name="modelName" type="SET" property="Input" match="(TEW-631BRP)" skiplogin="false" page="/" />
      <!--special characters can break the field.-->
      <Field name="ssid" type="SSID" match="&lt;input[^&gt;]*id=&quot;wireless_SSID&quot;[^&gt;]*value=&quot;(.+)&quot;[^&gt;]*name=&quot;config.wireless.SSID&quot;[^&gt;]*&gt;" />
      <Field name="wifisc_enabled" type="NOOP" property="ChoiceInt" match="var wifisc_enabled = &quot;([\w]*)&quot;" page="/Status/Device_Info.shtml">
        <Choice result="false" set="wpsenabled=no;wps=off"></Choice>
        <Choice result="true" set="wpsenabled=yes;wps=on" />
      </Field>
      <Field name="wireless_ieee8021x_enabled" type="NOOP" property="Choice" match="name=&quot;config.wireless.ieee8021x_enabled&quot; value=&quot;([\w]*)&quot;">
        <Choice result="true" set="enterprise=on" />
        <Choice result="false" set="enterprise=off" />
      </Field>
      <Field name="wireless_wpa_enabled" type="NOOP" property="ChoiceInt" match="name=&quot;config.wireless.wpa_enabled&quot; value=&quot;([\w]*)&quot;">
        <Choice set="wpa=enabled" result="true" />
        <Choice result="false" set="wpa=disabled" />
      </Field>
      <Field name="wireless_wepon" type="NOOP" property="ChoiceInt" match="name=&quot;config.wireless.wepon&quot; value=&quot;([\w]*)&quot;">
        <Choice set="wep=disabled" result="false" />
        <Choice set="wep=enabled" result="true" />
      </Field>
      <Field name="Security" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="wep=disabled;wpa=disabled;" value="1" set="sm=none" />
        <Choice validate="wep=enabled;wpa=disabled;" value="2" set="sm=wep" />
        <Choice validate="wep=disabled;wpa=enabled;enterprise=off" value="3" set="sm=wpapsk" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice validate="sm=wep" value="0"></Choice>
        <Choice validate="sm=unsupported" value="0"></Choice>
        <Choice validate="wps=on" value="3"></Choice>
        <Choice validate="wps=off" value="1" />
      </Field>
      <Field name="wireless_auth" type="WEPMODE" validate="sm=wep" property="ChoiceInt" match="name=&quot;config.wireless.auth&quot; value=&quot;([\d])&quot;">
        <Choice result="2" value="1">
          <!--Shared-->
        </Choice>
        <Choice result="1" value="0">
          <!--"Open" in the dropdown-->
        </Choice>
      </Field>
      <Field name="wireless_keylen" type="NOOP" validate="sm=wep" property="ChoiceInt" match="name=&quot;config.wireless.keylen&quot; value=&quot;([\d])&quot;">
        <Choice result="1" set="keylen=128"></Choice>
        <Choice value="0" set="keylen=64"></Choice>
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="config.wireless.keylen&quot; value=&quot;([\d])&quot;" page="/Basic/Wireless.shtml">
        <Choice result="0" value="1" />
        <Choice result="1" value="2" />
      </Field>
      <Field name="64bitKEY1" type="WEPKEY1" validate="sm=wep;keylen=64" match="id=&quot;wep_key0&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY2" type="WEPKEY2" validate="sm=wep;keylen=64" match="id=&quot;wep_key1&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY3" type="WEPKEY3" validate="sm=wep;keylen=64" match="id=&quot;wep_key2&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY4" type="WEPKEY4" validate="sm=wep;keylen=64" match="id=&quot;wep_key3&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="128bitKEY1" type="WEPKEY1" validate="sm=wep;keylen=128" match="id=&quot;wep_key0&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY2" type="WEPKEY2" validate="sm=wep;keylen=128" match="id=&quot;wep_key1&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY3" type="WEPKEY3" validate="sm=wep;keylen=128" match="id=&quot;wep_key2&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY4" type="WEPKEY4" validate="sm=wep;keylen=128" match="id=&quot;wep_key3&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="CipherType" type="WPATYPE" validate="sm=wpapsk" property="ChoiceInt" match="name=&quot;config.wireless.wpa_cipher&quot; value=&quot;([\d])&quot;">
        <Choice result="1" value="0">
          <!--TKIP-->
        </Choice>
        <Choice result="2" value="1">
          <!--AES-->
        </Choice>
        <Choice result="3" value="1">
          <!--AES and TKIP-->
        </Choice>
      </Field>
      <!--special chars will break this field on the router.-->
      <Field name="PreSharedKey" type="WPAPASS" validate="sm=wpapsk" match="name=&quot;config.wireless.wpa_psk&quot;[^&gt;]*value=&quot;(.+)&quot; onchange=&quot;"></Field>
    </WifiDeviceConfig>
    <!--TRENDnet TEW-633GR Using HW v1.1R F/W 1.0.4.3 2.19.2009 jc-->
    <WifiDeviceConfig title="TRENDnet TEW-633GR" server="Ubicom/1.1" password="" user="" page="/Basic/Wireless.shtml" login="/post_login.xml?hash=%salt%%saltedHash%">
      <Field name="PreLoginFind" type="FOUND" match="TRENDnet (TEW-633GR)" skiplogin="true" required="false" page="/" />
      <Field name="salt" type="SET" property="Input" match="var salt = &quot;(.+)&quot;" skiplogin="true" page="/" />
      <Field name="saltedHash" type="SET" property="ChoiceValidate" skiplogin="true" hashresult="true" fillsize="64" fillbyte="1" page="/">
        <Choice value="%salt%%password%" />
      </Field>
      <Field name="PostLoginFind" type="FOUND" required="true" property="Input" match="(TEW-633GR)" />
      <Field name="modelName" type="SET" property="Input" match="(TEW-633GR)" skiplogin="false" page="/" />
      <Field name="ssid" type="SSID" property="Input" match="&lt;input[^&gt;]*id=&quot;wireless_SSID&quot;[^&gt;]*value=&quot;([^&quot;]*)&quot;[^&gt;]*name=&quot;config.wireless.SSID&quot;[^&gt;]*&gt;" />
      <Field name="wifisc_enabled" type="NOOP" property="ChoiceInt" match="var wifisc_enabled = &quot;([\w]*)&quot;" page="/Status/Device_Info.shtml">
        <Choice result="false" set="wpsenabled=no;wps=off"></Choice>
        <Choice result="true" set="wpsenabled=yes;wps=on" />
      </Field>
      <Field name="wireless_ieee8021x_enabled" type="NOOP" property="Choice" match="name=&quot;config.wireless.ieee8021x_enabled&quot; value=&quot;([\w]*)&quot;">
        <Choice result="true" set="enterprise=on" />
        <Choice result="false" set="enterprise=off" />
      </Field>
      <Field name="wireless_wpa_enabled" type="NOOP" property="ChoiceInt" match="name=&quot;config.wireless.wpa_enabled&quot; value=&quot;([\w]*)&quot;">
        <Choice set="wpa=enabled" result="true" />
        <Choice result="false" set="wpa=disabled" />
      </Field>
      <Field name="wireless_wepon" type="NOOP" property="ChoiceInt" match="name=&quot;config.wireless.wepon&quot; value=&quot;([\w]*)&quot;">
        <Choice set="wep=disabled" result="false" />
        <Choice set="wep=enabled" result="true" />
      </Field>
      <Field name="Security" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="wep=disabled;wpa=disabled;" value="1" set="sm=none" />
        <Choice validate="wep=enabled;wpa=disabled;" value="2" set="sm=wep" />
        <Choice validate="wep=disabled;wpa=enabled;enterprise=off" value="3" set="sm=wpapsk" />
        <Choice value="0" set="sm=unsupported" />
      </Field>
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" validate="sm=wep"></Choice>
        <Choice value="0" validate="sm=unsupported"></Choice>
        <Choice value="3" validate="wps=on"></Choice>
        <Choice value="1" validate="wps=off"></Choice>
      </Field>
      <Field name="wireless_auth" type="WEPMODE" validate="sm=wep" property="ChoiceInt" match="name=&quot;config.wireless.auth&quot; value=&quot;([\d])&quot;">
        <Choice result="2" value="1">
          <!--Shared-->
        </Choice>
        <Choice result="1" value="0">
          <!--"Open" in the dropdown-->
        </Choice>
      </Field>
      <Field name="wireless_keylen" type="NOOP" validate="sm=wep" property="ChoiceInt" match="name=&quot;config.wireless.keylen&quot; value=&quot;([\d])&quot;">
        <Choice result="1" set="keylen=128"></Choice>
        <Choice result="0" set="keylen=64"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceValidateInt">
        <Choice validate="keylen=64" value="1"></Choice>
        <Choice validate="keylen=128" value="2"></Choice>
      </Field>
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <Field name="64bitKEY1" type="WEPKEY1" validate="sm=wep;keylen=64" match="id=&quot;wep_key0&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY2" type="WEPKEY2" validate="sm=wep;keylen=64" match="id=&quot;wep_key1&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY3" type="WEPKEY3" validate="sm=wep;keylen=64" match="id=&quot;wep_key2&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="64bitKEY4" type="WEPKEY4" validate="sm=wep;keylen=64" match="id=&quot;wep_key3&quot;[^&gt;]*value=&quot;([\w]*)0000000000000000&quot;"></Field>
      <Field name="128bitKEY1" type="WEPKEY1" validate="sm=wep;keylen=128" match="id=&quot;wep_key0&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY2" type="WEPKEY2" validate="sm=wep;keylen=128" match="id=&quot;wep_key1&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY3" type="WEPKEY3" validate="sm=wep;keylen=128" match="id=&quot;wep_key2&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="128bitKEY4" type="WEPKEY4" validate="sm=wep;keylen=128" match="id=&quot;wep_key3&quot;[^&gt;]*value=&quot;([\w]*)&quot;"></Field>
      <Field name="CipherType" type="WPATYPE" validate="sm=wpapsk" property="ChoiceInt" match="name=&quot;config.wireless.wpa_cipher&quot; value=&quot;([\d])&quot;">
        <Choice result="1" value="0">
          <!--TKIP-->
        </Choice>
        <Choice result="2" value="1">
          <!--AES-->
        </Choice>
        <Choice result="3" value="1">
          <!--AES and TKIP-->
        </Choice>
      </Field>
      <!--special characters can break the field.-->
      <Field name="PreSharedKey" type="WPAPASS" validate="sm=wpapsk" match="name=&quot;config.wireless.wpa_psk&quot;[^&gt;]*value=&quot;(.+)&quot; onchange="></Field>
    </WifiDeviceConfig>
    <!--U.S. Robotics USR9108 F/W: 3.04L.01.07 2.11.2009-->
    <WifiDeviceConfig title="U.S. Robotics USR9108" server="micro_httpd" realm="" user="admin" password="admin" page="/info.html">
      <!--Take user login as it's password is less likey to be changed from defaults and require manual intervention.-->
      <Field name="routerPresentCheck" required="false" type="FOUND" match="cc9999[^$]*(http://www.acme.com/software/micro_httpd)" page="/" skipLogin="true"></Field>
      <Field name="modelname" type="SET" match="(U.S. Robotics) Corporation" />
      <Field name="Postloginfind" type="FOUND" match="(U.S. Robotics) Corporation"></Field>
      <Field name="SSID" type="SSID" match="&lt;div id=&quot;idWireless&quot;&gt;\n\n&lt;h3&gt;[^&lt;]*&lt;/h3&gt;[^&lt;]*&lt;table border=&quot;0&quot;&gt;\n[\s]*&lt;tr&gt;\n[\s | \t]*&lt;td&gt;&lt;label&gt;[^&lt;]*&lt;/label&gt;&lt;/td&gt;\n[\s]*&lt;td class=&quot;clsStatic&quot;&gt;([^&lt;]*)&lt;/td&gt;"></Field>
      <!--No WPS Support.-->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field name="wepenable" type="SET" match="initializeSecurity\(&quot;([\w]*)&quot;, &quot;([\w]*)&quot;\);" group="1"></Field>
      <Field name="sectype" type="SET" match="initializeSecurity\(&quot;([\w]*)&quot;, &quot;([\w]*)&quot;\);" group="0"></Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="sectype=none" value="1" set="sm=disabled" />
        <Choice validate="sectype=open" value="2" set="sm=wep" />
        <Choice validate="sectype=shared" value="2" set="sm=wep" />
        <Choice validate="sectype=psk" value="3" set="sm=wpa" />
        <Choice validate="sectype=psk2" value="3" set="sm=wpa" />
        <Choice validate="sectype=psk2mix" value="3" set="sm=wpa" />
        <Choice value="0" set="sm=nosupport" />
      </Field>
      <!--security pages do not show a difference for hex vs. ascii-->
      <Field name="WEPKEYTYPE" type="WEPKEYTYPE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice value="0"></Choice>
      </Field>
      <Field name="WEPSTRENGTH" type="WEPSTRENGTH" validate="sm=wep" property="ChoiceInt" match="var bit = '([\d])';" page="/wlsecurity.html">
        <Choice value="1" result="1"></Choice>
        <Choice value="2" result="0"></Choice>
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wep" property="ChoiceValidateInt">
        <Choice validate="sectype=open" value="0" />
        <Choice validate="sectype=shared" value="1" />
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="getWEPkey\(&quot;[\d]&quot;,[\s]*&quot;([^&quot;]*)&quot;,[\s]*&quot;([^&quot;]*)&quot;,[\s]*&quot;([^&quot;]*)&quot;,[\s]*&quot;([^&quot;]*)&quot;\)" group="0"></Field>
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="getWEPkey\(&quot;[\d]&quot;,[\s]*&quot;([^&quot;]*)&quot;,[\s]*&quot;([^&quot;]*)&quot;,[\s]*&quot;([^&quot;]*)&quot;,[\s]*&quot;([^&quot;]*)&quot;\)" group="1"></Field>
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="getWEPkey\(&quot;[\d]&quot;,[\s]*&quot;([^&quot;]*)&quot;,[\s]*&quot;([^&quot;]*)&quot;,[\s]*&quot;([^&quot;]*)&quot;,[\s]*&quot;([^&quot;]*)&quot;\)" group="2"></Field>
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="getWEPkey\(&quot;[\d]&quot;,[\s]*&quot;([^&quot;]*)&quot;,[\s]*&quot;([^&quot;]*)&quot;,[\s]*&quot;([^&quot;]*)&quot;,[\s]*&quot;([^&quot;]*)&quot;\)" group="3"></Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa" property="ChoiceInt" match="document.write\(getEncryption\(&quot;([^&quot;]*)&quot;\)">
        <Choice result="aes" value="1" />
        <Choice result="tkip" value="0" />
        <Choice result="tkip+aes" value="1" />
        <Choice result="tkip aes" value="1" />
        <Choice value="0" />
      </Field>
      <Field name="WPAPASS" type="WPAPASS" validate="sm=wpa" match="var wpaPskKey = '(.+)';" entity="\\(.)" page="/wlsecurity.html"></Field>
    </WifiDeviceConfig>
    <!--Zonet ZSR1124WE F/W:APR-M14H-V1.1.55EN-ZONET 1.28.2009-->
    <WifiDeviceConfig title="Zonet ZSR1124WE" user="guest" password="guest" page="/wireless_security.htm">
      <Field name="modelname" type="SET" match="\((ZSR1124WE)\)" page="/status.htm" />
      <Field name="SSID" type="SSID" match="ssid_str=&quot;([^&quot;]*)&quot;;" page="/wireless_basic.htm"></Field>
      <!--No WPS Support.-->
      <Field name="WPSMODE" type="WPSMODE" property="ChoiceValidateInt">
        <Choice value="0" />
      </Field>
      <Field name="primauth" type="SET" match="name=&quot;wl_prim_auth_type&quot; value=&quot;([^&quot;]*)&quot;&gt;"></Field>
      <Field name="SECURITY" type="SECURITY" property="ChoiceValidateInt">
        <Choice validate="primauth=None" value="1" set="sm=disabled" />
        <Choice validate="primauth=WEP" value="2" set="sm=wep" />
        <Choice validate="primauth=WPA_Only" value="3" set="sm=wpa;wpa=check" />
        <Choice validate="primauth=WPA2_Only" value="3" set="sm=wpa;wpa=aes" />
        <Choice validate="primauth=WPA_WPA2_Mixed" value="3" set="sm=wpa;wpa=aes" />
        <Choice value="0" set="sm=nosupport" />
      </Field>
      <Field name="WEPMODE" type="WEPMODE" validate="sm=wep" property="ChoiceInt" match="name=&quot;wl_wep_auth_type&quot; value=&quot;([\w]*)&quot;&gt;">
        <Choice result="Open" value="0" />
        <Choice result="Shared" value="1" />
        <Choice result="Both" value="2" />
      </Field>
      <Field name="WEPKEY1" type="WEPKEY1" validate="sm=wep" match="name=&quot;KeyVal1&quot; value=&quot;([^&quot;]*)&quot;"></Field>
      <Field name="WEPKEY2" type="WEPKEY2" validate="sm=wep" match="name=&quot;KeyVal2&quot; value=&quot;([^&quot;]*)&quot;"></Field>
      <Field name="WEPKEY3" type="WEPKEY3" validate="sm=wep" match="name=&quot;KeyVal3&quot; value=&quot;([^&quot;]*)&quot;"></Field>
      <Field name="WEPKEY4" type="WEPKEY4" validate="sm=wep" match="name=&quot;KeyVal4&quot; value=&quot;([^&quot;]*)&quot;"></Field>
      <Field name="WPATYPE" type="WPATYPE" validate="sm=wpa;wpa=check" property="ChoiceInt" match="name=&quot;wl_wpa_auth_type&quot; value=&quot;([\w]*)&quot;&gt;">
        <Choice result="AES" value="1" />
        <Choice result="TKIP" value="0" />
        <Choice value="0" />
      </Field>
      <Field name="WPA1PASS" type="WPAPASS" validate="sm=wpa;wpa=check" match="name=&quot;wl_sec_wpaPhrase&quot; value=&quot;([^&quot;]*)&quot;&gt;"></Field>
      <Field name="WPA2TYPEFORCE" type="WPATYPE" validate="sm=wpa;wpa=aes" property="ChoiceValidateInt">
        <Choice value="1" />
      </Field>
      <Field name="WPA2PASS" type="WPAPASS" validate="sm=wpa;wpa=aes" match="name=&quot;wl_sec_wpa2Phrase&quot; value=&quot;([^&quot;]*)&quot;&gt;"></Field>
    </WifiDeviceConfig>
  </WifiConfigurationList>
</WifiConfig>