I’m interested in diff between my version and yours to get them in my tree
Have you used 4.14 version or 4.16+?
I’m interested in diff between my version and yours to get them in my tree
Have you used 4.14 version or 4.16+?
if rfkill is added as module instead of buildin, there are many unresolved symbols while linking
drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic_rx.o: In function `cfg80211_vendor_cmd_alloc_reply_skb':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5079: undefined reference to `__cfg80211_alloc_reply_skb'
drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic_rx.o: In function `nicRxProcessGSCNEvent':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic_rx.c:1627: undefined reference to `cfg80211_vendor_cmd_reply'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.o: In function `wlanStop':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:2149: undefined reference to `cfg80211_scan_done'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.o: In function `wiphy_new':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:3946: undefined reference to `wiphy_new_nm'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.o: In function `createWirelessDevice':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:1640: undefined reference to `wiphy_register'
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:1696: undefined reference to `wiphy_free'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.o: In function `destroyWirelessDevice':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:1707: undefined reference to `wiphy_unregister'
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:1708: undefined reference to `wiphy_free'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.o: In function `wlanSchedScanStoppedWorkQueue':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:1839: undefined reference to `cfg80211_sched_scan_stopped'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.o: In function `wlanNetRegister':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:2249: undefined reference to `wiphy_unregister'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.o: In function `kalIndicateStatusAndComplete':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:1829: undefined reference to `cfg80211_scan_done'
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:1714: undefined reference to `ieee80211_channel_to_frequency'
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:1713: undefined reference to `ieee80211_get_channel'
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:1720: undefined reference to `cfg80211_get_bss'
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:1744: undefined reference to `cfg80211_get_bss'
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:1748: undefined reference to `cfg80211_unlink_bss'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.o: In function `cfg80211_connect_bss':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5375: undefined reference to `cfg80211_connect_done'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.o: In function `kalIndicateStatusAndComplete':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:1894: undefined reference to `cfg80211_pmksa_candidate_notify'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.o: In function `cfg80211_connect_bss':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5375: undefined reference to `cfg80211_connect_done'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.o: In function `kalIndicateStatusAndComplete':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:1806: undefined reference to `cfg80211_disconnected'
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:1863: undefined reference to `cfg80211_michael_mic_failure'
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:1768: undefined reference to `cfg80211_roamed'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.o: In function `cfg80211_inform_bss':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:4764: undefined reference to `cfg80211_inform_bss_data'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.o: In function `kalReadyOnChannel':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:3999: undefined reference to `ieee80211_channel_to_frequency'
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:3998: undefined reference to `ieee80211_get_channel'
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:4022: undefined reference to `cfg80211_ready_on_channel'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.o: In function `kalRemainOnChannelExpired':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:4055: undefined reference to `ieee80211_channel_to_frequency'
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:4054: undefined reference to `ieee80211_get_channel'
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:4078: undefined reference to `cfg80211_remain_on_channel_expired'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.o: In function `kalIndicateMgmtTxStatus':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:4108: undefined reference to `cfg80211_mgmt_tx_status'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.o: In function `kalIndicateRxMgmtFrame':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:4152: undefined reference to `cfg80211_rx_mgmt'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.o: In function `cfg80211_testmode_alloc_event_skb':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5223: undefined reference to `__cfg80211_alloc_event_skb'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.o: In function `cfg80211_testmode_event':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5240: undefined reference to `__cfg80211_send_event_skb'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.o: In function `kalIndicateBssInfo':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:3940: undefined reference to `ieee80211_channel_to_frequency'
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:3939: undefined reference to `ieee80211_get_channel'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.o: In function `cfg80211_inform_bss_frame':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:4686: undefined reference to `cfg80211_inform_bss_frame_data'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.o: In function `kalIndicateBssInfo':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:3963: undefined reference to `cfg80211_put_bss'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.o: In function `kalSchedScanResults':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:4438: undefined reference to `cfg80211_sched_scan_results'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.o: In function `cfg80211_testmode_alloc_reply_skb':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5178: undefined reference to `__cfg80211_alloc_reply_skb'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.o: In function `cfg80211_testmode_reply':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5196: undefined reference to `cfg80211_vendor_cmd_reply'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.o: In function `cfg80211_testmode_alloc_reply_skb':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5178: undefined reference to `__cfg80211_alloc_reply_skb'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.o: In function `cfg80211_testmode_reply':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5196: undefined reference to `cfg80211_vendor_cmd_reply'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.o: In function `cfg80211_testmode_alloc_reply_skb':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5178: undefined reference to `__cfg80211_alloc_reply_skb'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.o: In function `cfg80211_testmode_reply':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5196: undefined reference to `cfg80211_vendor_cmd_reply'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.o: In function `cfg80211_testmode_alloc_reply_skb':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5178: undefined reference to `__cfg80211_alloc_reply_skb'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.o: In function `cfg80211_testmode_reply':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5196: undefined reference to `cfg80211_vendor_cmd_reply'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.o: In function `cfg80211_vendor_cmd_alloc_reply_skb':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5079: undefined reference to `__cfg80211_alloc_reply_skb'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.o: In function `mtk_cfg80211_vendor_get_channel_list':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.c:185: undefined reference to `cfg80211_vendor_cmd_reply'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.o: In function `cfg80211_vendor_cmd_alloc_reply_skb':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5079: undefined reference to `__cfg80211_alloc_reply_skb'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.o: In function `mtk_cfg80211_vendor_get_gscan_capabilities':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.c:276: undefined reference to `cfg80211_vendor_cmd_reply'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.o: In function `cfg80211_vendor_cmd_alloc_reply_skb':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5079: undefined reference to `__cfg80211_alloc_reply_skb'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.o: In function `mtk_cfg80211_vendor_get_rtt_capabilities':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.c:942: undefined reference to `cfg80211_vendor_cmd_reply'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.o: In function `cfg80211_vendor_cmd_alloc_reply_skb':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5079: undefined reference to `__cfg80211_alloc_reply_skb'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.o: In function `mtk_cfg80211_vendor_llstats_get_info':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.c:993: undefined reference to `cfg80211_vendor_cmd_reply'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.o: In function `cfg80211_vendor_event_alloc':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5122: undefined reference to `__cfg80211_alloc_event_skb'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.o: In function `cfg80211_vendor_event':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5137: undefined reference to `__cfg80211_send_event_skb'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.o: In function `cfg80211_vendor_event_alloc':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5122: undefined reference to `__cfg80211_alloc_event_skb'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.o: In function `cfg80211_vendor_event':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5137: undefined reference to `__cfg80211_send_event_skb'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.o: In function `cfg80211_vendor_event_alloc':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5122: undefined reference to `__cfg80211_alloc_event_skb'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.o: In function `cfg80211_vendor_event':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5137: undefined reference to `__cfg80211_send_event_skb'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.o: In function `cfg80211_vendor_event_alloc':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5122: undefined reference to `__cfg80211_alloc_event_skb'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.o: In function `cfg80211_vendor_event':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5137: undefined reference to `__cfg80211_send_event_skb'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.o: In function `cfg80211_vendor_event_alloc':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5122: undefined reference to `__cfg80211_alloc_event_skb'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.o: In function `cfg80211_vendor_event':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5137: undefined reference to `__cfg80211_send_event_skb'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.o: In function `cfg80211_vendor_event_alloc':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5122: undefined reference to `__cfg80211_alloc_event_skb'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.o: In function `cfg80211_vendor_event':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5137: undefined reference to `__cfg80211_send_event_skb'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p.o: In function `p2pStop':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p.c:1597: undefined reference to `cfg80211_scan_done'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p.o: In function `wiphy_new':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:3946: undefined reference to `wiphy_new_nm'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p.o: In function `glP2pCreateWirelessDevice':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p.c:1205: undefined reference to `wiphy_register'
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p.c:1259: undefined reference to `wiphy_free'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p.o: In function `glP2pDestroyWirelessDevice':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p.c:1273: undefined reference to `wiphy_unregister'
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p.c:1274: undefined reference to `wiphy_free'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_kal.o: In function `kalP2PIndicateScanDone':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_kal.c:914: undefined reference to `cfg80211_scan_done'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_kal.o: In function `kalP2PIndicateMgmtTxStatus':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_kal.c:985: undefined reference to `cfg80211_mgmt_tx_status'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_kal.o: In function `kalP2PIndicateRxMgmtFrame':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_kal.c:1035: undefined reference to `cfg80211_rx_mgmt'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_kal.o: In function `cfg80211_connect_bss':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5375: undefined reference to `cfg80211_connect_done'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_kal.o: In function `kalP2PGCIndicateConnectionStatus':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_kal.c:1068: undefined reference to `cfg80211_disconnected'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_kal.o: In function `cfg80211_del_sta':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:5555: undefined reference to `cfg80211_del_sta_sinfo'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_kal.o: In function `kalP2PGOStationUpdate':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_kal.c:1099: undefined reference to `cfg80211_new_sta'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_kal.o: In function `kalP2PIndicateChannelReady':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_kal.c:826: undefined reference to `cfg80211_ready_on_channel'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_kal.o: In function `kalP2PIndicateChannelExpired':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_kal.c:866: undefined reference to `cfg80211_remain_on_channel_expired'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_kal.o: In function `cfg80211_inform_bss_frame':
/media/data_ext/bpi-r2-kernel/github/./include/net/cfg80211.h:4686: undefined reference to `cfg80211_inform_bss_frame_data'
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_kal.o: In function `kalP2PIndicateBssInfo':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_kal.c:961: undefined reference to `cfg80211_put_bss'
drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/tdls.o: In function `TdlsEventTearDown':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/tdls.c:3591: undefined reference to `cfg80211_tdls_oper_request'
drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/tdls.o: In function `TdlsexKeyHandle':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/tdls.c:4160: undefined reference to `cfg80211_tdls_oper_request'
drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/tdls.o: In function `TdlsexPeerAdd':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/tdls.c:4552: undefined reference to `cfg80211_tdls_oper_request'
drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/tdls.o: In function `TdlsexRxFrameDrop':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/tdls.c:4903: undefined reference to `cfg80211_tdls_oper_request'
drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/tdls.o: In function `TdlsexTxQuotaCheck':
/media/data_ext/bpi-r2-kernel/github/drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/tdls.c:5174: undefined reference to `cfg80211_tdls_oper_request'
problem seems that rfkill sets also CONFIG_CFG80211 to m, if this is set back to y no linking-error occours (rfkill+bt alone does not change that).
frank@frank-N56VZ:/media/data_ext/bpi-r2-kernel/github$ diff rfkill_y.config rfkill_m.config
1195c1195
< CONFIG_BT=y
---
> CONFIG_BT=m
1228c1228
< CONFIG_CFG80211=y
---
> CONFIG_CFG80211=m
1238c1238
< CONFIG_MAC80211=y
---
> CONFIG_MAC80211=m
1252c1252
< CONFIG_RFKILL=y
---
> CONFIG_RFKILL=m
1255c1255
< CONFIG_RFKILL_GPIO=y
---
> CONFIG_RFKILL_GPIO=m
1563,1564c1563,1564
< CONFIG_MTK_COMBO_BT=y
< CONFIG_MTK_COMBO_BT_HCI=y
---
> CONFIG_MTK_COMBO_BT=m
> CONFIG_MTK_COMBO_BT_HCI=m
none of this are checked in any makefile…
btw. i’ve tried to kick off wmt-tools here:
currently hang on missing dts-nodes on loading driver
can you point me some instructions how to run AP on Ubuntu 18.04.1 on your 4.14.66 kernel
I compiled your kernel with ath10k drivers (my 2nd wlan card is Sparklan WPEA-352ACN based on Qualcomm Atheros QCA9880-BR4A chipset).
I also put linux-firmware (for ath10k) to /lib/firmware.
I would like to run 802.11AC on Atheros at 5GHz as main network and build in wlan card at 2.4GHz as IOT network (the second is not so important now I have working AP based on BPi Pi Pro).
Thanks as always for any help.
First you have to look if your new wifi-card is recognized (lsusb/lspci+ip a).
Then look in my wiki for ap-configuration (need own hostapd.conf for each wifi).
lsusb:
root@serwer:~# lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lspci:
root@serwer:~# lspci
00:00.0 PCI bridge: MEDIATEK Corp. Device 0801 (rev 01)
00:01.0 PCI bridge: MEDIATEK Corp. Device 0801 (rev 01)
01:00.0 Network controller: Qualcomm Atheros QCA986x/988x 802.11ac Wireless Network Adapter
02:00.0 IDE interface: ASMedia Technology Inc. ASM1061 SATA IDE Controller (rev 02)
ip a
root@serwer:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether a2:7d:86:95:1f:1c brd ff:ff:ff:ff:ff:ff
inet6 fe80::a07d:86ff:fe95:1f1c/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether aa:bb:a7:5f:b2:14 brd ff:ff:ff:ff:ff:ff
4: wan@eth1: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether aa:bb:a7:5f:b2:14 brd ff:ff:ff:ff:ff:ff
5: lan0@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether a2:7d:86:95:1f:1c brd ff:ff:ff:ff:ff:ff
inet 10.102.0.110/24 brd 10.102.0.255 scope global lan0
valid_lft forever preferred_lft forever
inet6 fe80::a07d:86ff:fe95:1f1c/64 scope link
valid_lft forever preferred_lft forever
6: lan1@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether a2:7d:86:95:1f:1c brd ff:ff:ff:ff:ff:ff
7: lan2@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether a2:7d:86:95:1f:1c brd ff:ff:ff:ff:ff:ff
8: lan3@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether a2:7d:86:95:1f:1c brd ff:ff:ff:ff:ff:ff
9: wlp1s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 00:0e:8e:59:10:78 brd ff:ff:ff:ff:ff:ff
seems internal is not recognized …
your tutorial is that: http://www.fw-web.de/dokuwiki/doku.php?id=en:bpi-r2:wlan ???
Internal device have to be created using wmt-tools. See wifi.sh on my github (utils/scripts).
External seems to be ok so far…
I tried your tutorial, put appropriate files (change them chmod +x) and run wifi.sh:
root@serwer:~# ./wifi.sh
wifidev does not exist...create it...
./wifi.sh: line 46: 401 Segmentation fault /usr/bin/wmt_loader > /var/log/wmtloader.log
./wifi.sh: line 41: /usr/bin/stp_uart_launcher: Permission denied
Error, wifi device no created, /dev/wmtWifi
Device "ap0" does not exist.
Error, device no available, ap0
/var/log/wmtloader.log is empty file …
and my firmware is in /lib/firmware not /etc/firmware (corrected that in wifi.sh
Wifi.sh starts only internal wifi…you find wmt-tools and files (firmware/config) on my gdrive…simply unpack that archive in your rootfs (same folders!)
https://drive.google.com/open?id=1E3RKyf-P2ixrJykj2548y0r67JY2u5vj
Thanks,
wifi works, SSID is visible but I cannot connect (even don’t ask me for password). I edited wifi.sh and put my ssid and password.
Can I copy wifi.sh to wifi2.sh and change apropriate values (ssid, ap0 to ap1) to run external wifi card?
Ssid and password in wifi.sh?
These values are in /etc/hostapd/hostapd_ap0.conf
You have to configure also dnsmasq and ip in wifi.sh
For second hostapd create a secont hostapd.conf and only run hostapd with this config
I start a second bash-script at the end of wifi.sh
[13:59] frank@bpi-r2-e:~$ cat /usr/local/sbin/hostapd_2.sh
#!/bin/bash
pid=$(ps auxf | grep hostapd | grep wlan1 | awk '{print $2}')
if [[ -n "$pid" ]];then
kill -9 $pid
fi
sleep 5s
hostapd -dd /etc/hostapd/hostapd_wlan1.conf &>/var/log/hostapd_wlan1.log &
you’re right, a made changes in hostapd_ap0.conf and created new hostapd_ap1.conf for external
Before adding second script to wifi.sh test it…
Based on your configuration you have to use different subnet for new wifi…ip and dhcp
is ap0 working now (connection and dhcp/access from client to server)?
Anyone having an idea how we can drop wmt_loader and stp_uart_launcher?
Maybe it’s a good idea to make wifi also to an module so that kernel itself is completely loaded when wifi-driver is initialized
hi, i’m trying to port wifi-driver to 5.3
compile/bootup works well, but i cannot write to /dev/wmtWifi
root@bpi-r2-ubuntu:~# echo A >/dev/wmtWifi
-bash: echo: write error: Input/output error
root@bpi-r2-ubuntu:~# ls -l /dev/wmtWifi
crw------- 1 root root 155, 0 Jul 24 11:11 /dev/wmtWifi
any idea how to fix this? commands before (wmtloader,stp_uart_launcher) were without errors.
looked in dmesg and found this:
[ 459.795195] [WMT-DETECT][I]wmt_detect_open:open major 154 minor 0 (pid 1677)
[ 459.795234] [WMT-DETECT][I]wmt_detect_unlocked_ioctl:cmd (-2147191037),arg(0)
[ 459.795328] [WMT-DETECT][I]wmt_detect_unlocked_ioctl:cmd (1074034433),arg(30243)
[ 459.795336] set current consys chipid (0x7623)
[ 459.795349] [WMT-DETECT][I]wmt_detect_unlocked_ioctl:cmd (-2147191036),arg(30243)
[ 459.795359] [WMT-MOD-INIT][I]do_common_drv_init:start to do common driver init, chipid:0x00007623
[ 459.808166] [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6620.defAnt'.
[ 459.808181] [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6628.defAnt'.
[ 459.808189] [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6630.defAnt'.
[ 459.811229] [WMT-CONSYS-HW][E]mtk_wmt_probe(123):Wmt Cannot find pinctrl default!
[ 459.812574] [WMT-MOD-INIT][I]do_common_drv_init:finish common driver init
[ 459.812592] [WCN-MOD-INIT][E]do_connectivity_driver_init(57):do common driver init failed, ret:-1
[ 459.812597] [GPS-MOD-INIT][I]do_gps_drv_init:CONFIG_MTK_COMBO_GPS is not defined
[ 459.812602] [WCN-MOD-INIT][E]do_connectivity_driver_init(62):do common driver init failed, ret:-1
[ 459.812607] [FM-MOD-INIT][I]do_fm_drv_init:start to do fm module init
[ 459.812611] [FM-MOD-INIT][I]do_fm_drv_init:finish fm module init
[ 459.812616] [WLAN-MOD-INIT][I]do_wlan_drv_init:start to do wlan module init 0x7623
[ 459.813011] [MTK-WIFI] WIFI_init: mtk_wmt_WIFI_chrdev driver(major 155) installed.
[ 459.813020] [WLAN-MOD-INIT][I]do_wlan_drv_init:WMT-WIFI char dev init, ret:0
[ 459.813093] ------------[ cut here ]------------
[ 459.813117] WARNING: CPU: 1 PID: 1677 at net/wireless/core.c:868 wiphy_register+0x900/0xc0c
[ 459.813122] Modules linked in:
[ 459.813135] CPU: 1 PID: 1677 Comm: wmt_loader Not tainted 5.3.0-rc1-bpi-r2-wifi #291
[ 459.813139] Hardware name: Mediatek Cortex-A7 (Device Tree)
[ 459.813143] Backtrace:
[ 459.813161] [<c010e4ec>] (dump_backtrace) from [<c010e800>] (show_stack+0x20/0x24)
[ 459.813180] r7:00000009 r6:60000013 r5:00000000 r4:c12bfb90
[ 459.813193] [<c010e7e0>] (show_stack) from [<c0c38624>] (dump_stack+0xbc/0xd0)
[ 459.813204] [<c0c38568>] (dump_stack) from [<c01276e4>] (__warn+0xf0/0x108)
[ 459.813212] r7:00000009 r6:c106ab60 r5:00000000 r4:00000000
[ 459.813221] [<c01275f4>] (__warn) from [<c0127834>] (warn_slowpath_null+0x50/0x58)
[ 459.813231] r9:0000001e r8:0000003a r7:c1397444 r6:c0b6df4c r5:00000364 r4:c106ab60
[ 459.813243] [<c01277e4>] (warn_slowpath_null) from [<c0b6df4c>] (wiphy_register+0x900/0xc0c)
[ 459.813250] r6:ffffffea r5:c1204c48 r4:e735e1a0
[ 459.813263] [<c0b6d64c>] (wiphy_register) from [<c06d2adc>] (mtk_wcn_wlan_gen2_init+0x140/0x2ec)
[ 459.813273] r10:ea7f63b8 r9:00007623 r8:c1204c48 r7:c0d7b2e0 r6:e672b600 r5:c138837c
[ 459.813278] r4:e735e1a0
[ 459.813288] [<c06d299c>] (mtk_wcn_wlan_gen2_init) from [<c0691358>] (do_wlan_drv_init+0x5c/0x114)
[ 459.813296] r7:80047704 r6:00007623 r5:00000000 r4:c12891f4
[ 459.813307] [<c06912fc>] (do_wlan_drv_init) from [<c0690f8c>] (do_connectivity_driver_init+0x64/0x14c)
[ 459.813315] r7:80047704 r6:00007623 r5:00007623 r4:fffffffe
[ 459.813324] [<c0690f28>] (do_connectivity_driver_init) from [<c0690420>] (wmt_detect_unlocked_ioctl+0x158/0x1c8)
[ 459.813330] r5:80047704 r4:c12891f0
[ 459.813341] [<c06902c8>] (wmt_detect_unlocked_ioctl) from [<c02ff50c>] (do_vfs_ioctl+0xc0/0x91c)
[ 459.813349] r7:80047704 r6:00000003 r5:e5266840 r4:e5266840
[ 459.813358] [<c02ff44c>] (do_vfs_ioctl) from [<c02ffdac>] (ksys_ioctl+0x44/0x68)
[ 459.813368] r10:00000036 r9:e778c000 r8:00007623 r7:80047704 r6:00000003 r5:e5266840
[ 459.813372] r4:e5266840
[ 459.813381] [<c02ffd68>] (ksys_ioctl) from [<c02ffde8>] (sys_ioctl+0x18/0x1c)
[ 459.813391] r9:e778c000 r8:c0101204 r7:00000036 r6:00000000 r5:00000000 r4:be86abb8
[ 459.813402] [<c02ffdd0>] (sys_ioctl) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[ 459.813407] Exception stack(0xe778dfa8 to 0xe778dff0)
[ 459.813416] dfa0: be86abb8 00000000 00000003 80047704 00007623 00000000
[ 459.813425] dfc0: be86abb8 00000000 00000000 00000036 00000000 00000000 b6f89000 00000000
[ 459.813432] dfe0: 00011010 be86ab84 000085b3 b6efb0a8
[ 459.813437] ---[ end trace 59c29bd1592a6faa ]---
[ 459.814031] [WLAN-MOD-INIT][I]do_wlan_drv_init:WLAN-GEN2 driver init, ret:0
[ 459.814041] [WLAN-MOD-INIT][I]do_wlan_drv_init:finish wlan module init
[ 459.814676] [WMT-DETECT][I]wmt_detect_close:close major 154 minor 0 (pid 1677)
[ 462.848809] [WMT-CORE][E]opfunc_hif_conf(874):WMT-CORE: WMT HIF info added
[ 462.849086] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 235
[ 462.849103] vcn18: mode operation not allowed
[ 462.849109] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 239
[ 462.849113] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 242
[ 462.849123] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 244
[ 462.849642] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 251
[ 462.849965] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 278
[ 462.850573] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 280
[ 462.850580] DEBUG: Passed mtk_wcn_consys_power_on 194
[ 462.850622] DEBUG: Passed mtk_wcn_consys_power_on 196
[ 462.850685] DEBUG: Passed mtk_wcn_consys_power_on 203
[ 462.850691] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 282
[ 462.850715] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 287
[ 462.850723] [WMT-CONSYS-HW][E]mtk_wcn_consys_hw_reg_ctrl(302):Read CONSYS chipId(0xfffff093)
[ 462.950712] [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6620.defAnt'.
[ 462.950741] [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6628.defAnt'.
[ 462.950760] [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6630.defAnt'.
[ 463.551515] [STP] mtk_wcn_stp_psm_enable:[W] STP Not Ready, Dont do Sleep/Wakeup
[ 467.905980] [MTK-WIFI] WIFI_open: WIFI_open: major 155 minor 0 (pid 1675)
[ 467.906040] [MTK-WIFI] WIFI_write: WIFI_write A
[ 467.940714] [WMT-FUNC][E]wmt_func_wifi_on(651):WMT-FUNC: wmt call wlan probe fail(-1)
[ 467.940802] [WMT-CORE][E]opfunc_func_on(1053):WMT-CORE:type(0x3) function on failed, ret(-1)
[ 467.940857] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.c, 1054, (0)
[ 467.941216] [MTK-WIFI] WIFI_write: WMT turn on WIFI fail!
[ 467.949589] [MTK-WIFI] WIFI_close: WIFI_close: major 155 minor 0 (pid 1675)
so something near mtk_wcn_wlan_gen2_init seems to go wrong
after
do_wlan_drv_init:WMT-WIFI char dev init, ret:0
mtk_wcn_wlan_gen2_init only calls initWlan which calls createWirelessDevice which calls wiphy_register,where crash occours
warning itself points to
wiphy-register is called here:
i found no position where vendor_commands[i].policy is set…maybe this is the problem
which points me to this commit: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=901bb9891855164fdcfcfdd9c3d25bcc800d3f5b
seems i need to change this struct same way it’s done in the commit for other drivers:
Currently patches out the warn-on and wifi works…have contacted author of this change to help me fixing this the right way…
i think i have fixed the problem…can now start wifi with WARN_ON activated
Hi all,
wow quite some content in this thread.
So what’s the current best way of doing wifi drivers for BPI-R2 with @frank-w 4.14-main branch? Do we still need the blobs with wmt_loader etc.?
Also: dId anyone find a way yet to make those go nicely with OpenWRT?
/asac
We still need wmt-tools cause i did not find a way to drop these and did not get any help on this yet.
@abbradar have tried pushing it to openwrt but it is too big and dirty to get it upstream (same for linux mainline)
ok thanks i will try the old blobs I used in the past and recombine them with your 4.14 branch then and see how that flies these days the openwrt userspace i currently use …
My repo and packages (tar.gz and deb) also containing the wmt-tools
I’ve updated my openwrt fork in https://github.com/abbradar/openwrt/tree/bpi-wifi , this required changes to wifi drivers code, see https://github.com/abbradar/mt6625l-wlan-gen2/commit/5a8fafb8b3d99da21d356219ed599556efbd990b . I’m also trying to upstream some patches again, see https://github.com/openwrt/openwrt/pull/2365