nl80211 总结:
sdio usb 两种wifi
realtek RTL8189FS RTL8189FTV sdio
提供了wifi 驱动的源码 只需要将 WIFI 驱动源码添加
到 Linux 内核中,然后通过图形化界面配置,选择将其编译成模块即可。
drivers/net/wireless/rtlwifi/Kconfig
1 config RTL8192CU
2 tristate "Realtek RTL8192CU/RTL8188CU USB Wireless Network Adapter"
3 depends on USB
4 select RTLWIFI
5 select RTLWIFI_USB
6 select RTL8192C_COMMON
7 ---help---
8 This is the driver for Realtek RTL8192CU/RTL8188CU 802.11n USB
9 wireless network adapters.
10
11 If you choose to build it as a module, it will be called rtl8192cu
第287 source "drivers/net/wireless/realtek/Kconfig"
删除原有的 同步自己的。 这样 WIFI 驱动的配置界面才会出现在 Linux 内核配置界面上。
drivers/net/wireless/rtlwifi/Makefile
1 obj-$(CONFIG_RTL8192CU) += rtl8192cu/
obj-y += realtek/
第 65 行,编译 realtek 中的内容,至此,Linux 内核要修改的内容就全部完成了
配置 USB 支持设备
-> Device Drivers
-> <*> USB support
-> <*> Support for Host-side USB
-> <*> EHCI HCD (USB 2.0) support
-> <*> OHCI HCD (USB 1.1) support
-> <*> ChipIdea Highspeed Dual Role Controller
-> [*] ChipIdea device controller
-> [*] ChipIdea host controller
配置支持 WIFI 设备
> Device Drivers
-> [*] Network device support
-> [*] Wireless LAN
-> <*> IEEE 802.11 for Host AP (Prism2/2.5/3 and WEP/TKIP/CCMP)
-> [*] Support downloading firmware images with Host AP driver
-> [*] Support for non-volatile firmware download
-> Device Drivers
-> Network device support (NETDEVICES [=y])
-> Wireless LAN (WLAN [=y])
-> Realtek wifi (REALTEK_WIFI [=m])
-> rtl8189ftv sdio wifi
-> rtl8188eus usb wifi
-> Realtek 8192C USB WiFi
ifconfig -a RTL8188 对应的网卡
驱动测试都工作正常,但是我们得能联网啊,不能联网的话要他有什么用呢?WIFI 要想联网,需要移植一些其他第三方组件,否
则无法连接路由器,接下来我们就移植这些第三方组件。
wireless tools
iwlist iwconfig
iwlist wlan0 scan
wpa_supplicant 移植
wpa_cli
wpa_supplicant -v
加载RTL8189 驱动模块
ifconfig wlan0 up 打开网卡
ifconfig wlan0 拿到 ifconfig 的 wlan0