#!/bin/sh export DATE="27.9.2007";SCRIPT=${0#/rom} export TITLE="Administração: interface sem-fio" . ${SCRIPT%/*}/cgi-bin-pre.sh cat<Administração: interface sem-fio 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<
Protocolo WLAN:
Endereço IP-WLAN:
Wlan-Máscara-de-subrede:
Wlan-Routeador-Default:
 
Wlan-modo de funcionamento:
Chave ESSID:
Chave BSSID:
Canal:
Tipo de dispositivo: 802.11a  802.11b/g
Antena de recebimento: Automático  Antena A  Antena B
Antena de envio de dados: Automático  Antena A  Antena B
Energia de envio:
Override:
Regulatory Limit:
 dBm =  mW
Cable/Plug Loss:
 dB
Antenna Gain:
 dBi
Result:
 qdBm =  mW   
Distância (metros):
Padrão:
Emitir (E)SSID: Ligar  Desligar
Velocidade básica:
Velocidade de transmissão:
Velocidade multicast:
Proteção-CTS:
Frame-Burst:
Intervalo-Beacon:
Intervalo-DTIM:
Limite de fragmentação de pacotes:
Valor limite-RTS:
Valor-MTU:
 
   

Dica: A configuração antena A ativa em vários aparelhos a antena da esquerda (vista da frente).

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< As novas configurações foram aceitas. Estas somente serão ativadas após o reinício do aparelho. EOF else cat< Nenhuma das configurações foi alterada. EOF fi fi . ${SCRIPT%/*}/cgi-bin-post.sh