Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

mwlwifi

> 编程语言
Open source

mac80211 driver for the Marvell 88W8864 802.11ac chip

400 stars0 likes3 views
WebsiteGitHub

About

mac80211 driver for the Marvell 88W8864 802.11ac chip

mwlwifi

mac80211 driver for the Marvell 88W8x64 802.11ac chip

Building mwlwifi With OpenWrt/LEDE

See building for OpenWrt

Special Considerations

  • After driver 10.3.0.17-20160603, [MAX-MPDU-7991] should be removed from vht_capab command of hostapd.

  • Hostpad must include the following commit for 160 MHz operation:

…
  • In order to let STA mode to support 160 MHz operation, mac80211 package should be 2016-10-08 or later.

  • WiFi device does not use HT rates when using TKIP as the encryption cipher. If you want to have good performance, please use AES only.

  • DTS parameters for mwlwifi driver (pcie@X,0):

    bash
    #Disable 2g band
    marvell,2ghz = ;
    
    #Disable 5g band
    marvell,5ghz = ;
    
    #Specify antenna number, default is 4x4. For WRT1200AC, you must set these values to 2x2.
    marvell,chainmask = ;
    
    #Specify external power table. If your device needs external power table, you must provide the power table via this parameter, otherwise the Tx power will be pretty low.
    marvell,powertable

    To see if your device needs/accepts an external power table or not, run the following:

    bash
    cat /sys/kernel/debug/ieee80211/phy0/mwlwifi/info

    You should see a line in the results which looks like the following:

    bash
    power table loaded from dts: no

    If it is "no", it does not allow you to load external power table (for newer devices due to FCC regulations). If it is "yes", you must provide power table in DTS file (for older devices).

  • Changing interrupt to different CPU cores:

    bash
    #Use CPU0:
    echo 1 > /proc/irq/irq number of phy0 or phy1/smp_affinity
    
    #Use CPU1:
    echo 2 > /proc/irq/irq number of phy0 or phy1/smp_affinity
  • Note for DFS of WRT3200ACM (88W8964):

    All WRT3200ACM devices are programmed with device power table. Mwlwifi driver will base on region code to set country code for your device and it will not allow you to change country code. There are another wifi (phy2) on WRT3200ACM which is not mwlwifi. It will allow you to change country code. Under this case, country code setting will be conflicted and it will let DFS can't work.

    There are two ways to resolve this problem:

    • Please don't change country code and let mwlwifi set it for you.

    • Remove phy2. Under this case, even though you change country code, mwlwifi will reject it. Because phy2 is not existed, country code setting won't be conflicted. To do this, run the following commands (for OpenWrt/LEDE):

      bash
      opkg remove kmod-mwifiex-sdio
      opkg remove mwifiex-sdio-firmware
      reboot

    The better way is let mwlwifi set country code for you.

Replacing mwlwifi on a Current OpenWrt/LEDE Build

  1. Establish a symbolic link to your working mwlwifi directory with current mwlwifi package name under directory "dl":

    bash
    ls -l mwlwifi*

    You should see something like the following:

    bash
    lrwxrwxrwx 1 dlin dlin      48  mwlwifi-10.3.2.0-20170110 -> /home/dlin/home2/projects/github/mwlwifi
    
    -rw-r--r-- 1 dlin dlin 4175136  mwlwifi-10.3.2.0-20170110.tar.xz
  2. Back up original mwlwifi package and tar your working mwlwifi to replace original mwlwifi package:

    bash
    tar Jcvf mwlwifi-10.3.2.0-20170110.tar.xz mwlwifi-10.3.2.0-20170110/.
  3. You can use make V=s to build the whole image or make V=s package/kernel/mwlwifi/compile to build mwlwifi package. The generated whole image or mwlwifi package can be found under directory "bin".

Due to package version being the same as previous one, you need to add option --force-reinstall when you use opkg to update mwlwifi package on your device.

Monitor interface for debug

  1. Create moinitor interface mon0:

    bash
    iw wlan0/wlan1 interface add mon0 type monitor
    ifconfig mon0 up
  2. Use tcpdump to dump dhcp packets:

    bash
    tcpdump -vvvi mon0 -n port 67 and port 68
  3. Use tcpdump to dump icmp packets:

    bash
    tcpdump -vvvi mon0 icmp

Issues· 44 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言