RT5572STA接口不支持扫描

时间:2015-05-06 06:09:38

标签: c linux wifi

我正在使用RT5572 USB Wifi适配器,在构建后能够加载驱动程序但是当我们尝试使用命令行扫描网络时,出现错误“界面不支持扫描”。 我有来自http://www.mediatek.com/en/downloads/rt8070-rt3070-rt3370-rt3572-rt5370-rt5372-rt5572-usb-usb/

的下载源代码
and use following commands to build:

=============================================== ========================

构建说明:

1> $tar -xvzf DPB_RT2870_Linux_STA_x.x.x.x.tgz
 go to "./DPB_RT2870_Linux_STA_x.x.x.x" directory.
2> In Makefile   
set the "MODE = STA" in Makefile and chose the TARGET to Linux by set "TARGET = LINUX"   define the linux kernel
 source include file path LINUX_SRC      modify to meet your need.

 3> In os/linux/config.mk   define the GCC and LD of the target machine
define the compiler flags CFLAGS    modify to meet your need.   ** Build
for being controlled by NetworkManager or wpa_supplicant wext
functions Please set 'HAS_WPA_SUPPLICANT=y'and'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'. 
=> #>cd wpa_supplicant-x.x
=> #>./wpa_supplicant -Dwext -ira0 -c wpa_supplicant.conf -d
4> $make
  # compile driver source code
 # To fix "error: too few arguments to function ¡¥iwe_stream_add_event"
 => $patch -i os/linux/sta_ioctl.c.patch os/linux/sta_ioctl.c

5> $cp RT2870STA.dat  /etc/Wireless/RT2870STA/RT2870STA.dat
6> load driver, go to "os/linux/" directory.
#[kernel 2.6]
#    $/sbin/insmod rt2870sta.ko
#    $/sbin/ifconfig ra0 inet YOUR_IP up

我无法理解

的含义
=> #>cd wpa_supplicant-x.x
=> #>./wpa_supplicant -Dwext -ira0 -c wpa_supplicant.conf -d

在第3步中。

1 个答案:

答案 0 :(得分:0)

界面需要首先“向上”

sudo ifconfig wlan0 up