|
From: Christopher N. <ch...@ne...> - 2005-06-21 17:26:31
|
Hi guys,
Here is the work I did yesterday it has some simple little changes and a
few new functions in it.
You probably want to remove the iwsettings.php changes in r108 as it
forces the site survey link. That is the only thing that is particular
to our installation.
Patch file is attached.
I'm not sure about my changes to `get_value()` as PHP and myself are
just getting acquainted again. The function is a little flaky on our
PHP 5.0.4 CGI interpreter. Sometimes no values are returned for a site
scan when I know `iwlist` is returning values for all cells.
I'm not sure if the test is done on the value assignment or the outcome
of strstr() in the if statement.
Here is the change log:
[nesscg@finger wifiadmin-branch]$ svn log -rHEAD:103
------------------------------------------------------------------------
r112 | nesscg | 2005-06-21 13:09:48 -0400 (Tue, 21 Jun 2005) | 4 lines
/iwstatus.php
- When the logs variable is set adjusted the text and link to
allow hiding of the log messages.
------------------------------------------------------------------------
r108 | nesscg | 2005-06-20 18:17:48 -0400 (Mon, 20 Jun 2005) | 17 lines
include/
(footer.php): Updated a spelling mistake
(functions.php)
get_value(): Test if the string was found before scanning
get_scan_results():
- Test if a frequency was found before trying to convert it to a channel.
- Update string search to use equal signs (probably a HostAP change).
get_hostap_stats():
- Wrote a new function to get data from the wif's statistics file
hostap_stat_short2human():
- Parses an array to make keys more human readable from the HostAP shortform.
(iwsettings.php):
- Force Site Survey link to always be printed.
- For scanning to work the HostAP driver needs these values:
iwpriv wlan0 other_ap_policy 3
iwpriv wlan0 ap_scan 1
------------------------------------------------------------------------
r103 | nesscg | 2005-06-20 12:32:31 -0400 (Mon, 20 Jun 2005) | 7 lines
The log link was ignoring the fact that HostAP has two devices and a
lot of the `dmesg` logging takes place as wifi*.
Made the grep command aware of the fact that it should be looking for
both:
''"wlan\|wifi"''
------------------------------------------------------------------------
--
Wireless Group,
McMaster University
finger.localdomain
13:11:57 up 1 day, 2:15, 1 user, load average: 0.12, 0.07, 0.01
|