内核版本:linux-2.6.39
开发板平台:at91sam9x35
wifi模块:rt3070
先说一下wifi的两种常见的模式。
AP模式: Access Point,提供无线接入服务,允许其它无线设备接入,提供数据访问,一般的无线路由/网桥工作在该模式下。AP和AP之间允许相互连接。
Station模式:类似于无线终端,station本身并不接受无线的接入,它可以连接到AP,一般无线网卡即工作在该模式。
hostapd就是使wifi模块工作在AP模式。
一.添加内核对rt3070的支持。
make menuconfig:
[*] Networking support --->
-*- Wireless --->
<*> cfg80211 - wireless configuration API
[ ] nl80211 testmode command
[ ] enable developer warnings
[ ] cfg80211 regulatory debugging
[*] enable powersave by default
[ ] use statically compiled regulatory rules database
[*] cfg80211 wireless extensions compatibility
[*] Wireless extensions sysfs files
<*> Common routines for IEEE802.11 drivers
[ ] lib80211 debugging messages (NEW)
<*> Generic IEEE 802.11 Networking Stack (mac80211)
[ ] PID controller based rate control algorithm (NEW)
[*] Minstrel (NEW)
[*] Minstrel 802.11n support (NEW)
Default rate control algorithm (Minstrel) --->
[ ] Enable mac80211 mesh networking (pre-802.11s) support (NEW)
[ ] Select mac80211 debugging features (NEW) --->
Device Drivers --->
[*] Network device support --->
[*] Wireless LAN --->
<*> Ralink driver support --->
--- Ralink driver support
< > Ralink rt2500 (USB) support (NEW)
< > Ralink rt2501/rt73 (USB) support (NEW)
<