Allow ath or wi interfaces to use hostap correctly

This commit is contained in:
Scott Ullrich 2005-06-04 19:27:13 +00:00
parent 9ba517a2d3
commit 074d5eb4a7

View File

@ -125,8 +125,8 @@ function wireless_config_print() {
<td class="vtable"><select name="mode" class="formfld" id="mode">
<?php
$opts = array();
if (stristr($optcfg['if'], "wi" == true) ||
stristr($optcfg['if'], "ath") == true)
if (strstr($optcfg['if'], "wi") ||
strstr($optcfg['if'], "ath"))
$opts[] = "hostap";
$opts[] = "BSS";
$opts[] = "IBSS";