exec("/sbin/ifconfig {$rwlif} list sta 2>&1",$states,$ret);
array_shift($states);
$counter=0;
foreach($statesas$state){
$split=preg_split("/[ ]+/i",$state);
/* Split the rest by using spaces for this line using the 2nd part */
print"<tr>";
print"<td>{$split[0]}</td>";
print"<td>{$split[1]}</td>";
print"<td>{$split[2]}</td>";
print"<td>{$split[3]}</td>";
print"<td>{$split[4]}</td>";
print"<td>{$split[5]}</td>";
print"<td>{$split[6]}</td>";
print"<td>{$split[7]}</td>";
print"<td>{$split[8]}</td>";
print"<td>{$split[9]}</td>";
print"</tr>\n";
}
/* XXX: what stats to we get for adhoc mode? */
?>
</tbody>
</table>
</div>
<b><?=gettext('Flags:')?></b><?=gettext('A = authorized, E = Extended Rate (802.11g), P = Power save mode')?><br/>
<b><?=gettext('Capabilities:')?></b><?=gettext('E = ESS (infrastructure mode), I = IBSS (ad-hoc mode), P = privacy (WEP/TKIP/AES), S = Short preamble, s = Short slot time')?>
<b><?=gettext('Flags:')?></b><?=gettext('A = authorized, E = Extended Rate (802.11g), P = Power save mode')?><br/>
<b><?=gettext('Capabilities:')?></b><?=gettext('E = ESS (infrastructure mode), I = IBSS (ad-hoc mode), P = privacy (WEP/TKIP/AES), S = Short preamble, s = Short slot time')?>