kaloz / mwlwifi

mac80211 driver for the Marvell 88W8864 802.11ac chip
396 stars 119 forks source link

mwlwifi

mac80211 driver for the Marvell 88W8x64 802.11ac chip

Building mwlwifi With OpenWrt/LEDE

See building for OpenWrt

Special Considerations

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":

    ls -l mwlwifi*

    You should see something like the following:

    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:

    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:

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

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

    tcpdump -vvvi mon0 icmp