qca wlan wifi modules 解析一

2022-09-18 17:04:38 浏览数 (1)

大家好,又见面了,我是你们的朋友全栈君。

分析lsdk-ap121 lsdk-ap134 源码: https://github.com/hades13/lsdk_ar9531 包含wifi drivers

另一wifi drivers版本: https://download.csdn.net/download/nolycjyf/3722308

目录结果:

代码语言:shell复制
apps
build 
drivers 
include 
modules 
boot  
docs   
images   
linux    
patches
rootfs

wifi drivers 在drivers目录下:

代码语言:shell复制
drivers
    firmware  
    wlan_modules
            adf  
            asf  
            hal  
            include  
            LicenseChoice.txt  
            lmac  
            Notice.txt  
            os  
            smartantenna  
            umac  
            wow

编译之后生成内核ko文件,在启动时会insmod,在文件 rootfs/board953x/etc/rc.d/rc.wlan

rc.wlan启动时执行:

代码语言:shell复制
#
# Finally, insert the modules
#
    insmod $MODULE_PATH/adf.ko
    insmod $MODULE_PATH/asf.ko
    insmod $MODULE_PATH/ath_hal.ko
    insmod $MODULE_PATH/ath_rate_atheros.ko
    insmod $MODULE_PATH/ath_spectral.ko $SPECTRAL_ARGS
    if [ "${AP_NO_A_BAND}" != "1" ]; then
        #load DFS if A band is supported,default is supported and set AP_NO_A_BAND=1 if not supported
        insmod $MODULE_PATH/ath_dfs.ko $DFS_ARGS
    fi
    insmod $MODULE_PATH/hst_tx99.ko
    insmod $MODULE_PATH/ath_dev.ko
    insmod $MODULE_PATH/umac.ko
    insmod $MODULE_PATH/wlan_me.ko
    insmod $MODULE_PATH/ath_pktlog.ko

查看编译后生成的文件:

代码语言:shell复制
./asf/asf.ko
./os/linux/ath_hal/ath_hal.ko
./smartantenna/smart_antenna.ko
./adf/adf.ko
./lmac/ath_dev/ath_dev.ko
./lmac/ratectrl/ath_rate_atheros.ko
./lmac/ath_pktlog/ath_pktlog.ko
./umac/umac.ko

这是部分wifi驱动的内容,完整的架构包含以下内容: asf : Atheros Service Framework (ASF) qdf : Qualcomm Driver Framework lmac : LMAC (Lower Media Access Controller) umac : UMAC (Upper Media Access Controller) wow : The Wake on Wireless

代码语言:shell复制
1. asf.ko – Basic Framework module
2. qdf.ko – Basic Framework module
3. ath_spectral.ko – Spectral Support
4. ath_dfs.ko – DFS support
5. umac.ko – Common 802.11 protocol Management
6. ath_hal.ko – Direct-Attach HW abstraction Layer
7. ath_rate_atheros.ko – Direct-Attach Rate Control Support
8. hst_tx99.ko – Direct-Attach Tx99 Support
9. ath_dev.ko – Direct-Attach LMAC Layer
10. qca_da.ko – Direct-Attach Driver Support
11. qca_ol.ko – Offload Driver Support
12. smart_antenna.ko – Smart Antenna Support
13. ath_pktlog.ko – Direct-Attach Packet logging Support

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/157481.html原文链接:https://javaforall.cn

0 人点赞