Mange / rtl8192eu-linux-driver

Drivers for the rtl8192eu chipset for wireless adapters (D-Link DWA-131 rev E1 included!)
1.32k stars 435 forks source link

error: 'struct sta_info' has no member named 'cmn' #206

Closed xmapst closed 3 years ago

xmapst commented 3 years ago
make ARCH=arm64 CROSS_COMPILE=aarch64-openwrt-linux-musl- -C /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/linux-5.4.80 M=/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12  modules
make[5]: Entering directory '/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/linux-5.4.80'
  CC [M]  /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.o
In file included from ./include/linux/bitops.h:5,
                 from /home/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/include/mac80211-backport/linux/bitops.h:3,
                 from ./include/linux/kernel.h:12,
                 from /home/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/include/mac80211-backport/linux/kernel.h:3,
                 from ./include/linux/list.h:9,
                 from /home/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/include/mac80211-backport/linux/list.h:3,
                 from ./include/linux/module.h:9,
                 from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/basic_types.h:76,
                 from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/drv_types.h:26,
                 from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:17:
./include/linux/bits.h:8:19: error: expected identifier before '(' token
 #define BIT(nr)   (UL(1) << (nr))
                   ^
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/ieee80211.h:70:23: note: in expansion of macro 'BIT'
 #define WLAN_STA_AUTH BIT(0)
                       ^~~
/home/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/include/mac80211/sta_info.h:78:2: note: in expansion of macro 'WLAN_STA_AUTH'
  WLAN_STA_AUTH,
  ^~~~~~~~~~~~~
In file included from /home/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/include/mac80211-backport/asm-generic/bug.h:3,
                 from ./arch/arm64/include/asm/bug.h:26,
                 from ./include/linux/bug.h:5,
                 from /home/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/include/mac80211-backport/linux/bug.h:3,
                 from /home/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/include/mac80211-backport/linux/kernel.h:4,
                 from ./include/linux/list.h:9,
                 from /home/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/include/mac80211-backport/linux/list.h:3,
                 from ./include/linux/module.h:9,
                 from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/basic_types.h:76,
                 from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/drv_types.h:26,
                 from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:17:
/home/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/include/mac80211/sta_info.h: In function 'sta_info_pre_move_state':
/home/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/include/mac80211/sta_info.h:700:34: error: 'WLAN_STA_INSERTED' undeclared (first use in this function); did you mean 'WLAN_SP_RESERVED'?
  WARN_ON_ONCE(test_sta_flag(sta, WLAN_STA_INSERTED));
                                  ^~~~~~~~~~~~~~~~~
./include/asm-generic/bug.h:96:25: note: in definition of macro 'WARN_ON_ONCE'
  int __ret_warn_on = !!(condition);   \
                         ^~~~~~~~~
/home/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/include/mac80211/sta_info.h:700:34: note: each undeclared identifier is reported only once for each function it appears in
  WARN_ON_ONCE(test_sta_flag(sta, WLAN_STA_INSERTED));
                                  ^~~~~~~~~~~~~~~~~
./include/asm-generic/bug.h:96:25: note: in definition of macro 'WARN_ON_ONCE'
  int __ret_warn_on = !!(condition);   \
                         ^~~~~~~~~
In file included from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/drv_types.h:112,
                 from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:17:
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/rtw_ap.h: At top level:
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/rtw_ap.h:45:5: warning: "CONFIG_RTW_MACADDR_ACL" is not defined, evaluates to 0 [-Wundef]
 #if CONFIG_RTW_MACADDR_ACL
     ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:17:
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/drv_types.h:1440:18: error: field 'stapriv' has incomplete type
  struct sta_priv stapriv;
                  ^~~~~~~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c: In function 'rtw_setstakey_cmd':
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:1747:40: error: 'struct sta_info' has no member named 'cmn'
  _rtw_memcpy(psetstakey_para->addr, sta->cmn.mac_addr, ETH_ALEN);
                                        ^~
