Skip to content

Instantly share code, notes, and snippets.

@Geofferey
Created September 28, 2019 03:30
Show Gist options
  • Save Geofferey/df663a65d854f28f2078c4f4d7370ba6 to your computer and use it in GitHub Desktop.
Save Geofferey/df663a65d854f28f2078c4f4d7370ba6 to your computer and use it in GitHub Desktop.
Build error when building prima module moto ocean
file included from ../../../../../../kernel/motorola/msm8953/drivers/staging/prima/CORE/HDD/src/wlan_hdd_assoc.c:64:
../../../../../../kernel/motorola/msm8953/drivers/staging/prima/CORE/HDD/inc/wlan_hdd_tdls.h:529:39: error: unknown type name 'eTDLSSupportMode'
eTDLSSupportMode tdls_mode)
^
../../../../../../kernel/motorola/msm8953/drivers/staging/prima/CORE/HDD/inc/wlan_hdd_tdls.h:537:1: error: unknown type name 'tdlsConnInfo_t'
tdlsConnInfo_t *wlan_hdd_get_conn_info(hdd_context_t *pHddCtx,
^
../../../../../../kernel/motorola/msm8953/drivers/staging/prima/CORE/HDD/src/wlan_hdd_assoc.c:4697:22: error: no member named 'MFPCapable' in 'struct tagCsrRoamProfile'
roam_profile->MFPCapable = roam_profile->MFPEnabled;
~~~~~~~~~~~~ ^
../../../../../../kernel/motorola/msm8953/drivers/staging/prima/CORE/HDD/src/wlan_hdd_assoc.c:4697:49: error: no member named 'MFPEnabled' in 'struct tagCsrRoamProfile'
roam_profile->MFPCapable = roam_profile->MFPEnabled;
~~~~~~~~~~~~ ^
../../../../../../kernel/motorola/msm8953/drivers/staging/prima/CORE/HDD/src/wlan_hdd_assoc.c:4796:65: error: no member named 'MFPEnabled' in 'struct tagCsrRoamProfile'
FL("MFPEnabled %d"), pWextState->roamProfile.MFPEnabled);
~~~~~~~~~~~~~~~~~~~~~~~ ^
../../../../../../kernel/motorola/msm8953/drivers/staging/prima/CORE/HDD/inc/wlan_hdd_main.h:186:72: note: expanded from macro 'hddLog'
#define hddLog(level, args...) VOS_TRACE( VOS_MODULE_ID_HDD, level, ## args)
^~~~
../../../../../../kernel/motorola/msm8953/drivers/staging/prima/CORE/HDD/src/wlan_hdd_assoc.c:4801:41: error: no member named 'MFPEnabled' in 'struct tagCsrRoamProfile'
if (pWextState->roamProfile.MFPEnabled &&
~~~~~~~~~~~~~~~~~~~~~~~ ^
../../../../../../kernel/motorola/msm8953/drivers/staging/prima/CORE/HDD/src/wlan_hdd_assoc.c:4802:43: error: no member named 'MFPRequired' in 'struct tagCsrRoamProfile'
!(pWextState->roamProfile.MFPRequired ||
~~~~~~~~~~~~~~~~~~~~~~~ ^
../../../../../../kernel/motorola/msm8953/drivers/staging/prima/CORE/HDD/src/wlan_hdd_assoc.c:4803:43: error: no member named 'MFPCapable' in 'struct tagCsrRoamProfile'
pWextState->roamProfile.MFPCapable)) {
~~~~~~~~~~~~~~~~~~~~~~~ ^
../../../../../../kernel/motorola/msm8953/drivers/staging/prima/CORE/HDD/src/wlan_hdd_assoc.c:4805:45: error: no member named 'MFPEnabled' in 'struct tagCsrRoamProfile'
pWextState->roamProfile.MFPEnabled = 0;
~~~~~~~~~~~~~~~~~~~~~~~ ^
9 errors generated.
/mnt/builddisk/geofferey/Android/lineage/kernel/motorola/msm8953/scripts/Makefile.build:339: recipe for target 'drivers/staging/prima/CORE/HDD/src/wlan_hdd_assoc.o' failed
make[4]: *** [drivers/staging/prima/CORE/HDD/src/wlan_hdd_assoc.o] Error 1
/mnt/builddisk/geofferey/Android/lineage/kernel/motorola/msm8953/scripts/Makefile.build:653: recipe for target 'drivers/staging/prima' failed
make[3]: *** [drivers/staging/prima] Error 2
/mnt/builddisk/geofferey/Android/lineage/kernel/motorola/msm8953/scripts/Makefile.build:653: recipe for target 'drivers/staging' failed
make[2]: *** [drivers/staging] Error 2
make[2]: *** Waiting for unfinished jobs....
CC drivers/video/fbdev/core/fbmem.o
LD drivers/video/fbdev/omap2/omapfb/displays/built-in.o
LD drivers/video/fbdev/omap2/omapfb/dss/built-in.o
LD drivers/video/fbdev/omap2/omapfb/built-in.o
LD drivers/video/fbdev/omap2/built-in.o
CC drivers/soc/qcom/msm_bus/msm_bus_of.o
LD drivers/usb/class/built-in.o
CC drivers/usb/common/common.o
CC drivers/soc/qcom/msm_bus/msm_bus_rpm_smd.o
CC drivers/soc/qcom/msm_bus/msm_bus_fabric_adhoc.o
CC drivers/video/fbdev/msm/mdss_mdp_ctl.o
CC drivers/video/fbdev/msm/mdss_mdp_pipe.o
CC drivers/video/fbdev/msm/mdss_mdp_util.o
CC drivers/video/fbdev/core/fbmon.o
CC drivers/soc/qcom/msm_bus/msm_bus_arb_adhoc.o
LD drivers/usb/common/usb-common.o
CC drivers/usb/core/usb.o
LD drivers/usb/common/built-in.o
CC drivers/soc/qcom/msm_bus/msm_bus_rules.o
CC drivers/video/fbdev/core/fbcmap.o
CC drivers/video/fbdev/msm/dsi_status_6g.o
CC drivers/usb/core/hub.o
CC drivers/video/fbdev/core/fbsysfs.o
CC drivers/usb/dwc3/core.o
CC drivers/soc/qcom/msm_bus/msm_bus_bimc_adhoc.o
CC drivers/video/fbdev/msm/mdss_mdp_pp.o
CC drivers/usb/gadget/usbstring.o
CC drivers/usb/core/hcd.o
CC drivers/video/fbdev/core/modedb.o
CC drivers/video/fbdev/core/fbcvt.o
CC drivers/usb/gadget/config.o
CC drivers/soc/qcom/msm_bus/msm_bus_noc_adhoc.o
CC drivers/video/fbdev/msm/mdss_mdp_pp_debug.o
CC drivers/usb/dwc3/debug.o
CC drivers/soc/qcom/msm_bus/msm_bus_of_adhoc.o
CC drivers/usb/dwc3/trace.o
CC drivers/video/fbdev/msm/mdss_mdp_pp_cache_config.o
CC drivers/usb/dwc3/host.o
CC drivers/usb/core/urb.o
CC drivers/video/fbdev/core/cfbfillrect.o
CC drivers/usb/host/ehci-hcd.o
CC drivers/usb/gadget/epautoconf.o
CC drivers/usb/host/ehci-platform.o
CC drivers/soc/qcom/msm_bus/msm_bus_dbg.o
CC drivers/video/fbdev/msm/mdss_sync.o
CC drivers/usb/dwc3/gadget.o
CC drivers/usb/dwc3/ep0.o
CC drivers/video/fbdev/msm/mdss_mdp_intf_video.o
CC drivers/usb/core/message.o
CC drivers/video/fbdev/core/cfbcopyarea.o
CC drivers/usb/dwc3/debugfs.o
CC drivers/usb/gadget/composite.o
CC drivers/usb/gadget/functions.o
CC drivers/usb/host/ehci-msm.o
CC drivers/video/fbdev/msm/mdss_mdp_intf_cmd.o
LD drivers/soc/qcom/msm_bus/built-in.o
CC drivers/usb/dwc3/dwc3-msm.o
LD drivers/soc/qcom/qdsp6v2/built-in.o
CC drivers/soc/qcom/wcnss/wcnss_wlan.o
CC drivers/video/fbdev/core/cfbimgblt.o
CC drivers/usb/core/driver.o
CC drivers/usb/host/xhci.o
CC drivers/usb/host/xhci-mem.o
CC drivers/usb/gadget/configfs.o
CC drivers/video/fbdev/msm/mdss_mdp_intf_writeback.o
CC drivers/video/fbdev/msm/mdss_rotator.o
LD drivers/video/fbdev/core/fb.o
LD drivers/video/fbdev/core/built-in.o
CC drivers/soc/qcom/rpm-smd.o
CC drivers/usb/dwc3/dbm.o
CC drivers/usb/core/config.o
CC drivers/soc/qcom/wcnss/wcnss_vreg.o
CC drivers/usb/core/file.o
CC drivers/video/fbdev/msm/mdss_mdp_overlay.o
CC drivers/usb/core/buffer.o
CC drivers/usb/gadget/u_f.o
LD drivers/usb/dwc3/dwc3.o
CC drivers/usb/host/xhci-ring.o
LD drivers/usb/dwc3/built-in.o
CC drivers/usb/gadget/function/u_serial.o
CC drivers/video/fbdev/msm/mdss_mdp_layer.o
CC drivers/usb/core/sysfs.o
CC drivers/usb/gadget/function/f_serial.o
LD drivers/soc/qcom/wcnss/wcnsscore.o
LD drivers/soc/qcom/wcnss/built-in.o
CC drivers/soc/qcom/rpm-smd-debug.o
CC drivers/usb/host/xhci-hub.o
CC drivers/usb/core/endpoint.o
CC drivers/usb/host/xhci-dbg.o
CC drivers/usb/core/devio.o
LD drivers/usb/gadget/legacy/built-in.o
CC drivers/usb/core/notify.o
CC drivers/usb/gadget/function/u_ether.o
CC drivers/video/fbdev/msm/mdss_mdp_splash_logo.o
CC drivers/video/fbdev/msm/mdss_mdp_cdm.o
CC drivers/usb/gadget/ci13xxx_msm.o
CC drivers/soc/qcom/msm_smp2p.o
CC drivers/usb/gadget/udc/core.o
CC drivers/usb/core/generic.o
CC drivers/usb/core/quirks.o
CC drivers/video/fbdev/msm/mdss_smmu.o
CC drivers/usb/host/xhci-trace.o
CC drivers/usb/core/devices.o
CC drivers/usb/gadget/udc/trace.o
CC drivers/usb/gadget/function/f_ncm.o
CC drivers/soc/qcom/smp2p_loopback.o
CC drivers/video/fbdev/msm/mdss_mdp_wfd.o
CC drivers/video/fbdev/msm/mdss_io_util.o
CC drivers/usb/core/port.o
CC drivers/usb/gadget/function/f_rndis.o
LD drivers/usb/gadget/udc/udc-core.o
LD drivers/usb/gadget/udc/built-in.o
CC drivers/usb/gadget/function/rndis.o
CC drivers/usb/core/of.o
LD drivers/usb/gadget/libcomposite.o
CC drivers/usb/gadget/function/f_mass_storage.o
CC drivers/usb/host/xhci-plat.o
CC drivers/soc/qcom/smp2p_debug.o
CC drivers/soc/qcom/smp2p_sleepstate.o
CC drivers/video/fbdev/msm/mdss_mdp_pp_v1_7.o
LD drivers/usb/core/usbcore.o
CC drivers/video/fbdev/msm/mdss_mdp_pp_v3.o
LD drivers/usb/host/xhci-hcd.o
LD drivers/usb/host/xhci-plat-hcd.o
LD drivers/usb/core/built-in.o
LD drivers/usb/host/built-in.o
CC drivers/soc/qcom/ipc_router_smd_xprt.o
CC drivers/soc/qcom/qmi_interface.o
CC drivers/usb/gadget/function/storage_common.o
CC drivers/soc/qcom/icnss.o
CC drivers/video/fbdev/msm/mdss_mdp_pp_common.o
CC drivers/soc/qcom/wlan_firmware_service_v01.o
CC drivers/soc/qcom/peripheral-loader.o
CC drivers/soc/qcom/subsys-pil-tz.o
CC drivers/soc/qcom/pil-q6v5.o
CC drivers/soc/qcom/pil-msa.o
CC drivers/video/fbdev/msm/mdss_mdp_debug.o
CC drivers/soc/qcom/pil-q6v5-mss.o
CC drivers/usb/gadget/function/f_fs.o
CC drivers/soc/qcom/msm_performance.o
CC drivers/usb/gadget/function/f_midi.o
CC drivers/usb/gadget/function/f_hid.o
CC drivers/video/fbdev/msm/mdss_debug.o
CC drivers/usb/gadget/function/f_mtp.o
CC drivers/video/fbdev/msm/mdss_debug_xlog.o
CC drivers/soc/qcom/subsystem_notif.o
CC drivers/usb/gadget/function/f_ptp.o
CC drivers/usb/gadget/function/f_audio_source.o
CC drivers/soc/qcom/subsystem_restart.o
CC drivers/usb/gadget/function/f_accessory.o
CC drivers/usb/gadget/function/f_diag.o
CC drivers/video/fbdev/msm/mdss_dsi.o
CC drivers/usb/gadget/function/f_cdev.o
CC drivers/soc/qcom/ramdump.o
CC drivers/usb/misc/ehset.o
CC drivers/usb/mon/mon_main.o
CC drivers/usb/phy/phy.o
CC drivers/usb/misc/lvstest.o
CC drivers/video/fbdev/msm/mdss_dsi_host.o
CC drivers/usb/phy/of.o
CC drivers/usb/mon/mon_stat.o
CC drivers/usb/phy/class-dual-role.o
CC drivers/usb/gadget/function/f_ccid.o
CC drivers/soc/qcom/microdump_collector.o
LD drivers/usb/misc/built-in.o
CC drivers/usb/mon/mon_text.o
CC drivers/video/fbdev/msm/mdss_dsi_cmd.o
CC drivers/video/fbdev/msm/mdss_dsi_status.o
CC drivers/soc/qcom/sysmon.o
CC drivers/usb/phy/phy-generic.o
CC drivers/usb/gadget/function/f_qdss.o
CC drivers/usb/phy/phy-msm-ssusb-qmp.o
CC drivers/usb/mon/mon_bin.o
CC drivers/usb/phy/phy-msm-qusb.o
CC drivers/video/fbdev/msm/mdss_dsi_panel.o
CC drivers/usb/phy/phy-msm-qusb-v2.o
CC drivers/usb/gadget/function/u_qdss.o
LD drivers/usb/mon/usbmon.o
LD drivers/usb/mon/built-in.o
CC drivers/usb/gadget/function/f_qc_rndis.o
CC drivers/usb/phy/phy-msm-usb.o
CC drivers/soc/qcom/sysmon-qmi.o
CC drivers/usb/serial/usb-serial.o
CC drivers/video/fbdev/msm/msm_mdss_io_8974.o
CC drivers/video/fbdev/msm/mdss_dsi_phy.o
CC drivers/usb/gadget/function/f_rmnet.o
CC drivers/usb/serial/generic.o
LD drivers/usb/phy/built-in.o
CC drivers/video/fbdev/msm/mdss_dsi_phy_12nm.o
CC drivers/video/fbdev/msm/mdss_dsi_clk.o
CC drivers/soc/qcom/event_timer.o
CC drivers/usb/storage/scsiglue.o
CC drivers/usb/gadget/function/u_ctrl_qti.o
CC drivers/usb/storage/protocol.o
CC drivers/usb/storage/transport.o
CC drivers/usb/storage/usb.o
CC drivers/video/fbdev/msm/mdss_panel.o
CC drivers/usb/serial/bus.o
CC drivers/usb/gadget/function/u_bam_dmux.o
CC drivers/soc/qcom/lpm-stats.o
CC drivers/video/fbdev/msm/mdss_hdmi_util.o
LD drivers/usb/serial/usbserial.o
LD drivers/usb/serial/built-in.o
CC drivers/soc/qcom/rpm_stats.o
CC drivers/usb/storage/initializers.o
CC drivers/usb/storage/sierra_ms.o
CC drivers/soc/qcom/rpm_master_stat.o
CC drivers/usb/gadget/function/u_data_ipa.o
CC drivers/video/fbdev/msm/mdss_hdmi_edid.o
CC drivers/soc/qcom/bam_dmux.o
CC drivers/video/fbdev/msm/mdss_cec_core.o
CC drivers/soc/qcom/big_cluster_min_freq_adjust.o
CC drivers/usb/storage/option_ms.o
CC drivers/usb/storage/usual-tables.o
LD drivers/usb/gadget/function/usb_f_serial.o
LD drivers/usb/gadget/function/usb_f_ncm.o
LD drivers/usb/gadget/function/usb_f_rndis.o
LD drivers/usb/gadget/function/usb_f_mass_storage.o
LD drivers/usb/gadget/function/usb_f_fs.o
CC drivers/video/fbdev/msm/mdss_dba_utils.o
LD drivers/usb/gadget/function/usb_f_midi.o
CC drivers/video/fbdev/msm/mdss_dropbox.o
CC drivers/video/fbdev/msm/mdss_wb.o
LD drivers/usb/gadget/function/usb_f_hid.o
LD drivers/usb/gadget/function/usb_f_mtp.o
LD drivers/usb/gadget/function/usb_f_ptp.o
LD drivers/usb/gadget/function/usb_f_audio_source.o
CC drivers/video/fbdev/msm/mdss_fb.o
LD drivers/usb/gadget/function/usb_f_accessory.o
LD drivers/usb/gadget/function/usb_f_diag.o
LD drivers/usb/gadget/function/usb_f_cdev.o
LD drivers/usb/gadget/function/usb_f_ccid.o
LD drivers/usb/gadget/function/usb_f_qdss.o
LD drivers/usb/gadget/function/usb_f_qcrndis.o
LD drivers/usb/gadget/function/usb_f_rmnet_bam.o
LD drivers/usb/gadget/function/built-in.o
CC drivers/video/fbdev/msm/mdss_util.o
LD drivers/usb/gadget/built-in.o
CC drivers/usb/storage/alauda.o
CC drivers/usb/storage/cypress_atacb.o
CC drivers/video/fbdev/msm/mdss_compat_utils.o
LD drivers/video/fbdev/msm/mdss-mdp.o
CC drivers/usb/storage/datafab.o
CC drivers/usb/storage/freecom.o
CC drivers/usb/storage/isd200.o
LD drivers/soc/qcom/built-in.o
CC drivers/usb/storage/jumpshot.o
CC drivers/usb/storage/karma.o
LD drivers/soc/built-in.o
LD drivers/video/fbdev/msm/mdss-dsi.o
CC drivers/usb/storage/onetouch.o
CC drivers/usb/storage/sddr09.o
CC drivers/usb/storage/sddr55.o
CC drivers/usb/storage/shuttle_usbat.o
LD drivers/usb/storage/usb-storage.o
LD drivers/usb/storage/ums-alauda.o
LD drivers/usb/storage/ums-cypress.o
LD drivers/usb/storage/ums-freecom.o
LD drivers/usb/storage/ums-datafab.o
LD drivers/usb/storage/ums-jumpshot.o
LD drivers/usb/storage/ums-isd200.o
LD drivers/usb/storage/ums-karma.o
LD drivers/usb/storage/ums-onetouch.o
LD drivers/usb/storage/ums-sddr09.o
LD drivers/usb/storage/ums-sddr55.o
LD drivers/usb/storage/ums-usbat.o
LD drivers/usb/storage/built-in.o
LD drivers/video/fbdev/msm/built-in.o
LD drivers/usb/built-in.o
LD drivers/video/fbdev/built-in.o
LD drivers/video/built-in.o
/mnt/builddisk/geofferey/Android/lineage/kernel/motorola/msm8953/Makefile:1087: recipe for target 'drivers' failed
make[1]: *** [drivers] Error 2
make[1]: Leaving directory '/mnt/builddisk/geofferey/Android/lineage/out/target/product/ocean/obj/KERNEL_OBJ'
Makefile:152: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/mnt/builddisk/geofferey/Android/lineage/kernel/motorola/msm8953'
ninja: build stopped: subcommand failed.
20:23:55 ninja failed with: exit status 1
#### failed to build some targets (08:48 (mm:ss)) ####
geofferey@ubuntu-vm:~/builddisk/geofferey/Android/lineage$
@msm8610
Copy link

msm8610 commented Jan 3, 2021

Inside CORE/SME/inc/csrApi.h you have definition of tagCsrRoamProfile, it says
"#ifdef WLAN_FEATURE_11W
// Management Frame Protection
tANI_BOOLEAN MFPEnabled;
tANI_U8 MFPRequired;
tANI_U8 MFPCapable;
#endif"

Change your config via menuconfig, otherwise remove "#ifdef WLAN_FEATURE_11W" and "endif". I think "roam_profile" its typo, change it to RoamProfile

@msm8610
Copy link

msm8610 commented Jan 3, 2021

@Geofferey
Copy link
Author

@msm8610 Haha, I posted this 15 mo. ago to share with devs in a telegram group... Idk how you found this lol.

Anyways at the time I was trying to fix packet filter in Motorola Ocean (MSM8953) Prima WLAN driver for custom GSI ROMs to allow multicast DHCP. This is likely from when I was initially trying to build. Later on I found CAF sources and isolated the necessary changes to make DHCP work fully on Hybrid GSI for the Moto G7 Power and now the rest is history...

Geofferey/kernel_motorola_msm8953@63a8422

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment