";
/* table header */
print "\n";
print " " . gettext("Associated or ad-hoc peers") . "
| \n";
print "";
print "ADDR | ";
print "AID | ";
print "CHAN | ";
print "RATE | ";
print "RSSI | ";
print "IDLE | ";
print "TXSEQ | ";
print "RXSEQ | ";
print "CAPS | ";
print "ERP | ";
print " \n\n";
$states = array();
exec("/sbin/ifconfig {$rwlif} list sta 2>&1", $states, $ret);
array_shift($states);
$counter=0;
foreach($states as $state) {
$split = preg_split("/[ ]+/i", $state);
/* Split the rest by using spaces for this line using the 2nd part */
print "";
print "{$split[0]} | ";
print "{$split[1]} | ";
print "{$split[2]} | ";
print "{$split[3]} | ";
print "{$split[4]} | ";
print "{$split[5]} | ";
print "{$split[6]} | ";
print "{$split[7]} | ";
print "{$split[8]} | ";
print "{$split[9]} | ";
print " \n";
}
/* XXX: what stats to we get for adhoc mode? */
?>
Flags: A = authorized, E = Extended Rate (802.11g), P = Power save mode
Capabilities: E = ESS (infrastructure mode), I = IBSS (ad-hoc mode), P = privacy (WEP/TKIP/AES),
S = Short preamble, s = Short slot time
|