Mt76 from openwrt


(Frank W.) #1

hi,

i try to add mt76-driver from openwrt in 4.19 (i know that there is already one, but i try to get latest source for it).

have compilation working, but modprost brings massive errors about undefined functions…i miss anything for linker…

3 examples:

ERROR: "mt76x02_ext_pa_enabled" [drivers/net/wireless/mediatek/mt76/mt76x2/mt76x2-common.ko] undefined!
ERROR: "mt76x02_phy_dfs_adjust_agc" [drivers/net/wireless/mediatek/mt76/mt76x2/mt76x2-common.ko] undefined!
ERROR: "mt76x02_phy_adjust_vga_gain" [drivers/net/wireless/mediatek/mt76/mt76x2/mt76x2-common.ko] undefined!

maybe anybody has a clue (code is located at drivers/net/wireless/mediatek/mt76)

i guess i need linking mt76x02-lib-y into mt76-y, which is build as module “obj-m := mt76.o” but i’m no expert in makefiles

i did not know when mt76x02-lib is build and how it gets linked to mt76-module

have modified Kconfig and Makefile and it seems to work…no compile-error


(Frank W.) #2

Does anyone else have mt7612 pcie wifi-card in bpi-r2 who can test? I have my card in main-router and waiting for second card (for test-router)…maybe anyone can test it till then


[BPI-R2] Kernel 4.14 issues