Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhhaurlin committed Jun 12, 2017
1 parent 32dba3c commit d669729
Showing 1 changed file with 35 additions and 18 deletions.
53 changes: 35 additions & 18 deletions README.md
Expand Up @@ -3,19 +3,17 @@ mac80211 driver for the Marvell 88W8x64 802.11ac chip

* How to build mwlwifi with OpenWrt:

10.3.0.17-20160601 had been modified to be built with latest backports package "compat-wireless-2016-01-10" without patches.
10.3.0.17-20160601 had been modified to be built with latest backports package "compat-wireless-2016-01-10" without patches.

a. Modify package/kernel/mwlwifi/Makefile:
a. Modify package/kernel/mwlwifi/Makefile:

PKG_VERSION:=10.3.0.17-20160601
&
PKG_SOURCE_VERSION:=4bb95ba1aeccce506a95499b49b9b844ecfae8a1
PKG_VERSION:=10.3.0.17-20160601 & PKG_SOURCE_VERSION:=4bb95ba1aeccce506a95499b49b9b844ecfae8a1

b. Rename package/kernel/mwlwifi/patches to package/kernel/mwlwifi/patches.tmp
b. Rename package/kernel/mwlwifi/patches to package/kernel/mwlwifi/patches.tmp

c. make package/kernel/mwlwifi/clean
c. make package/kernel/mwlwifi/clean

d. make V=s (-jx)
d. make V=s (-jx)

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

Expand Down Expand Up @@ -48,23 +46,42 @@ d. make V=s (-jx)
 If you want to have good performance, please use AES only.
* DTS parameters for mwlwifi driver (pcie@X,0):

marvell,2ghz = <0>; => Disable 2g band.
marvell,5ghz = <0>; => Disable 5g band.
marvell,2ghz = <0>; => Disable 2g band.

marvell,chainmask = <4 4>; => Specify antenna number, default is 4x4. For WRT1200AC, you must set these values to 2x2.
marvell,5ghz = <0>; => Disable 5g band.

marvell,powertable => 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,chainmask = <4 4>; => Specify antenna number, default is 4x4. For WRT1200AC, you must set these values to 2x2.

root@lede:/# cat /sys/kernel/debug/ieee80211/phy0/mwlwifi/info
marvell,powertable => 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.

power table loaded from dts: no
root@lede:/# cat /sys/kernel/debug/ieee80211/phy0/mwlwifi/info

power table loaded from dts: no

=> If it is "no", it does not allow you to load external power table (for new device).
=> If it is "no", it does not allow you to load external power table (for new device).

=> If it is "yes", you must provide power table in DTS file (for old device).
=> If it is "yes", you must provide power table in DTS file (for old device).

* The way to change interrupt to different CPU cores:

root@lede:/# echo 1 > /proc/irq/irq number of phy0 or phy1/smp_affinity => use CPU0
root@lede:/# echo 1 > /proc/irq/irq number of phy0 or phy1/smp_affinity => use CPU0

root@lede:/# echo 2 > /proc/irq/irq number of phy0 or phy1/smp_affinity => use CPU1

* How to replace mwlwifi on your current LEDE/OpenWrt build:

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

#ls -l mwlwifi*

root@lede:/# echo 2 > /proc/irq/irq number of phy0 or phy1/smp_affinity => use CPU1
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

b. Back up original mwlwifi package and tar your working mwlwifi to replace oringial mwlwifi package:

#tar Jcvf mwlwifi-10.3.2.0-20170110.tar.xz mwlwifi-10.3.2.0-20170110/.

c. You can use "make V=s" to build the whole image or "make V=s package/kernel/mwlwifi/compile" to build mwlwifi package.

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

0 comments on commit d669729

Please sign in to comment.