In file included from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/drv_types.h:79,
                 from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:17:
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/rtw_security.h:273:27: error: 'struct sta_info' has no member named 'dot118021XPrivacy'
     encry_algo = (u8) psta->dot118021XPrivacy;\
                           ^~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:1752:3: note: in expansion of macro 'GET_ENCRY_ALGO'
   GET_ENCRY_ALGO(psecuritypriv, sta, psetstakey_para->algorithm, _FALSE);
   ^~~~~~~~~~~~~~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:1758:42: error: 'struct sta_info' has no member named 'dot118021x_UncstKey'
   _rtw_memcpy(&psetstakey_para->key, &sta->dot118021x_UncstKey, 16);
                                          ^~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c: In function 'rtw_clearstakey_cmd':
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:1814:50: error: 'struct sta_info' has no member named 'cmn'
   while ((cam_id = rtw_camid_search(padapter, sta->cmn.mac_addr, -1, -1)) >= 0) {
                                                  ^~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:1845:41: error: 'struct sta_info' has no member named 'cmn'
   _rtw_memcpy(psetstakey_para->addr, sta->cmn.mac_addr, ETH_ALEN);
                                         ^~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c: In function 'rtw_chk_hi_queue_hdl':
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:4144:13: error: implicit declaration of function 'rtw_get_bcmc_stainfo'; did you mean 'rtw_get_raw_rssi_info'? [-Werror=implicit-function-declaration]
  psta_bmc = rtw_get_bcmc_stainfo(padapter);
             ^~~~~~~~~~~~~~~~~~~~
             rtw_get_raw_rssi_info
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:4144:11: warning: assignment to 'struct sta_info *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  psta_bmc = rtw_get_bcmc_stainfo(padapter);
           ^
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:4155:14: error: 'struct sta_info' has no member named 'sleepq_len'
  if (psta_bmc->sleepq_len == 0) {
              ^~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:4159:45: error: dereferencing pointer to incomplete type 'struct sta_priv'
    if (rtw_tim_map_is_set(padapter, pstapriv->tim_bitmap, 0))
                                             ^~
In file included from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/drv_types.h:27,
                 from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:17:
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c: In function 'session_tracker_cmd':
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5171:53: error: invalid application of 'sizeof' to incomplete type 'struct st_cmd_parm'
  st_parm = (struct st_cmd_parm *)rtw_zmalloc(sizeof(struct st_cmd_parm));
                                                     ^~~~~~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/osdep_service.h:186:44: note: in definition of macro 'rtw_zmalloc'
 #define rtw_zmalloc(sz)   dbg_rtw_zmalloc((sz), MSTAT_TYPE_PHY, __FUNCTION__, __LINE__)
                                            ^~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5179:9: error: dereferencing pointer to incomplete type 'struct st_cmd_parm'
  st_parm->cmd = cmd;
         ^~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5181:13: error: 'ST_CMD_CHK' undeclared (first use in this function); did you mean 'RT_CID_CCX'?
  if (cmd != ST_CMD_CHK) {
             ^~~~~~~~~~
             RT_CID_CCX
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5190:26: error: invalid application of 'sizeof' to incomplete type 'struct st_cmd_parm'
  cmd_parm->size = sizeof(struct st_cmd_parm);
                          ^~~~~~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c: In function 'session_tracker_chk_cmd':
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5203:38: error: 'ST_CMD_CHK' undeclared (first use in this function); did you mean 'RT_CID_CCX'?
  return session_tracker_cmd(adapter, ST_CMD_CHK, sta, NULL, NULL, NULL, NULL);
                                      ^~~~~~~~~~
                                      RT_CID_CCX
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c: In function 'session_tracker_add_cmd':
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5208:38: error: 'ST_CMD_ADD' undeclared (first use in this function); did you mean 'RT_CID_CCX'?
  return session_tracker_cmd(adapter, ST_CMD_ADD, sta, local_naddr, local_port, remote_naddr, remote_port);
                                      ^~~~~~~~~~
                                      RT_CID_CCX
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c: In function 'session_tracker_del_cmd':
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5213:38: error: 'ST_CMD_DEL' undeclared (first use in this function); did you mean 'TIME_DEL'?
  return session_tracker_cmd(adapter, ST_CMD_DEL, sta, local_naddr, local_port, remote_naddr, remote_port);
                                      ^~~~~~~~~~
                                      TIME_DEL
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c: In function 'session_tracker_chk_for_sta':
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5218:32: error: 'struct sta_info' has no member named 'st_ctl'
  struct st_ctl_t *st_ctl = &sta->st_ctl;
                                ^~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5226:6: error: 'DBG_SESSION_TRACKER' undeclared (first use in this function); did you mean 'DBG_FW_TRACE'?
  if (DBG_SESSION_TRACKER)
      ^~~~~~~~~~~~~~~~~~~
      DBG_FW_TRACE
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5229:13: error: 'struct sta_info' has no member named 'state'; did you mean 'sdata'?
  if (!(sta->state & _FW_LINKED))
             ^~~~~
             sdata
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5232:18: error: 'SESSION_TRACKER_REG_ID_NUM' undeclared (first use in this function); did you mean 'SESSION_TRACKER_WK_CID'?
  for (i = 0; i < SESSION_TRACKER_REG_ID_NUM; i++) {
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
                  SESSION_TRACKER_WK_CID
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5233:13: error: dereferencing pointer to incomplete type 'struct st_ctl_t'
   if (st_ctl->reg[i].s_proto != 0)
             ^~
In file included from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/osdep_service.h:50,
                 from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/drv_types.h:27,
                 from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:17:
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/osdep_service_linux.h:255:47: error: dereferencing pointer to incomplete type 'struct session_tracker'
  ((type *)((char *)(ptr)-(SIZE_T)(&((type *)0)->member)))
                                               ^~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5247:8: note: in expansion of macro 'LIST_CONTAINOR'
   st = LIST_CONTAINOR(plist, struct session_tracker, list);
        ^~~~~~~~~~~~~~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5251:21: error: 'ST_STATUS_ESTABLISH' undeclared (first use in this function); did you mean 'RT_STATUS_FAILURE'?
   if (st->status != ST_STATUS_ESTABLISH
                     ^~~~~~~~~~~~~~~~~~~
                     RT_STATUS_FAILURE
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5252:47: error: 'ST_EXPIRE_MS' undeclared (first use in this function); did you mean 'RTA_EXPIRES'?
    && rtw_get_passing_time_ms(st->set_time) > ST_EXPIRE_MS
                                               ^~~~~~~~~~~~
                                               RTA_EXPIRES
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5259:21: error: 'ST_STATUS_CHECK' undeclared (first use in this function); did you mean 'RT_STATUS_SUCCESS'?
   if (st->status == ST_STATUS_CHECK)
                     ^~~~~~~~~~~~~~~
                     RT_STATUS_SUCCESS
In file included from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/drv_types.h:27,
                 from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:17:
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5285:30: error: invalid application of 'sizeof' to incomplete type 'struct session_tracker'
   rtw_mfree((u8 *)st, sizeof(struct session_tracker));
                              ^~~~~~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/osdep_service.h:187:53: note: in definition of macro 'rtw_mfree'
 #define rtw_mfree(pbuf, sz)  dbg_rtw_mfree((pbuf), (sz), MSTAT_TYPE_PHY, __FUNCTION__, __LINE__)
                                                     ^~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5289:6: error: implicit declaration of function 'STA_OP_WFD_MODE'; did you mean 'STA_MODE'? [-Werror=implicit-function-declaration]
  if (STA_OP_WFD_MODE(sta) != op_wfd_mode) {
      ^~~~~~~~~~~~~~~
      STA_MODE
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5290:3: error: implicit declaration of function 'STA_SET_OP_WFD_MODE' [-Werror=implicit-function-declaration]
   STA_SET_OP_WFD_MODE(sta, op_wfd_mode);
   ^~~~~~~~~~~~~~~~~~~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c: In function 'session_tracker_chk_for_adapter':
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5309:18: error: 'NUM_STA' undeclared (first use in this function); did you mean 'RTM_RTA'?
  for (i = 0; i < NUM_STA; i++) {
                  ^~~~~~~
                  RTM_RTA
In file included from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/osdep_service.h:50,
                 from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/drv_types.h:27,
                 from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:17:
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5314:49: error: 'struct sta_info' has no member named 'hash_list'; did you mean 'free_list'?
    sta = LIST_CONTAINOR(plist, struct sta_info, hash_list);
                                                 ^~~~~~~~~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/osdep_service_linux.h:255:49: note: in definition of macro 'LIST_CONTAINOR'
  ((type *)((char *)(ptr)-(SIZE_T)(&((type *)0)->member)))
                                                 ^~~~~~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c: At top level:
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5330:56: warning: 'struct st_cmd_parm' declared inside parameter list will not be visible outside of this definition or declaration
 void session_tracker_cmd_hdl(_adapter *adapter, struct st_cmd_parm *parm)
                                                        ^~~~~~~~~~~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c: In function 'session_tracker_cmd_hdl':
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5332:15: error: dereferencing pointer to incomplete type 'struct st_cmd_parm'
  u8 cmd = parm->cmd;
               ^~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5335:13: error: 'ST_CMD_CHK' undeclared (first use in this function); did you mean 'RT_CID_CCX'?
  if (cmd == ST_CMD_CHK) {
             ^~~~~~~~~~
             RT_CID_CCX
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5343:20: error: 'ST_CMD_ADD' undeclared (first use in this function); did you mean 'RT_CID_CCX'?
  } else if (cmd == ST_CMD_ADD || cmd == ST_CMD_DEL) {
                    ^~~~~~~~~~
                    RT_CID_CCX
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5343:41: error: 'ST_CMD_DEL' undeclared (first use in this function); did you mean 'TIME_DEL'?
  } else if (cmd == ST_CMD_ADD || cmd == ST_CMD_DEL) {
                                         ^~~~~~~~~~
                                         TIME_DEL
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5355:7: error: 'DBG_SESSION_TRACKER' undeclared (first use in this function); did you mean 'DBG_FW_TRACE'?
   if (DBG_SESSION_TRACKER)
       ^~~~~~~~~~~~~~~~~~~
       DBG_FW_TRACE
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5362:14: error: 'struct sta_info' has no member named 'state'; did you mean 'sdata'?
   if (!(sta->state & _FW_LINKED))
              ^~~~~
              sdata
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5365:16: error: 'struct sta_info' has no member named 'st_ctl'
   st_ctl = &sta->st_ctl;
                ^~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5367:29: error: dereferencing pointer to incomplete type 'struct st_ctl_t'
   _enter_critical_bh(&st_ctl->tracker_q.lock, &irqL);
                             ^~
In file included from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/osdep_service.h:50,
                 from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/drv_types.h:27,
                 from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:17:
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/osdep_service_linux.h:255:47: error: dereferencing pointer to incomplete type 'struct session_tracker'
  ((type *)((char *)(ptr)-(SIZE_T)(&((type *)0)->member)))
                                               ^~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5372:9: note: in expansion of macro 'LIST_CONTAINOR'
    st = LIST_CONTAINOR(plist, struct session_tracker, list);
         ^~~~~~~~~~~~~~
In file included from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/drv_types.h:27,
                 from /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:17:
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5402:31: error: invalid application of 'sizeof' to incomplete type 'struct session_tracker'
    rtw_mfree((u8 *)st, sizeof(struct session_tracker));
                               ^~~~~~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/osdep_service.h:187:53: note: in definition of macro 'rtw_mfree'
 #define rtw_mfree(pbuf, sz)  dbg_rtw_mfree((pbuf), (sz), MSTAT_TYPE_PHY, __FUNCTION__, __LINE__)
                                                     ^~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5407:54: error: invalid application of 'sizeof' to incomplete type 'struct session_tracker'
    st = (struct session_tracker *)rtw_zmalloc(sizeof(struct session_tracker));
                                                      ^~~~~~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/include/osdep_service.h:186:44: note: in definition of macro 'rtw_zmalloc'
 #define rtw_zmalloc(sz)   dbg_rtw_zmalloc((sz), MSTAT_TYPE_PHY, __FUNCTION__, __LINE__)
                                            ^~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5416:17: error: 'ST_STATUS_CHECK' undeclared (first use in this function); did you mean 'RT_STATUS_SUCCESS'?
    st->status = ST_STATUS_CHECK;
                 ^~~~~~~~~~~~~~~
                 RT_STATUS_SUCCESS
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c: In function 'rtw_setstaKey_cmdrsp_callback':
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5797:26: error: implicit declaration of function 'rtw_get_stainfo'; did you mean 'sta_set_sinfo'? [-Werror=implicit-function-declaration]
  struct sta_info *psta = rtw_get_stainfo(pstapriv, psetstakey_rsp->addr);
                          ^~~~~~~~~~~~~~~
                          sta_set_sinfo
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5797:26: warning: initialization of 'struct sta_info *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c: In function 'rtw_setassocsta_cmdrsp_callback':
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5819:26: warning: initialization of 'struct sta_info *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  struct sta_info *psta = rtw_get_stainfo(pstapriv, passocsta_parm->addr);
                          ^~~~~~~~~~~~~~~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5826:6: error: 'struct sta_info' has no member named 'cmn'
  psta->cmn.aid = psta->cmn.mac_id = passocsta_rsp->cam_id;
      ^~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5826:22: error: 'struct sta_info' has no member named 'cmn'
  psta->cmn.aid = psta->cmn.mac_id = passocsta_rsp->cam_id;
                      ^~
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c: In function 'session_tracker_chk_cmd':
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5204:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c: In function 'session_tracker_add_cmd':
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5209:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c: In function 'session_tracker_del_cmd':
/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12/core/rtw_cmd.c:5214:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
cc1: some warnings being treated as errors
CGarces commented 3 years ago

Please try make CONFIG_PLATFORM_ARM_AARCH64=y CONFIG_PLATFORM_I386_PC=n

xmapst commented 3 years ago

Please try make CONFIG_PLATFORM_ARM_AARCH64=y CONFIG_PLATFORM_I386_PC=n

Thank you. I'll try

xmapst commented 3 years ago
-> # grep CONFIG_PLATFORM_I386_PC package/rtl8192eu/rtl8192eu-linux-driver/Makefile
CONFIG_PLATFORM_I386_PC = n
ifeq ($(CONFIG_PLATFORM_I386_PC), y)
ifeq ($(CONFIG_PLATFORM_I386_PC), y)
-> # grep ONFIG_PLATFORM_ARM_AARCH64 package/rtl8192eu/rtl8192eu-linux-driver/Makefile
CONFIG_PLATFORM_ARM_AARCH64 = y
ifeq ($(CONFIG_PLATFORM_ARM_AARCH64), y)

Still fail @CGarces

make -C /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12 ARCH="arm64" CROSS_COMPILE="aarch64-openwrt-linux-musl-" KSRC="/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/linux-5.4.80" KVER="5.4.80" M="/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mvebu_cortexa53/8192eu-2019-3-12" MODULE_NAME="8192eu" USER_EXTRA_CFLAGS="-DBACKPORT -DCONFIG_MINIMAL_MEMORY_USAGE  -DCONFIG_RTW_IOCTL_SET_COUNTRY -DCONFIG_CONCURRENT_MODE -DDBG_MEM_ALLOC -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT -DCONFIG_PLATFORM_ARM_RPI -DCONFIG_MP_INCLUDED -DCONFIG_WEXT_PRIV -DCONFIG_WIRELESS_EXT" NOSTDINC_FLAGS="-I/home/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/include/mac80211 -I/home/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/include/mac80211/uapi -I/home/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/include/mac80211-backport -include backport/backport.h "
CGarces commented 3 years ago

@xmapst Can you give me a hint about how reproduce the error. I have never used the openwrt build enviroment.

xmapst commented 3 years ago

Can you give me a hint about how reproduce the error. I have never used the openwrt build enviroment. @CGarces There is a reproduction environment GL-MV1000W-Openwrt

CGarces commented 3 years ago

I'm not familiar with OpenWRT. I see 3 .sh files in the repository. How can I reproduce the error?

$ chmod +x offical-openwrt.sh 
$ ./offical-openwrt.sh 

Or there is any faster way without fetch all the dependencies?

xmapst commented 3 years ago

I'm not familiar with OpenWRT. I see 3 .sh files in the repository. How can I reproduce the error?

$ chmod +x offical-openwrt.sh 
$ ./offical-openwrt.sh 

Or there is any faster way without fetch all the dependencies?

  1. sudo -E apt-get -qq updat && sudo -E apt-get -qq install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib g++-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler gperf antlr3 wget swig rsync tree on ubuntu18.04
  2. git clone https://github.com/xmapst/GLMV1000W-OpenWrt && cd GLMV1000W-OpenWrt
  3. git clone https://github.com/openwrt/openwrt && cd openwrt
  4. ./scripts/feeds update -a && ./scripts/feeds install -a
  5. chmod +x ../*.sh && cp ../gl-mv1000w.config .config && make defconfig && ../offical-openwrt.sh && make -j 1 V=s

The offical-openwrt.sh script will clone https://github.com/Mange/rtl8192eu-linux-driver to package/rtl8192eu/rtl8192eu-linux-driver, and modify CONFIG_PLATFORM_ARM_AARCH64 = y and CONFIG_PLATFORM_I386_PC = n in the Makefile

CGarces commented 3 years ago

Thanks @xmapst Please continue he discussion at https://github.com/xmapst/GLMV1000W-OpenWrt/issues/1

CGarces commented 3 years ago

Not related to the current source code.