Atheros开发板如何设定为sta模式
本人最近对Atheros开发板烧写系统的时候,出现了一些问题。下面我详细说明一下:
编译系统的时候没有出错,编译成功了。然后烧写入开发板,进入刚烧的系统,这都没有问题。
接下来,通过执行apup脚本启动网卡,此时开发板就会默认以ap模式启动。请问各位大侠,如何让开发板以sta的模式启动?
谢谢大家!
执行apup后的开发板输出信息如下,第32行显示以ap模式启动了开发板:
~ # apup
lo no wireless extensions.
eth0 no wireless extensions.
eth1 no wireless extensions.
br0 no wireless extensions.
Args: 1
asf: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
ath_hal: 0.9.17.1 (AR9380, DEBUG, REGOPS_FUNC, WRITE_EEPROM, 11D)
ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
ath_ahb: 9.2.0_U11.14 (Atheros/multi-bss)
__ath_attach: Set global_scn[0]
ACBKMinfree = 48
ACBEMinfree = 32
ACVIMinfree = 16
ACVOMinfree = 0
CABMinfree = 48
UAPSDMinfree = 0
Bootstrap clock 25MHz
ar9300RadioAttach: Need analog access recipe!!
Restoring Cal data from Flash
Using Cal data from Flash 0xbf3f0000
ath_get_caps[5184] rx chainmask mismatch actual 1 sc_chainmak 0
ath_get_caps[5159] tx chainmask mismatch actual 1 sc_chainmak 0
SC Callback Registration for wifi0
wifi0: Atheros 9380: mem=0xb8100000, irq=2
Creating ap for Atheros_XSpan_2G on
wlan_vap_create : enter. devhandle=0x808fc2c0, opmode=IEEE80211_M_HOSTAP, flags=0x1
wlan_vap_create : exit. devhandle=0x808fc2c0, opmode=IEEE80211_M_HOSTAP, flags=0x1.
Added ath0 mode master
Configuring RF . . .
ieee80211_ioctl_siwmode: imr.ifm_active=131712, new mode=3, valid=1
Invalid command : setVowExt
Invalid command : setKeySrchAlways
Invalid command : mcastenhance
Invalid command : acparams
Invalid command : acparams
Invalid command : set_vsp_enable
Interface doesn't accept private ioctl...
setPhyRestartWar (8BE0): Operation not permitted
Invalid command : setVowExtStats
Created ath0 mode ap for Atheros_XSpan_2G
lo no wireless extensions.
eth0 no wireless extensions.
eth1 no wireless extensions.
br0 no wireless extensions.
wifi0 no wireless extensions.
device ath0 entered promiscuous mode
br0: port 3(ath0) entering forwarding state
ARPING to 192.168.1.2 from 192.168.1.2 via br0
Sent 1 probes (1 broadcast(s))
Received 0 reply
>>>>> WPS MODE, 0
CHH: System Configuration
AP_IPADDR:=192.168.1.2
AP_NETMASK:=255.255.255.0
WAN_MODE:=bridged
WAN_IPADDR:=192.168.2.1
WAN_NETMASK:=255.255.255.0
WAN_IF:=eth0
LAN_IF:=eth1
WLAN_ON_BOOT:=n
AP_STARTMODE:=standard
AP_PRIMARY_CH:=6
AP_CHMODE:=11NGHT20
PUREG:=0
PUREN:=0
TXQUEUELEN:=1000
SHORTGI:=1
AMPDUENABLE:=1
AMPDUFRAMES:=32
AMPDULIMIT:=50000
AMPDUMIN:=32768
CWMMODE:=1
RATECTL:=auto
MANRATE:=0x8c8c8c8c
MANRETRIES:=0x04040404
RX_CHAINMASK:=1
TX_CHAINMASK:=1
SWAP_LED:=1
LED_CUSTOM:=3
AP_SSID:=Atheros_XSpan_2G
AP_MODE:=ap
AP_MODE_2:=ap
AP_MODE_3:=ap
AP_MODE_4:=ap
AP_MODE_5:=ap
AP_MODE_6:=ap
AP_MODE_7:=ap
AP_MODE_8:=ap
AP_SECMODE:=None
AP_SECMODE_2:=None
AP_SECMODE_3:=None
AP_SECMODE_4:=None
AP_SECMODE_5:=None
AP_SECMODE_6:=None
AP_SECMODE_7:=None
AP_SECMODE_8:=None
AP_SECFILE:=PSK
AP_SECFILE_2:=PSK
AP_SECFILE_3:=PSK
AP_SECFILE_4:=PSK
AP_SECFILE_5:=PSK
AP_SECFILE_6:=PSK
AP_SECFILE_7:=PSK
AP_SECFILE_8:=PSK
WPS_ENABLE:=0
WPS_ENABLE_2:=0
WPS_ENABLE_3:=0
WPS_ENABLE_4:=0
WPS_ENABLE_5:=0
WPS_ENABLE_6:=0
WPS_ENABLE_7:=0
WPS_ENABLE_8:=0
WEP_IS_HEX1:=0
WEP_IS_HEX2:=0
WEP_IS_HEX3:=0
WEP_IS_HEX4:=0
WEP_IS_HEX5:=0
WEP_IS_HEX6:=0
WEP_IS_HEX7:=0
WEP_IS_HEX8:=0
WPA_IS_HEX:=0
WPA_IS_HEX_2:=0
WPA_IS_HEX_3:=0
WPA_IS_HEX_4:=0
WPA_IS_HEX_5:=0
WPA_IS_HEX_6:=0
WPA_IS_HEX_7:=0
WPA_IS_HEX_8:=0