#!/bin/sh export DATE="14.9.2008";SCRIPT=${0#/rom} export TITLE="Amministrazione: Wireless" . ${SCRIPT%/*}/cgi-bin-pre.sh cat<Amministrazione: Wireless EOF if [ "$REQUEST_METHOD" = "POST" ]; then read QUERY_STRING fi if [ -z "$QUERY_STRING" ]; then #Speedups wifi_proto="$(nvram get wifi_proto)" test "olsr" = "$wifi_proto" && wifi_proto=static wl0_antdiv="$(nvram get wl0_antdiv)" wl0_txant="$(nvram get wl0_txant)" wl0_gmode="$(nvram get wl0_gmode)" wl0_rateset="$(nvram get wl0_rateset)" wl0_rate="$(nvram get wl0_rate)" wl0_mrate="$(nvram get wl0_mrate)" wl0_closed="$(nvram get wl0_closed)" wl0_phytype="$(nvram get wl0_phytype)" if [ "$(nvram get wl0_mode)" = "ap" ]; then wmode=master elif [ "$(nvram get wl0_infra)" = "1" ]; then wmode=client else wmode=ad-hoc fi cat<
Protocollo WLAN:
Indirizzo IP WLAN
Netmask della WLAN:
Rotta di default per la WLAN:
 
Tipo WLAN:
ESSID:
BSSID:
Canale:
Tipo di Scheda: 802.11a  802.11b/g
RX Antenna: Auto  Antenna A  Antenna B
TX Antenna: Auto  Antenna A  Antenna B
TX Power:
Override:
Regulatory Limit:
 dBm =  mW
Cable/Plug Loss:
 dB
Antenna Gain:
 dBi
Result:
 qdBm =  mW   
Distanza (Metro):
Tipo Radio:
Broadcast (E)SSID: attiva   Disattiva
Velocità di base (Basic Rate):
Velocità di Trasmissione:
Velocità Multicast:
Protezione CTS:
Frame Burst:
Intervallo di Segnalazione
Intervallo DTIM:
Fragmentation Threshold:
Soglia RTS:
Valore MTU:
 
   

Suggerimento: Per la maggior marte degli apparati il settaggio Antenna A abilita l'antenna di sinistra (guardando di fronte).

EOF else IFS=\&;set ${QUERY_STRING%%[^%&=+-:@-_a-z~]*};unset IFS;eval $* DIRTY= if [ -n "$post_wifi" ]; then case $wmode in master) wl0_mode=ap wl0_infra=1 ;; client) wl0_mode=sta wl0_infra=1 ;; *) wl0_mode=sta wl0_infra=0 ;; esac for V in wifi_proto wl0_mode wl0_infra wl0_ssid ff_bssid wl0_channel wifi_ipaddr wifi_netmask wifi_gateway wl0_antdiv wl0_txant wl0_gmode wl0_closed wl0_rateset wl0_rate wl0_mrate wl0_gmode_protection wl0_frameburst wl0_bcn wl0_dtim wl0_frag wl0_rts wl0_phytype wl0_txpwr ff_txpwroverride wl0_distance ff_mtu; do eval "C=\$$V" C=$(httpd -d "$C") if [ "$C" != "$(nvram get $V)" ]; then DIRTY=1 nvram set $V="$C" fi done if checkbridge; then DIRTY=1 fi fi if [ -n "$DIRTY" ]; then nvram commit>/dev/null 2>&1 cat< I settaggi variati sono stati salvati. I settaggi saranno attivati dopo il prossimo Riavvio. EOF else cat< Nessun settaggio è stato variato. EOF fi fi . ${SCRIPT%/*}/cgi-bin-post.sh