Linux 4.19.98下移植RTL8188eu
作者:互联网
部分命令来自
https://www.cnblogs.com/tid-think/p/10913680.html
https://segmentfault.com/a/1190000011579147?utm_source=tag-newest
下载这里的代码:
https://download.csdn.net/download/lionfire/12251562
驱动编译成功后,在wpa_supplicant_hostapd目录下,编译wpa工具
(A)wpa_supplicant_hostapd 0.8_rtw_20111118.zip
(1)wpa_supplicant
(1-1) unzip wpa_sup plicant_hostapd-0.8_rtw_2011 1118 .zip
(1-2 )cd wpa_supplicant_hostapd-0.8\wpa_supplicant
(1 3 )vim Makefile
added:
CC = mipsel linux gcc 这一句不用了
(1 4 ) CC= "$CC" make -j8
(1 5 )copy "wpa_supplicant" and "wpa_cli" to target platform
(1 6 )copy wpa_0_8.conf " file to target platform
(1 7 )wpa_supplicant -iwlan0 -Dwext -c wpa_0_8.conf -dd &
(1 8 )./wps_cli (for wps in Intera ctive mode)这一句不用了
(1 9) > help这一句不用了
> wps_pbc这一句不用了
> wps_pin any 12345678这一句不用了
实际命令如下:
ifconfig wlan0 up
wpa_supplicant -iwlan0 -Dwext -c /etc/wpa_0_8.conf -dd &
wpa_cli -i wlan0 scan
wpa_cli -i wlan0 scan_result
wpa_cli -i wlan0 add_network
wpa_cli -i wlan0 set_network 0 ssid '"NETGEAR49"' wpa_cli -i wlan0 set_network 0 psk '"13029932"' wpa_cli -i wlan0 enable_network 0
udhcpc -i wlan0
wpa_cli -i wlan0 save_config
保存后,以后每次执行上面黄色标亮的部分就可以了
如果不行这是手工方法:
#udhcpc -i wlan0 -s /etc/udhcpc.script -q
ifconfig wlan0 192.168.3.32
route add default gw 192.168.3.1
标签:hostapd,cli,4.19,supplicant,RTL8188eu,98,wlan0,wpa,network 来源: https://blog.csdn.net/lionfire/article/details/104897654