R2 internal Wifi/BT (MT6625L) - Kernel 4.14+


(Frank W.) #161

I’m interested in diff between my version and yours :slight_smile: to get them in my tree

Have you used 4.14 version or 4.16+?


(Frank W.) #162

if rfkill is added as module instead of buildin, there are many unresolved symbols while linking

build log
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).

changes made by rfkill=m
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


(Maciek Szelągowski) #163

@frank-w

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.


(Frank W.) #164

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).


(Maciek Szelągowski) #165

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 ???


(Frank W.) #166

Internal device have to be created using wmt-tools. See wifi.sh on my github (utils/scripts).

External seems to be ok so far…


(Maciek Szelągowski) #167

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


(Frank W.) #168

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


(Maciek Szelągowski) #169

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?


(Frank W.) #170

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 &

(Maciek Szelągowski) #171

you’re right, a made changes in hostapd_ap0.conf and created new hostapd_ap1.conf for external


(Frank W.) #172

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)?