将驱动复制到内核后编译打包烧录,ifconfig会显示wlan0
# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr 0C:C6:55:11:32:03
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:5 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
#
然后配置wifi
# cat /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ap_scan=1
network={
ssid="wifi"
psk="123456789"
}
#
通过下面命令连接wifi
# wpa_supplicant -D wext -c /etc/wpa_supplicant.conf -i wlan0
会一直弹下面这些信息,这是什么问题,希望大佬们帮忙指导下。
# wpa_supplicant -D wext -c /etc/wpa_supplicant.conf -i wlan0
Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL control device
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
wlan0: Trying to associate with dc:fe:18:11:11:12 (SSID='wifi' freq=2437 MHz)
Failed to add supported operating classes IE
wlan0: Authentication with dc:fe:18:11:11:12 timed out.
wlan0: CTRL-EVENT-DISCONNECTED bssid=dc:fe:18:11:11:12 reason=3 locally_generated=1
wlan0: Trying to associate with dc:fe:18:11:11:12 (SSID='wifi' freq=2437 MHz)
Failed to add supported operating classes IE
wlan0: Authentication with dc:fe:18:11:11:12 timed out.
wlan0: CTRL-EVENT-DISCONNECTED bssid=dc:fe:18:11:11:12 reason=3 locally_generated=1
wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="wifi" auth_failures=1 duration=10 reason=CONN_FAILED
wlan0: CTRL-EVENT-SSID-REENABLED id=0 ssid="wifi"
wlan0: Trying to associate with dc:fe:18:11:11:12 (SSID='wifi' freq=2437 MHz)
Failed to add supported operating classes IE
wlan0: Authentication with dc:fe:18:11:11:12 timed out.
wlan0: CTRL-EVENT-DISCONNECTED bssid=dc:fe:18:11:11:12 reason=3 locally_generated=1
wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="wifi" auth_failures=2 duration=23 reason=CONN_FAILED
离线