Revision c9e7d30d
Added by Scott Ullrich about 15 years ago
etc/inc/interfaces.inc | ||
---|---|---|
2119 | 2119 |
wpa_gmk_rekey={$wlcfg['wpa']['wpa_gmk_rekey']} |
2120 | 2120 |
wpa_strict_rekey={$wlcfg['wpa']['wpa_strict_rekey']} |
2121 | 2121 |
{$wpa_passphrase} |
2122 |
#Enable the next lines for preauth when roaming. Interface = wired or wireless interface talking to the AP you want to roam from/to |
|
2123 |
#rsn_preauth=1 |
|
2124 |
#rsn_preauth_interfaces=eth0 |
|
2125 | 2122 |
|
2126 | 2123 |
EOD; |
2127 | 2124 |
|
2125 |
if (isset($wlcfg['wpa']['rsn_preauth'])) { |
|
2126 |
$wpa .= <<<EOD |
|
2127 |
# Enable the next lines for preauth when roaming. Interface = wired or wireless interface talking to the AP you want to roam from/to |
|
2128 |
rsn_preauth=1 |
|
2129 |
rsn_preauth_interfaces={$if} |
|
2130 |
|
|
2131 |
EOD; |
|
2132 |
|
|
2133 |
} |
|
2128 | 2134 |
if($wlcfg['auth_server_addr'] && $wlcfg['auth_server_shared_secret']) { |
2129 | 2135 |
$auth_server_port = "1812"; |
2130 | 2136 |
if($wlcfg['auth_server_port']) |
... | ... | |
3280 | 3286 |
unlink_if_exists($cron_file); |
3281 | 3287 |
} |
3282 | 3288 |
|
3283 |
?> |
|
3289 |
?> |
usr/local/www/interfaces.php | ||
---|---|---|
275 | 275 |
$pconfig['wpa_strict_rekey'] = isset($wancfg['wireless']['wpa']['wpa_strict_rekey']); |
276 | 276 |
$pconfig['passphrase'] = $wancfg['wireless']['wpa']['passphrase']; |
277 | 277 |
$pconfig['ieee8021x'] = isset($wancfg['wireless']['wpa']['ieee8021x']['enable']); |
278 |
$pconfig['rsn_preauth'] = isset($wancfg['wireless']['wpa']['rsn_preauth']['enable']); |
|
278 | 279 |
$pconfig['ext_wpa_sw'] = $wancfg['wireless']['wpa']['ext_wpa_sw']; |
279 | 280 |
$pconfig['wpa_enable'] = isset($wancfg['wireless']['wpa']['enable']); |
280 | 281 |
} |
... | ... | |
745 | 746 |
$wancfg['wireless']['wpa']['mac_acl_enable'] = true; |
746 | 747 |
else if (isset($wancfg['wireless']['wpa']['mac_acl_enable'])) |
747 | 748 |
unset($wancfg['wireless']['wpa']['mac_acl_enable']); |
749 |
if ($_POST['rsn_preauth'] == "yes") |
|
750 |
$wancfg['wireless']['wpa']['rsn_preauth']['enable'] = true; |
|
751 |
else |
|
752 |
unset($wancfg['wireless']['wpa']['rsn_preauth']['enable']); |
|
748 | 753 |
if ($_POST['ieee8021x'] == "yes") |
749 | 754 |
$wancfg['wireless']['wpa']['ieee8021x']['enable'] = true; |
750 | 755 |
else if (isset($wancfg['wireless']['wpa']['ieee8021x']['enable'])) |
... | ... | |
1948 | 1953 |
<br/> |
1949 | 1954 |
</td> |
1950 | 1955 |
</tr> |
1956 |
<tr> |
|
1957 |
<td valign="top" class="vncell">802.1X <?=gettext("Authentication Roaming Preauth"); ?></td> |
|
1958 |
<td class="vtable"> |
|
1959 |
<input name="rsn_preauth" id="rsn_preauth" type="checkbox" class="formfld unknown" size="66" value="yes" <? if ($pconfig['rsn_preauth']) echo "checked"; ?>> |
|
1960 |
<br/> |
|
1961 |
</td> |
|
1962 |
</tr> |
|
1951 | 1963 |
<? endif; ?> |
1952 | 1964 |
<tr> |
1953 | 1965 |
<td colspan="2" valign="top" height="16"></td> |
Also available in: Unified diff
Add 8021.x preauth (rsn_preauth)