http://blog.csdn.net/zhang_danf/article/details/48133657
https://wiki.debian.org/WiFi/HowToUse
http://www.arm9home.net/read.php?tid=17507
http://blog.sina.com.cn/s/blog_567002510101cyej.html
在cubieboar2(A20)平台上进行hostapd+RT3070的softAP配置时,出现类似如下错误:
[ 1043.640000] phy0 -> rt2x00lib_request_firmware: Error – Failed to request
Firmware.
SIOCSIFFLAGS: No such file or directory
上面的出错信息表明没有USB WiFi Dongle的固件,我们需要把它放到正确的地方。
用命令“$modinfo rt2800usb” 来发现固件的名字为: rt2870.bin.
root@ubuntu :~# modinfo rt2800usb
filename: /lib/modules/3.4.29+/kernel/drivers/net/wireless/rt2x00/rt2800usb.ko
license: GPL
firmware: rt2870.bin
description: Ralink RT2800 USB Wireless LAN driver.
version: 2.3.0
author: http://rt2x00.serialmonkey.com
拷贝固件到正确的位置:
$sudo cp rt2870.bin /lib/firmware/
现在我们再次启动wlan2, 但是,在启动hostapd时,又出现了另一个错误:
nl80211: Could not configure driver mode
nl80211 driver initialization failed.
hostapd_free_hapd_data: Interface wlan2 wasn’t started
解决方法是依次执行以下命令:
sudo nmcli nm wifi off /nmcli是NetworkManager的命令行版/
sudo rfkill unblock wlan
sudo ifconfig wlan0 10.15.0.1/24 up
sleep 1
sudo service isc-dhcp-server restart
sudo service hostapd restart
那么,经过以上操作,就可以正常的启动一个RT3070网卡了,并利用hostapd配置为softAP模式,可以正常产生ssid 了,并能正常连接了