EP-N8530S USB WIFI 驱动移植

时间:2022-03-22 07:00:12
/***********************************************************************
* EP-N8530S USB WIFI 驱动移植
* 说明:
* 测试一下之前给树莓派买的WIFI模块移植在其他的ARM系统上情况怎么样。
*
* 2017-7-13 深圳 龙华樟坑村 曾剑锋
**********************************************************************/ 一、驱动下载:
http://www.edup.cn/support/xiazaizhongxin/ep-n8530sjinse-qudong-2/ 二、驱动编译:
. 阅读README:README_STA_usb文档;
. 修改Makefile:
...
PLATFORM = NXP_TV550
...
ifeq ($(PLATFORM),NXP_TV550)
# LINUX_SRC = /data/tv550/kernel/linux-2.6.28.9
# LINUX_SRC_MODULE = /data/tv550/kernel/linux-2.6.28.9/drivers/net/wireless
# CROSS_COMPILE = /opt/embeddedalley/nxp_tv550/bin/mipsel-linux- LINUX_SRC = /home/Qt/kernel/linuxQt_kernel
CROSS_COMPILE = arm-fsl-linux-gnueabi-
endif
...
. 编译输出信息:
Qt@zengjf:~/tools/linux$ make
make -C tools
make[]: Entering directory `/home/Qt/tools/linux/tools'
gcc -g bin2h.c -o bin2h
make[]: Leaving directory `/home/Qt/tools/linux/tools'
/home/Qt/tools/linux/tools/bin2h
cp -f os/linux/Makefile. /home/Qt/tools/linux/os/linux/Makefile
make -C /home/Qt/kernel/linuxQt_kernel SUBDIRS=/home/Qt/tools/linux/os/linux modules
make[]: Entering directory `/home/Qt/kernel/linuxQt_kernel'
CC [M] /home/Qt/tools/linux/os/linux/../../os/linux/rt_profile.o
/home/Qt/tools/linux/os/linux/../../os/linux/rt_profile.c: In function 'announce_802_3_packet':
/home/Qt/tools/linux/os/linux/../../os/linux/rt_profile.c::: warning: unused variable 'pAd' [-Wunused-variable]
CC [M] /home/Qt/tools/linux/os/linux/../../sta/assoc.o
CC [M] /home/Qt/tools/linux/os/linux/../../sta/auth.o
CC [M] /home/Qt/tools/linux/os/linux/../../sta/auth_rsp.o
CC [M] /home/Qt/tools/linux/os/linux/../../sta/sync.o
/home/Qt/tools/linux/os/linux/../../sta/sync.c: In function 'PeerBeacon':
/home/Qt/tools/linux/os/linux/../../sta/sync.c::: warning: passing argument of 'StaAddMacTableEntry' from incompatible pointer type [enabled by default]
/home/Qt/tools/linux/include/rtmp.h::: note: expected 'struct IE_LISTS *' but argument is of type 'struct BCN_IE_LIST *'
CC [M] /home/Qt/tools/linux/os/linux/../../sta/sanity.o
CC [M] /home/Qt/tools/linux/os/linux/../../sta/rtmp_data.o
/home/Qt/tools/linux/os/linux/../../sta/rtmp_data.c: In function 'STAHandleRxDataFrame':
/home/Qt/tools/linux/os/linux/../../sta/rtmp_data.c::: warning: passing argument of 'MacTableLookup' from incompatible pointer type [enabled by default]
/home/Qt/tools/linux/include/rtmp.h::: note: expected 'UCHAR *' but argument is of type 'UCHAR (*)[6]'
CC [M] /home/Qt/tools/linux/os/linux/../../sta/connect.o
CC [M] /home/Qt/tools/linux/os/linux/../../sta/wpa.o
CC [M] /home/Qt/tools/linux/os/linux/../../sta/sta_cfg.o
/home/Qt/tools/linux/os/linux/../../sta/sta_cfg.c: In function 'RTMPIoctlRF':
/home/Qt/tools/linux/os/linux/../../sta/sta_cfg.c::: warning: format '%X' expects argument of type 'unsigned int', but argument has type 'LONG' [-Wformat]
/home/Qt/tools/linux/os/linux/../../sta/sta_cfg.c::: warning: passing argument of 'RtmpDrvAllRFPrint' from incompatible pointer type [enabled by default]
/home/Qt/tools/linux/include/rt_os_util.h::: note: expected 'UINT32 *' but argument is of type 'PSTRING'
/home/Qt/tools/linux/os/linux/../../sta/sta_cfg.c::: warning: unused variable 'rf_bank' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../sta/sta_cfg.c: In function 'RtmpIoctl_rt_ioctl_siwgenie':
/home/Qt/tools/linux/os/linux/../../sta/sta_cfg.c::: warning: assignment from incompatible pointer type [enabled by default]
CC [M] /home/Qt/tools/linux/os/linux/../../common/crypt_md5.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/crypt_sha2.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/crypt_hmac.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/crypt_aes.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/crypt_arc4.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/mlme.o
/home/Qt/tools/linux/os/linux/../../common/mlme.c: In function 'AsicRxAntEvalTimeout':
/home/Qt/tools/linux/os/linux/../../common/mlme.c::: warning: unused variable 'rssi_diff' [-Wunused-variable]
CC [M] /home/Qt/tools/linux/os/linux/../../common/cmm_wep.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/action.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/cmm_data.o
/home/Qt/tools/linux/os/linux/../../common/cmm_data.c: In function 'CmdRspEventCallbackHandle':
/home/Qt/tools/linux/os/linux/../../common/cmm_data.c::: warning: unused variable 'Ret' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../common/cmm_data.c: In function 'StopDmaTx':
/home/Qt/tools/linux/os/linux/../../common/cmm_data.c::: warning: unused variable 'IdleNums' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../common/cmm_data.c::: warning: unused variable 'UsbCfg' [-Wunused-variable]
CC [M] /home/Qt/tools/linux/os/linux/../../common/rtmp_init.o
/home/Qt/tools/linux/os/linux/../../common/rtmp_init.c: In function 'NICInitAsicFromEEPROM':
/home/Qt/tools/linux/os/linux/../../common/rtmp_init.c::: warning: unused variable 'i' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../common/rtmp_init.c: In function 'NICInitializeAdapter':
/home/Qt/tools/linux/os/linux/../../common/rtmp_init.c::: warning: unused variable 'GloCfg' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../common/rtmp_init.c: In function 'NICInitializeAsic':
/home/Qt/tools/linux/os/linux/../../common/rtmp_init.c::: warning: unused variable 'KeyIdx' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../common/rtmp_init.c::: warning: the frame size of bytes is larger than bytes [-Wframe-larger-than=]
CC [M] /home/Qt/tools/linux/os/linux/../../common/rtmp_init_inf.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/cmm_tkip.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/cmm_aes.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/cmm_sync.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/eeprom.o
/home/Qt/tools/linux/os/linux/../../common/eeprom.c: In function 'RtmpChipOpsEepromHook':
/home/Qt/tools/linux/os/linux/../../common/eeprom.c::: warning: unused variable 'e2p_csr' [-Wunused-variable]
CC [M] /home/Qt/tools/linux/os/linux/../../common/cmm_sanity.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/cmm_info.o
/home/Qt/tools/linux/os/linux/../../common/cmm_info.c: In function 'Set_DebugFunc_Proc':
/home/Qt/tools/linux/os/linux/../../common/cmm_info.c::: warning: format '%x' expects argument of type 'unsigned int', but argument has type 'const char *' [-Wformat]
/home/Qt/tools/linux/os/linux/../../common/cmm_info.c::: warning: too many arguments for format [-Wformat-extra-args]
/home/Qt/tools/linux/os/linux/../../common/cmm_info.c: In function 'set_rf':
/home/Qt/tools/linux/os/linux/../../common/cmm_info.c::: warning: format '%x' expects argument of type 'unsigned int *', but argument has type 'UCHAR *' [-Wformat]
CC [M] /home/Qt/tools/linux/os/linux/../../common/cmm_cfg.o
/home/Qt/tools/linux/os/linux/../../common/cmm_cfg.c: In function 'wmode_valid_and_correct':
/home/Qt/tools/linux/os/linux/../../common/cmm_cfg.c::: warning: unused variable 'mode' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../common/cmm_cfg.c: At top level:
/home/Qt/tools/linux/os/linux/../../common/cmm_cfg.c::: warning: 'wmode_valid' defined but not used [-Wunused-function]
CC [M] /home/Qt/tools/linux/os/linux/../../common/cmm_wpa.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/cmm_radar.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/spectrum.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/rtmp_timer.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/rt_channel.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/cmm_profile.o
/home/Qt/tools/linux/os/linux/../../common/cmm_profile.c: In function 'rtmp_read_multest_from_file':
/home/Qt/tools/linux/os/linux/../../common/cmm_profile.c::: warning: unused variable 'pWdsEntry' [-Wunused-variable]
CC [M] /home/Qt/tools/linux/os/linux/../../common/cmm_asic.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/scan.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/cmm_cmd.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/uapsd.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/ps.o
CC [M] /home/Qt/tools/linux/os/linux/../../rate_ctrl/ra_ctrl.o
CC [M] /home/Qt/tools/linux/os/linux/../../rate_ctrl/alg_legacy.o
CC [M] /home/Qt/tools/linux/os/linux/../../rate_ctrl/alg_ags.o
CC [M] /home/Qt/tools/linux/os/linux/../../chips/rtmp_chip.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/txpower.o
CC [M] /home/Qt/tools/linux/os/linux/../../mac/rtmp_mac.o
CC [M] /home/Qt/tools/linux/os/linux/../../mgmt/mgmt_hw.o
CC [M] /home/Qt/tools/linux/os/linux/../../mgmt/mgmt_entrytb.o
CC [M] /home/Qt/tools/linux/os/linux/../../phy/rtmp_phy.o
/home/Qt/tools/linux/os/linux/../../phy/rtmp_phy.c: In function 'NICInitBBP':
/home/Qt/tools/linux/os/linux/../../phy/rtmp_phy.c::: warning: unused variable 'R0' [-Wunused-variable]
CC [M] /home/Qt/tools/linux/os/linux/../../phy/rlt_phy.o
CC [M] /home/Qt/tools/linux/os/linux/../../phy/rlt_rf.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/ba_action.o
CC [M] /home/Qt/tools/linux/os/linux/../../mgmt/mgmt_ht.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/rt_os_util.o
CC [M] /home/Qt/tools/linux/os/linux/../../os/linux/sta_ioctl.o
CC [M] /home/Qt/tools/linux/os/linux/../../os/linux/rt_linux.o
/home/Qt/tools/linux/os/linux/../../os/linux/rt_linux.c: In function 'RtmpOsUsDelay':
/home/Qt/tools/linux/os/linux/../../os/linux/rt_linux.c::: warning: unused variable 'i' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../os/linux/rt_linux.c: In function 'RtmpDrvAllRFPrint':
/home/Qt/tools/linux/os/linux/../../os/linux/rt_linux.c::: warning: passing argument of 'file_w->f_op->write' from incompatible pointer type [enabled by default]
/home/Qt/tools/linux/os/linux/../../os/linux/rt_linux.c::: note: expected 'const char *' but argument is of type 'UINT32 *'
/home/Qt/tools/linux/os/linux/../../os/linux/rt_linux.c::: warning: unused variable 'macValue' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../os/linux/rt_linux.c::: warning: unused variable 'macAddr' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../os/linux/rt_linux.c: In function 'RtmpOSIRQRelease':
/home/Qt/tools/linux/os/linux/../../os/linux/rt_linux.c::: warning: unused variable 'net_dev' [-Wunused-variable]
CC [M] /home/Qt/tools/linux/os/linux/../../os/linux/rt_main_dev.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/cmm_mac_usb.o
/home/Qt/tools/linux/os/linux/../../common/cmm_mac_usb.c: In function 'RTMPAllocTxRxRingMemory':
/home/Qt/tools/linux/os/linux/../../common/cmm_mac_usb.c::: warning: initialization from incompatible pointer type [enabled by default]
/home/Qt/tools/linux/os/linux/../../common/cmm_mac_usb.c: In function 'RT28XXDMAEnable':
/home/Qt/tools/linux/os/linux/../../common/cmm_mac_usb.c::: warning: unused variable 'UsbCfg' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../common/cmm_mac_usb.c::: warning: unused variable 'GloCfg' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../common/cmm_mac_usb.c: In function 'RT28xxUsbAsicRadioOn':
/home/Qt/tools/linux/os/linux/../../common/cmm_mac_usb.c::: warning: unused variable 'GloCfg' [-Wunused-variable]
CC [M] /home/Qt/tools/linux/os/linux/../../common/cmm_data_usb.o
/home/Qt/tools/linux/os/linux/../../common/cmm_data_usb.c: In function 'ComposeNullFrame':
/home/Qt/tools/linux/os/linux/../../common/cmm_data_usb.c::: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/home/Qt/tools/linux/os/linux/../../common/cmm_data_usb.c: At top level:
/home/Qt/tools/linux/os/linux/../../common/cmm_data_usb.c::: warning: 'rlt_usb_update_txinfo' defined but not used [-Wunused-function]
CC [M] /home/Qt/tools/linux/os/linux/../../common/rtusb_io.o
/home/Qt/tools/linux/os/linux/../../common/rtusb_io.c: In function 'RTUSBWriteEEPROM':
/home/Qt/tools/linux/os/linux/../../common/rtusb_io.c::: warning: unused variable 'Value' [-Wunused-variable]
CC [M] /home/Qt/tools/linux/os/linux/../../common/rtusb_data.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/rtusb_bulk.o
/home/Qt/tools/linux/os/linux/../../common/rtusb_bulk.c: In function 'RTUSBCancelPendingBulkOutIRP':
/home/Qt/tools/linux/os/linux/../../common/rtusb_bulk.c::: warning: assignment from incompatible pointer type [enabled by default]
CC [M] /home/Qt/tools/linux/os/linux/../../os/linux/rt_usb.o
/home/Qt/tools/linux/os/linux/../../os/linux/rt_usb.c: In function 'cmd_rsp_event_tasklet':
/home/Qt/tools/linux/os/linux/../../os/linux/rt_usb.c::: warning: assignment from incompatible pointer type [enabled by default]
CC [M] /home/Qt/tools/linux/os/linux/../../common/ee_prom.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/ee_efuse.o
CC [M] /home/Qt/tools/linux/os/linux/../../mcu/rtmp_and.o
/home/Qt/tools/linux/os/linux/../../mcu/rtmp_and.c: In function 'USBLoadIVB':
/home/Qt/tools/linux/os/linux/../../mcu/rtmp_and.c::: warning: unused variable 'Temp' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../mcu/rtmp_and.c::: warning: unused variable 'Index' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../mcu/rtmp_and.c::: warning: unused variable 'Value' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../mcu/rtmp_and.c::: warning: unused variable 'i' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../mcu/rtmp_and.c: In function 'USBLoadFirmwareToAndes':
/home/Qt/tools/linux/os/linux/../../mcu/rtmp_and.c::: warning: unused variable 'MCtrl' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../mcu/rtmp_and.c::: warning: unused variable 'UsbCfg' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../mcu/rtmp_and.c: In function 'MCUCtrlExit':
/home/Qt/tools/linux/os/linux/../../mcu/rtmp_and.c::: warning: unused variable 'Ret' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../mcu/rtmp_and.c: In function 'GetCmdRspNum':
/home/Qt/tools/linux/os/linux/../../mcu/rtmp_and.c::: warning: unused variable 'IrqFlags' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../mcu/rtmp_and.c: In function 'AndesLedOP':
/home/Qt/tools/linux/os/linux/../../mcu/rtmp_and.c::: warning: unused variable 'Value' [-Wunused-variable]
CC [M] /home/Qt/tools/linux/os/linux/../../mcu/rtmp_mcu.o
/home/Qt/tools/linux/os/linux/../../mcu/rtmp_mcu.c: In function 'MCUBurstWrite':
/home/Qt/tools/linux/os/linux/../../mcu/rtmp_mcu.c::: warning: passing argument of 'RTUSBMultiWrite_nBytes' from incompatible pointer type [enabled by default]
/home/Qt/tools/linux/include/rtmp.h::: note: expected 'PUCHAR' but argument is of type 'UINT32 *'
/home/Qt/tools/linux/os/linux/../../mcu/rtmp_mcu.c: In function 'ChipOpsMCUHook':
/home/Qt/tools/linux/os/linux/../../mcu/rtmp_mcu.c::: warning: assignment from incompatible pointer type [enabled by default]
/home/Qt/tools/linux/os/linux/../../mcu/rtmp_mcu.c::: warning: assignment from incompatible pointer type [enabled by default]
/home/Qt/tools/linux/os/linux/../../mcu/rtmp_mcu.c::: warning: assignment from incompatible pointer type [enabled by default]
/home/Qt/tools/linux/os/linux/../../mcu/rtmp_mcu.c: In function 'MCURandomWrite':
/home/Qt/tools/linux/os/linux/../../mcu/rtmp_mcu.c::: warning: control reaches end of non-void function [-Wreturn-type]
/home/Qt/tools/linux/os/linux/../../mcu/rtmp_mcu.c: In function 'MCUBurstWrite':
/home/Qt/tools/linux/os/linux/../../mcu/rtmp_mcu.c::: warning: control reaches end of non-void function [-Wreturn-type]
CC [M] /home/Qt/tools/linux/os/linux/../../mcu/rtmp_M51.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/rt_rf.o
CC [M] /home/Qt/tools/linux/os/linux/../../chips/mt7601.o
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c: In function 'MT7601_INIT_CAL':
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c::: warning: unused variable 'Temperature' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c: In function 'NICInitMT7601RFRegisters':
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c::: warning: unused variable 'IdReg' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c: In function 'NICInitMT7601MacRegisters':
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c::: warning: unused variable 'IdReg' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c: In function 'NICInitMT7601BbpRegisters':
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c::: warning: unused variable 'IdReg' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c: In function 'MT7601_ChipSwitchChannel':
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c::: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c::: warning: unused variable 'IdReg' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c: In function 'MT7601DisableTxRx':
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c::: warning: 'return' with no value, in function returning non-void [-Wreturn-type]
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c: In function 'MT7601UsbAsicRadioOff':
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c::: warning: unused variable 'Value' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c: In function 'MT7601UsbAsicRadioOn':
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c::: warning: unused variable 'pChipOps' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c::: warning: unused variable 'GloCfg' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c: In function 'MT7601_ReadChannelPwr':
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c::: warning: unused variable 'bUseDefault' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c: In function 'MT7601AsicTemperatureCompensation':
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c::: warning: unused variable 'IdReg' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c: In function 'MT7601_EnableTSSI':
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c::: warning: unused variable 'ret' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c::: warning: unused variable 'BBPReg' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c::: warning: unused variable 'RFReg' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c: In function 'MT7601_InitDesiredTSSITable':
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c::: warning: unused variable 'offset' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c::: warning: unused variable 'index' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c: In function 'MT7601_GetTssiCompensationParam':
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c::: warning: unused variable 'ret' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c::: warning: unused variable 'count' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c::: warning: unused variable 'RFReg' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c: In function 'MT7601_AsicTxAlcGetAutoAgcOffset':
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c::: warning: unused variable 'BBPReg' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c: In function 'MT7601_Init':
/home/Qt/tools/linux/os/linux/../../chips/mt7601.c::: warning: assignment from incompatible pointer type [enabled by default]
CC [M] /home/Qt/tools/linux/os/linux/../../mac/ral_omac.o
CC [M] /home/Qt/tools/linux/os/linux/../../os/linux/rt_usb_util.o
/home/Qt/tools/linux/os/linux/../../os/linux/rt_usb_util.c: In function 'rausb_autopm_put_interface':
/home/Qt/tools/linux/os/linux/../../os/linux/rt_usb_util.c::: warning: unused variable 'pm_usage_cnt' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../os/linux/rt_usb_util.c: In function 'rausb_autopm_get_interface':
/home/Qt/tools/linux/os/linux/../../os/linux/rt_usb_util.c::: warning: unused variable 'pm_usage_cnt' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../os/linux/rt_usb_util.c::: warning: control reaches end of non-void function [-Wreturn-type]
CC [M] /home/Qt/tools/linux/os/linux/../../os/linux/usb_main_dev.o
/home/Qt/tools/linux/os/linux/../../os/linux/usb_main_dev.c: In function 'rt2870_suspend':
/home/Qt/tools/linux/os/linux/../../os/linux/usb_main_dev.c::: warning: unused variable 'net_dev' [-Wunused-variable]
/home/Qt/tools/linux/os/linux/../../os/linux/usb_main_dev.c: In function 'rt2870_resume':
/home/Qt/tools/linux/os/linux/../../os/linux/usb_main_dev.c::: warning: unused variable 'net_dev' [-Wunused-variable]
CC [M] /home/Qt/tools/linux/os/linux/../../common/rtusb_dev_id.o
CC [M] /home/Qt/tools/linux/os/linux/../../common/frq_cal.o
/home/Qt/tools/linux/os/linux/../../common/frq_cal.c: In function 'InitFrequencyCalibration':
/home/Qt/tools/linux/os/linux/../../common/frq_cal.c::: warning: format '%x' expects argument of type 'unsigned int', but argument has type 'ULONG' [-Wformat]
/home/Qt/tools/linux/os/linux/../../common/frq_cal.c: In function 'FrequencyCalibrationMode':
/home/Qt/tools/linux/os/linux/../../common/frq_cal.c::: warning: unused variable 'PreRFValue' [-Wunused-variable]
LD [M] /home/Qt/tools/linux/os/linux/mt7601Usta.o
Building modules, stage .
MODPOST modules
CC /home/Qt/tools/linux/os/linux/mt7601Usta.mod.o
LD [M] /home/Qt/tools/linux/os/linux/mt7601Usta.ko
make[]: Leaving directory `/home/Qt/kernel/linuxQt_kernel'
cp -f /home/Qt/tools/linux/os/linux/mt7601Usta.ko /tftpboot >/dev/null || : 三、测试驱动:
. 拷贝驱动配置:cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat
. 查看当前网卡信息并插入驱动:
root@freescale ~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 1E:ED:::1A:B3
inet addr:192.168.12.10 Bcast:192.168.12.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU: Metric:
RX packets: errors: dropped: overruns: frame:
TX packets: errors: dropped: overruns: carrier:
collisions: txqueuelen:
RX bytes: (0.0 B) TX bytes: (0.0 B) lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU: Metric:
RX packets: errors: dropped: overruns: frame:
TX packets: errors: dropped: overruns: carrier:
collisions: txqueuelen:
RX bytes: (378.9 KiB) TX bytes: (378.9 KiB) root@freescale ~$ insmod mt7601Usta.ko
rtusb init rt2870 --->
usbcore: registered new interface driver rt2870 . 插入USB模块输出信息:
root@freescale ~$ usb -1.3: new high speed USB device number using fsl-ehci
usb -1.3: New USB device found, idVendor=148f, idProduct=
usb -1.3: New USB device strings: Mfr=, Product=, SerialNumber=
===>rt2870_probe()!
--> RTMPAllocAdapterBlock === pAd = c0b3c000, size = === --> RTMPAllocTxRxRingMemory
<-- RTMPAllocTxRxRingMemory, Status=
<-- RTMPAllocAdapterBlock, Status=
NumEndpoints=
BULK IN MaxPacketSize =
EP address = 0x84
BULK IN MaxPacketSize =
EP address = 0x85
BULK OUT MaxPacketSize =
EP address = 0x
BULK OUT MaxPacketSize =
EP address = 0x
BULK OUT MaxPacketSize =
EP address = 0x
BULK OUT MaxPacketSize =
EP address = 0x
BULK OUT MaxPacketSize =
EP address = 0x
BULK OUT MaxPacketSize =
EP address = 0x
RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x8
RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x4
RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x5
RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x6
RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x7
RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x9
STA Driver version-3.0.0.3
-->MT7601_Init():
Chip specific bbpRegTbSize=!
Chip VCO calibration mode = !
NVM is EFUSE
Efuse Size=0x1d [Range:1e0-1fc]
Endpoint() is for In-band Command
Endpoint() is for WMM0 AC0
Endpoint() is for WMM0 AC1
Endpoint() is for WMM0 AC2
Endpoint() is for WMM0 AC3
Endpoint() is for WMM1 AC0
Endpoint() is for Data-In
Endpoint() is for Command Rsp
Allocate a net device with private data size=!
Allocate net device ops success!
The name of the new ra interface is ra0...
RtmpOSNetDevAttach()--->
<---RtmpOSNetDevAttach(), ret=
<===rt2870_probe()! . 查看所生成的网卡节点:
root@freescale ~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 1E:ED:::1A:B3
inet addr:192.168.12.10 Bcast:192.168.12.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU: Metric:
RX packets: errors: dropped: overruns: frame:
TX packets: errors: dropped: overruns: carrier:
collisions: txqueuelen:
RX bytes: (0.0 B) TX bytes: (0.0 B) lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU: Metric:
RX packets: errors: dropped: overruns: frame:
TX packets: errors: dropped: overruns: carrier:
collisions: txqueuelen:
RX bytes: (379.8 KiB) TX bytes: (379.8 KiB) ra0 Link encap:Ethernet HWaddr :::::
BROADCAST MULTICAST MTU: Metric:
RX packets: errors: dropped: overruns: frame:
TX packets: errors: dropped: overruns: carrier:
collisions: txqueuelen:
RX bytes: (0.0 B) TX bytes: (0.0 B) root@freescale ~$
. 配置测试:
[zengjf@root ~]# ls
RT2870STA.dat mt7601Usta.ko rt_ioctl_giwrange
[zengjf@root ~]# insmod mt7601Usta.ko
rtusb init rt2870 --->
===>rt2870_probe()!
--> RTMPAllocAdapterBlock === pAd = c0b44000, size = === --> RTMPAllocTxRxRingMemory
<-- RTMPAllocTxRxRingMemory, Status=
<-- RTMPAllocAdapterBlock, Status=
NumEndpoints=
BULK IN MaxPacketSize =
EP address = 0x84
BULK IN MaxPacketSize =
EP address = 0x85
BULK OUT MaxPacketSize =
EP address = 0x
BULK OUT MaxPacketSize =
EP address = 0x
BULK OUT MaxPacketSize =
EP address = 0x
BULK OUT MaxPacketSize =
EP address = 0x
BULK OUT MaxPacketSize =
EP address = 0x
BULK OUT MaxPacketSize =
EP address = 0x
RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x8
RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x4
RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x5
RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x6
RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x7
RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x9
STA Driver version-3.0.0.3
-->MT7601_Init():
Chip specific bbpRegTbSize=!
Chip VCO calibration mode = !
NVM is EFUSE
Efuse Size=0x1d [Range:1e0-1fc]
Endpoint() is for In-band Command
Endpoint() is for WMM0 AC0
Endpoint() is for WMM0 AC1
Endpoint() is for WMM0 AC2
Endpoint() is for WMM0 AC3
Endpoint() is for WMM1 AC0
Endpoint() is for Data-In
Endpoint() is for Command Rsp
Allocate a net device with private data size=!
Allocate net device ops success!
The name of the new ra interface is ra0...
RtmpOSNetDevAttach()--->
<---RtmpOSNetDevAttach(), ret=
<===rt2870_probe()!
usbcore: registered new interface driver rt2870
[zengjf@root ~]# ifconfig -a
eth0: flags=<UP,BROADCAST,RUNNING,MULTICAST> mtu
inet 192.168.1.202 netmask 255.255.255.0 broadcast 192.168.1.255
ether :b3:d5::6f: txqueuelen (Ethernet)
RX packets bytes (0.0 B)
RX errors dropped overruns frame
TX packets bytes (0.0 B)
TX errors dropped overruns carrier collisions lo: flags=<UP,LOOPBACK,RUNNING> mtu
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen (Local Loopback)
RX packets bytes (3.5 KiB)
RX errors dropped overruns frame
TX packets bytes (3.5 KiB)
TX errors dropped overruns carrier collisions ra0: flags=<BROADCAST,MULTICAST> mtu
ether ::::: txqueuelen (Ethernet)
RX packets bytes (0.0 B)
RX errors dropped overruns frame
TX packets bytes (0.0 B)
TX errors dropped overruns carrier collisions [zengjf@root ~]# ifconfig ra0 up
WlanFunCtrl.word = 0xff200003
MACVersion = 0x76010500
Allocate memory for BA reordering
MAC[Ver:Rev=0x76010500]
USBLoadFirmwareToAndes
--> NICInitRecv
<-- NICInitRecv()
--> NICInitTransmit
MGMT Ring: total entry allocated
<-- NICInitTransmit(Status=)
--> MLME Initialize
RTMP_TimerListAdd: add timer obj c0bc1b64!
RTMPInitTimer: c0bc1b64
RTMP_TimerListAdd: add timer obj c0bc1b94!
RTMPInitTimer: c0bc1b94
RTMP_TimerListAdd: add timer obj c0bc1bc4!
RTMPInitTimer: c0bc1bc4
RTMP_TimerListAdd: add timer obj c0bc1b34!
RTMPInitTimer: c0bc1b34
RTMP_TimerListAdd: add timer obj c0bc1aa4!
RTMPInitTimer: c0bc1aa4
RTMP_TimerListAdd: add timer obj c0bc1ad4!
RTMPInitTimer: c0bc1ad4
RTMP_TimerListAdd: add timer obj c0b56cdc!
RTMPInitTimer: c0b56cdc
RTMP_TimerListAdd: add timer obj c0b461a0!
RTMPInitTimer: c0b461a0
RTMP_TimerListAdd: add timer obj c0b461d4!
RTMPInitTimer: c0b461d4
RTMP_TimerListAdd: add timer obj c0b56d7c!
RTMPInitTimer: c0b56d7c
RTMP_TimerListAdd: add timer obj c0b56c7c!
RTMPInitTimer: c0b56c7c
RTMP_TimerListAdd: add timer obj c0b56d4c!
RTMPInitTimer: c0b56d4c
<-- MLME Initialize
--> UserCfgInit
--> UserCfgInit. BACapability = 0x3024040
<-- UserCfgInit
--> NICInitializeAdapter
==> DMAIdle, GloCfg=0x40000050
--> NICInitializeAsic
NICInitializeAsic():MACVersion[Ver:Rev=0x76010500]
< Beacon Information: >
FlgIsSupSpecBcnBuf = FALSE
BcnMaxHwNum =
BcnMaxNum =
BcnMaxHwSize = 0x2000
WcidHwRsvNum =
BcnBase[] = 0xc000, pAd->BeaconOffset[]=0xc000
BcnBase[] = 0xc200, pAd->BeaconOffset[]=0xc200
BcnBase[] = 0xc400, pAd->BeaconOffset[]=0xc400
BcnBase[] = 0xc600, pAd->BeaconOffset[]=0xc600
BcnBase[] = 0xc800, pAd->BeaconOffset[]=0xc800
BcnBase[] = 0xca00, pAd->BeaconOffset[]=0xca00
BcnBase[] = 0xcc00, pAd->BeaconOffset[]=0xcc00
BcnBase[] = 0xce00, pAd->BeaconOffset[]=0xce00
BcnBase[] = 0xd000, pAd->BeaconOffset[]=0xd000
BcnBase[] = 0xd200, pAd->BeaconOffset[]=0xd200
BcnBase[] = 0xd400, pAd->BeaconOffset[]=0xd400
BcnBase[] = 0xd600, pAd->BeaconOffset[]=0xd600
BcnBase[] = 0xd800, pAd->BeaconOffset[]=0xd800
BcnBase[] = 0xda00, pAd->BeaconOffset[]=0xda00
BcnBase[] = 0xdc00, pAd->BeaconOffset[]=0xdc00
BcnBase[] = 0xde00, pAd->BeaconOffset[]=0xde00
NICInitMT7601MacRegisters
BBP version =
NICInitMT7601BbpRegisters
--->Disable TSF synchronization
<-- NICInitializeAsic
<-- NICInitializeAdapter
CountryRegion=
CountryRegionABand=
CountryCode=
RTMPSetProfileParameters::(SSID=11n-AP)
RTMPSetProfileParameters::(NetworkType=)
Channel=
cfg_mode=
Old WirelessMode:B/G(0x6), New WirelessMode:B/G/gN(0xe)!
wmode_band_equal(): Band Equal!
RT_CfgSetWirelessMode(): Set WMODE=B/G/gN(0xe)
PhyMode=
BeaconPeriod=
TxPower=
BGProtection=
TxPreamble=
RTSThreshold=
FragThreshold=
TxBurst=
PktAggregate=
WmmCapable=
AckPolicy[]=
AckPolicy[]=
AckPolicy[]=
AckPolicy[]=
IEEE80211H=
WirelessEvent=
RTMPSetProfileParameters::(AuthMode=)
RTMPSetProfileParameters::(EncrypType=)
DefaultKeyID(~)=
Key1Str is Invalid key length() or Type()
Key2Str is Invalid key length() or Type()
Key3Str is Invalid key length() or Type()
Key4Str is Invalid key length() or Type()
HT: MIMOPS Mode =
HT: BA Decline = Disable
HT: Auto BA = Enable
HT: RDG = Enable(+HTC)
HT: Tx A-MSDU = Disable
HT: MPDU Density =
HT: BA Windw Size =
HT: Guard Interval =
HT: Operate Mode = Mixed Mode
HT: Channel Width = MHz
HT: Ext Channel = BELOW
HT: MCS = AUTO
HT: STBC =
HT: Disallow TKIP mode = ON
PSMode=
MlmeSetPsmBit =
AutoRoaming=
RoamThreshold=- dBm
TGnWifiTest=
BeaconLostTime=
. Phy Mode =
. Phy Mode =
--> NICReadEEPROMParameters
NVM is Efuse and its size =1d[1e0-1fc]
eFuseGetFreeBlockCount, FirstFreeBlock= 0x1e0
eFuseGetFreeBlockCount, LastFreeBlock= 0x1f2
eFuseGetFreeBlockCount is
NVM is Efuse and force to use EEPROM Buffer Mode=
Initialize MAC Address from E2PROM
E2PROM MAC: =e8:4e::::2f
Use the MAC address what is assigned from EEPROM.
Current MAC: =e8:4e::::2f
E2PROM: Version = , FAE release #
MT7601_ReadChannelPwr()--->
MT7601_ReadChannelPwr: EEPROM 0xD0 = 0x24
MT7601_ReadChannelPwr: TxPower[].Power = 0x24, TxPower[].Power = 0x24
MT7601_ReadChannelPwr: TxPower[].Power = 0x24, TxPower[].Power = 0x24
MT7601_ReadChannelPwr: TxPower[].Power = 0x24, TxPower[].Power = 0x24
MT7601_ReadChannelPwr: TxPower[].Power = 0x24, TxPower[].Power = 0x24
MT7601_ReadChannelPwr: TxPower[].Power = 0x24, TxPower[].Power = 0x24
MT7601_ReadChannelPwr: TxPower[].Power = 0x24, TxPower[].Power = 0x24
MT7601_ReadChannelPwr: TxPower[].Power = 0x24, TxPower[].Power = 0x24
MT7601_AsicAntennaDefaultReset
NICReadEEPROMParameters: RxPath = , TxPath =
E2PROM: RF FreqOffset=0x55
Txpower per Rate
Gpwrdelta = , Apwrdelta = .
20MHz BW, .4G band-3f3f0404, Adata = 3f3f0404, Gdata = 3f3f0404
20MHz BW, .4G band-3f3f0000, Adata = 3f3f0000, Gdata = 3f3f0000
20MHz BW, .4G band-3f3f0000, Adata = 3f3f0000, Gdata = 3f3f0000
20MHz BW, .4G band-3f3f0000, Adata = 3f3f0000, Gdata = 3f3f0000
20MHz BW, .4G band-ffff0000, Adata = ffff0000, Gdata = ffff0000
TXALC> bInternalTxALC =
NICReadEEPROMParameters: pAd->Antenna.field.BoardType = , IS_MINI_CARD(pAd) =
<-- NICReadEEPROMParameters
. Phy Mode =
--> NICInitAsicFromEEPROM
AntCfgInit: primary/secondary ant /
pAd->TemperatureRef25C = 0xfffffff6
NICInitMT7601RFRegisters
==>MT7601_INIT_CAL
Boot up temperature = 0x1
tssi0_db_hvga = 5c5
tssi0_db = 43f
TssiDC0 = - (0xffffffff)
TssiDC0_HVGA = - (0xffffffff)
TSSI_DBOFFSET_HVGA =
MT7601AsicTemperatureCompensation::Change to TEMPERATURE_MODE_HIGH
<==MT7601_INIT_CAL
NICInitAsicFromEEPROM: pAd->TxPowerCtrl.bInternalTxALC =
Use Hw Radio Control Pin=; if used Pin=;
NICInitAsicFromEEPROM: pAd->FreqCalibrationCtrl.bEnableFrequencyCalibration =
TxPath = , RxPath = , RFIC=
<-- NICInitAsicFromEEPROM
TSSI slope = 0x80, offset[] = 0x0, offset[] = 0x0, offset[] = 0x0, TSSI_USE_H
TSSI T0 Delta offset =
Init MAC 13b4: 0xc9540029
PAModeCCK[] = -
PAModeCCK[] = -
PAModeCCK[] = -
PAModeCCK[] = -
PAModeOFDM[] =
PAModeOFDM[] =
PAModeOFDM[] =
PAModeOFDM[] =
PAModeOFDM[] =
PAModeOFDM[] =
PAModeOFDM[] =
PAModeOFDM[] =
PAModeHT[] =
PAModeHT[] =
PAModeHT[] =
PAModeHT[] =
PAModeHT[] =
PAModeHT[] =
PAModeHT[] =
PAModeHT[] =
PAModeHT[] =
PAModeHT[] =
PAModeHT[] =
PAModeHT[] =
PAModeHT[] =
PAModeHT[] =
PAModeHT[] =
PAModeHT[] =
---> InitFrequencyCalibration
InitFrequencyCalibrationMode:Unknow mode =
---> StopFrequencyCalibration
StopFrequencyCalibration: pAd->FreqCalibrationCtrl.AdaptiveFreqOffset = 0x55
<--- StopFrequencyCalibration
InitFrequencyCalibration: frequency offset in the EEPROM = (0x55)
<--- InitFrequencyCalibration
RTMPSetPhyMode : PhyMode=, channel=
country code=/, RFIC=, PHY mode=, support channels
BuildChannel # :: Pwr0 = , Pwr1 =, Flags =
BuildChannel # :: Pwr0 = , Pwr1 =, Flags =
BuildChannel # :: Pwr0 = , Pwr1 =, Flags =
BuildChannel # :: Pwr0 = , Pwr1 =, Flags =
BuildChannel # :: Pwr0 = , Pwr1 =, Flags =
BuildChannel # :: Pwr0 = , Pwr1 =, Flags =
BuildChannel # :: Pwr0 = , Pwr1 =, Flags =
BuildChannel # :: Pwr0 = , Pwr1 =, Flags =
BuildChannel # :: Pwr0 = , Pwr1 =, Flags =
BuildChannel # :: Pwr0 = , Pwr1 =, Flags =
BuildChannel # :: Pwr0 = , Pwr1 =, Flags =
BuildChannel # :: Pwr0 = , Pwr1 =, Flags =
BuildChannel # :: Pwr0 = , Pwr1 =, Flags =
BuildChannel # :: Pwr0 = , Pwr1 =, Flags =
RTMPSetPhyMode: channel is out of range, use first channel=
RTMPSetHT : HT_mode(), ExtOffset(), MCS(), BW(), STBC(), SHORTGI()
RTMPSetHT : RxBAWinLimit =
RTMPSetHT : AMsduSize = , MimoPs = , MpduDensity = , MaxRAmpduFactor =
EDCA [#]: AIFSN CWmin CWmax TXOP(us) ACM
AC_BE
AC_BK
AC_VI
AC_VO
RTMPSetIndividualHT : Desired MCS =
MlmeUpdateHtTxRates()===>
MlmeUpdateHtTxRates():<---.AMsduSize =
TX: MCS[] = ff (choose ), BW = , ShortGI = , MODE = ,
MlmeUpdateHtTxRates():<===
MCS Set = ff
[zengjf@root ~]# NDIS_STATUS_MEDIA_DISCONNECT Event B!
RTUSBBulkReceive!
<==== rt28xx_init, Status=
==> RTMPEnableRxTx
==> DMAIdle, GloCfg=0x40000050
<== RTMPEnableRxTx
0x1300 =
RTMPDrvOpen():Check if PDMA is idle!
==> DMAIdle, GloCfg=0x40000050
Driver auto reconnect to last OID_802_11_SSID setting - 11n-AP, len -
RTMPDrvOpen():Check if PDMA is idle!
==> DMAIdle, GloCfg=0x40000050
CntlOidSsidProc():CNTL - BSS of BSS match the desire ()SSID - 11n-AP
CNTL - All roaming failed, restore to channel , Total BSS[] [zengjf@root ~]# ifconfig -a
eth0: flags=<UP,BROADCAST,RUNNING,MULTICAST> mtu
inet 192.168.1.202 netmask 255.255.255.0 broadcast 192.168.1.255
ether :b3:d5::6f: txqueuelen (Ethernet)
RX packets bytes (0.0 B)
RX errors dropped overruns frame
TX packets bytes (0.0 B)
TX errors dropped overruns carrier collisions lo: flags=<UP,LOOPBACK,RUNNING> mtu
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen (Local Loopback)
RX packets bytes (5.3 KiB)
RX errors dropped overruns frame
TX packets bytes (5.3 KiB)
TX errors dropped overruns carrier collisions ra0: flags=<UP,BROADCAST,RUNNING,MULTICAST> mtu
ether e8:4e::::2f txqueuelen (Ethernet)
RX packets bytes (836.0 KiB)
RX errors dropped overruns frame
TX packets bytes (0.0 B)
TX errors dropped overruns carrier collisions [zengjf@root ~]# iwlist ra0 scan
===>rt_ioctl_giwrange
SCANNING, suspend MSDU transmission ...
SYNC - BBP R4 to 20MHz.l
MT7601_ChipSwitchChannel: SwitchChannel#(RF=, 1T)
MT7601_ChipSwitchChannel: SwitchChannel#(RF=, 1T)
===>rt_ioctl_giwscan. () BSS returned, data->length =
ra0 Scan completed :
Cell - Address: F4::CD:FF::
Protocol:11b/g/n BW40
ESSID:"zengjf-AP"
Mode:Managed
Frequency:2.412 GHz (Channel )
Quality=/ Signal level=- dBm Noise level=- dBm
Encryption key:on
Bit Rates: Mb/s
IE: WPA Version
Group Cipher : TKIP
Pairwise Ciphers () : TKIP CCMP
Authentication Suites () : PSK
MT7601_ChipSwitchChannel: SwitchChannel#(RF=, 1T)
IE: IEEE .11i/WPA2 Version
Group Cipher : TKIP
Pairwise Ciphers () : TKIP CCMP
Authentication Suites () : PSK
Cell - Address: 5A:C2:DD:BC::FD
Protocol:11b/g/n BW40
ESSID:"360WIFI"
Mode:Managed
Frequency:2.412 GHz (Channel )
Quality=/ Signal level=- dBm Noise level=- dBm
Encryption key:on
Bit Rates: Mb/s
IE: IEEE .11i/WPA2 Version
Group Cipher : CCMP
Pairwise Ciphers () : CCMP
Authentication Suites () : PSK
Cell - Address: ::::AC:
Protocol:11b/g/n BW40
ESSID:"360\xE5\x85\x8D\xE8\xB4\xB9WiFi-24"
Mode:Managed
Frequency:2.412 GHz (Channel )
Quality=/ Signal level=- dBm Noise level=- dBm
Encryption key:on
Bit Rates: Mb/s
IE: WPA Version
Group Cipher : CCMP
Pairwise Ciphers () : CCMP
Authentication Suites () : PSK
IE: IEEE .11i/WPA2 Version
Group Cipher : CCMP
Pairwise Ciphers () : CCMP
Authentication Suites () : PSK
Cell - Address: E8:4E::2B:7A:DD
PMT7601_ChipSwitchChannel: SwitchChannel#(RF=, 1T)
rotocol:11g/n BW40
ESSID:"N8508GS"
Mode:Managed
Frequency:2.412 GHz (Channel )
Quality=/ Signal level=- dBm Noise level=- dBm
Encryption key:on
Bit Rates: Mb/s
IE: IEEE .11i/WPA2 Version
Group Cipher : CCMP
Pairwise Ciphers () : CCMP
Authentication Suites () : PSK
Cell - Address: :B0:C6:0F::B0
Protocol:11b/g/n BW40
ESSID:"zengjf-AP3"
Mode:Managed
Frequency:2.412 GHz (Channel )
Quality=/ Signal level=- dBm Noise level=- dBm
Encryption key:on
Bit Rates: Mb/s
IE: IEEE .11i/WPA2 Version
Group Cipher : CCMP
Pairwise Ciphers () : CCMP
Authentication Suites () : PSK [zengjf@root ~]# MT7601_ChipSwitchChannel: SwitchChannel#(RF=, 1T)
MT7601_ChipSwitchChannel: SwitchChannel#(RF=, 1T)
MT7601_ChipSwitchChannel: SwitchChannel#(RF=, 1T)
MT7601_ChipSwitchChannel: SwitchChannel#(RF=, 1T)
MT7601_ChipSwitchChannel: SwitchChannel#(RF=, 1T)
MT7601_ChipSwitchChannel: SwitchChannel#(RF=, 1T)
MT7601_ChipSwitchChannel: SwitchChannel#(RF=, 1T)
MT7601_ChipSwitchChannel: SwitchChannel#(RF=, 1T)
MT7601_ChipSwitchChannel: SwitchChannel#(RF=, 1T)
MT7601_ChipSwitchChannel: SwitchChannel#(RF=, 1T)
MT7601_ChipSwitchChannel: SwitchChannel#(RF=, 1T)
SYNC - End of SCAN, restore to 20MHz channel , Total BSS[]
SCAN done, resume MSDU transmission ...
CNTL - All roaming failed, restore to channel , Total BSS[]
TSSI = 0x57
temperature = 0x2
PacketType = 0xBD
tx_11g_rate: b
Channel PWR + MCS PWR =
TargetPower: 0x2528f()
tssi_m_dc:
TssiLinear0:
TssiDC0: -
tssi_offset:
tssi_offset<<:
TssiSlope:
tssi_db:
CurrentPower:
PowerDiff: -
final PowerDiff: -(0xfffffffe)
MAC 13b4: 0xc9540027 [zengjf@root ~]#