newracom / nrc7292_sw_pkg

NRC7292 Software Package for Host mode (Linux OS)
http://www.newracom.com/product
GNU General Public License v2.0
58 stars 27 forks source link

cannot build driver on Pi CM4 with linux kernel 6.1 #72

Closed teinterence closed 10 months ago

teinterence commented 1 year ago

board: CM4 with 8G ram and 32G Emma OS: Raspberry Pi OS 64bit module: AHMC7292SU

pi@raspberrypi:~/nrc7292_sw_pkg/package/host/src/nrc $ make

make[1]: Entering directory '/usr/src/linux-headers-6.1.21-v8+'
  CC [M]  /home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.o
In file included from /home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-hif.h:22,
                 from /home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:18:
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c: In function ‘nrc_assoc_h_basic’:
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:662:7: error: ‘struct ieee80211_bss_conf’ has no member named ‘aid’
  662 |   info->aid, info->bssid);
      |       ^~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-debug.h:80:59: note: in definition of macro ‘nrc_mac_dbg’
   80 | #define nrc_mac_dbg(fmt, ...) nrc_dbg(NRC_DBG_MAC, fmt, ##__VA_ARGS__)
      |                                                           ^~~~~~~~~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:664:16: error: ‘struct ieee80211_bss_conf’ has no member named ‘aid’
  664 |  nw->aid = info->aid;
      |                ^~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:669:51: error: ‘struct ieee80211_bss_conf’ has no member named ‘aid’
  669 |  nrc_wim_skb_add_tlv(skb, WIM_TLV_AID, sizeof(info->aid), &info->aid);
      |                                                   ^~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:669:64: error: ‘struct ieee80211_bss_conf’ has no member named ‘aid’
  669 |  nrc_wim_skb_add_tlv(skb, WIM_TLV_AID, sizeof(info->aid), &info->aid);
      |                                                                ^~
In file included from ./include/linux/rculist.h:11,
                 from ./include/linux/dcache.h:8,
                 from ./include/linux/fs.h:8,
                 from ./include/linux/highmem.h:5,
                 from ./include/linux/bvec.h:10,
                 from ./include/linux/skbuff.h:17,
                 from ./include/linux/if_ether.h:19,
                 from ./include/linux/etherdevice.h:20,
                 from /home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc.h:21,
                 from /home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.h:20,
                 from /home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:17:
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:674:28: error: ‘struct ieee80211_vif’ has no member named ‘chanctx_conf’
  674 |  conf = rcu_dereference(vif->chanctx_conf);
      |                            ^~
./include/linux/rcupdate.h:436:10: note: in definition of macro ‘__rcu_dereference_check’
  436 |  typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \
      |          ^
./include/linux/rcupdate.h:656:28: note: in expansion of macro ‘rcu_dereference_check’
  656 | #define rcu_dereference(p) rcu_dereference_check(p, 0)
      |                            ^~~~~~~~~~~~~~~~~~~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:674:9: note: in expansion of macro ‘rcu_dereference’
  674 |  conf = rcu_dereference(vif->chanctx_conf);
      |         ^~~~~~~~~~~~~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:674:28: error: ‘struct ieee80211_vif’ has no member named ‘chanctx_conf’
  674 |  conf = rcu_dereference(vif->chanctx_conf);
      |                            ^~
./include/linux/rcupdate.h:436:31: note: in definition of macro ‘__rcu_dereference_check’
  436 |  typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \
      |                               ^
./include/linux/rcupdate.h:656:28: note: in expansion of macro ‘rcu_dereference_check’
  656 | #define rcu_dereference(p) rcu_dereference_check(p, 0)
      |                            ^~~~~~~~~~~~~~~~~~~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:674:9: note: in expansion of macro ‘rcu_dereference’
  674 |  conf = rcu_dereference(vif->chanctx_conf);
      |         ^~~~~~~~~~~~~~~
In file included from <command-line>:
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:674:28: error: ‘struct ieee80211_vif’ has no member named ‘chanctx_conf’
  674 |  conf = rcu_dereference(vif->chanctx_conf);
      |                            ^~
././include/linux/compiler_types.h:337:9: note: in definition of macro ‘__compiletime_assert’
  337 |   if (!(condition))     \
      |         ^~~~~~~~~
././include/linux/compiler_types.h:357:2: note: in expansion of macro ‘_compiletime_assert’
  357 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
      |  ^~~~~~~~~~~~~~~~~~~
./include/asm-generic/rwonce.h:36:2: note: in expansion of macro ‘compiletime_assert’
   36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
      |  ^~~~~~~~~~~~~~~~~~
./include/asm-generic/rwonce.h:36:21: note: in expansion of macro ‘__native_wor’
   36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
      |                     ^~~~~~~~~~~~~
./include/asm-generic/rwonce.h:49:2: note: in expansion of macro ‘compiletime_assert_rwonce_type’
   49 |  compiletime_assert_rwonce_type(x);    \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/rcupdate.h:436:43: note: in expansion of macro ‘READ_ONCE’
  436 |  typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \
      |                                           ^~~~~~~~~
./include/linux/rcupdate.h:584:2: note: in expansion of macro ‘__rcu_dereference_check’
  584 |  __rcu_dereference_check((p), __UNIQUE_ID(rcu), \
      |  ^~~~~~~~~~~~~~~~~~~~~~~
./include/linux/rcupdate.h:656:28: note: in expansion of macro ‘rcu_dereference_check’
  656 | #define rcu_dereference(p) rcu_dereference_check(p, 0)
      |                            ^~~~~~~~~~~~~~~~~~~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:674:9: note: in expansion of macro ‘rcu_dereference’
  674 |  conf = rcu_dereference(vif->chanctx_conf);
      |         ^~~~~~~~~~~~~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:674:28: error: ‘struct ieee80211_vif’ has no member named ‘chanctx_conf’
  674 |  conf = rcu_dereference(vif->chanctx_conf);
      |                            ^~
././include/linux/compiler_types.h:337:9: note: in definition of macro ‘__compiletime_assert’
  337 |   if (!(condition))     \
      |         ^~~~~~~~~
././include/linux/compiler_types.h:357:2: note: in expansion of macro ‘_compiletime_assert’
  357 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
      |  ^~~~~~~~~~~~~~~~~~~
./include/asm-generic/rwonce.h:36:2: note: in expansion of macro ‘compiletime_assert’
   36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
      |  ^~~~~~~~~~~~~~~~~~
./include/asm-generic/rwonce.h:36:21: note: in expansion of macro ‘__native_wor’
   36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
      |                     ^~~~~~~~~~~~~
./include/asm-generic/rwonce.h:49:2: note: in expansion of macro ‘compiletime_assert_rwonce_type’
   49 |  compiletime_assert_rwonce_type(x);    \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/rcupdate.h:436:43: note: in expansion of macro ‘READ_ONCE’
  436 |  typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \
      |                                           ^~~~~~~~~
./include/linux/rcupdate.h:584:2: note: in expansion of macro ‘__rcu_dereference_check’
  584 |  __rcu_dereference_check((p), __UNIQUE_ID(rcu), \
      |  ^~~~~~~~~~~~~~~~~~~~~~~
./include/linux/rcupdate.h:656:28: note: in expansion of macro ‘rcu_dereference_check’
  656 | #define rcu_dereference(p) rcu_dereference_check(p, 0)
      |                            ^~~~~~~~~~~~~~~~~~~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:674:9: note: in expansion of macro ‘rcu_dereference’
  674 |  conf = rcu_dereference(vif->chanctx_conf);
      |         ^~~~~~~~~~~~~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:674:28: error: ‘struct ieee80211_vif’ has no member named ‘chanctx_conf’
  674 |  conf = rcu_dereference(vif->chanctx_conf);
      |                            ^~
././include/linux/compiler_types.h:337:9: note: in definition of macro ‘__compiletime_assert’
  337 |   if (!(condition))     \
      |         ^~~~~~~~~
././include/linux/compiler_types.h:357:2: note: in expansion of macro ‘_compiletime_assert’
  357 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
      |  ^~~~~~~~~~~~~~~~~~~
./include/asm-generic/rwonce.h:36:2: note: in expansion of macro ‘compiletime_assert’
   36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
      |  ^~~~~~~~~~~~~~~~~~
./include/asm-generic/rwonce.h:36:21: note: in expansion of macro ‘__native_wor’
   36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
      |                     ^~~~~~~~~~~~~
./include/asm-generic/rwonce.h:49:2: note: in expansion of macro ‘compiletime_assert_rwonce_type’
   49 |  compiletime_assert_rwonce_type(x);    \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/rcupdate.h:436:43: note: in expansion of macro ‘READ_ONCE’
  436 |  typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \
      |                                           ^~~~~~~~~
./include/linux/rcupdate.h:584:2: note: in expansion of macro ‘__rcu_dereference_check’
  584 |  __rcu_dereference_check((p), __UNIQUE_ID(rcu), \
      |  ^~~~~~~~~~~~~~~~~~~~~~~
./include/linux/rcupdate.h:656:28: note: in expansion of macro ‘rcu_dereference_check’
  656 | #define rcu_dereference(p) rcu_dereference_check(p, 0)
      |                            ^~~~~~~~~~~~~~~~~~~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:674:9: note: in expansion of macro ‘rcu_dereference’
  674 |  conf = rcu_dereference(vif->chanctx_conf);
      |         ^~~~~~~~~~~~~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:674:28: error: ‘struct ieee80211_vif’ has no member named ‘chanctx_conf’
  674 |  conf = rcu_dereference(vif->chanctx_conf);
      |                            ^~
././include/linux/compiler_types.h:337:9: note: in definition of macro ‘__compiletime_assert’
  337 |   if (!(condition))     \
      |         ^~~~~~~~~
././include/linux/compiler_types.h:357:2: note: in expansion of macro ‘_compiletime_assert’
  357 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
      |  ^~~~~~~~~~~~~~~~~~~
./include/asm-generic/rwonce.h:36:2: note: in expansion of macro ‘compiletime_assert’
   36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
      |  ^~~~~~~~~~~~~~~~~~
./include/asm-generic/rwonce.h:36:21: note: in expansion of macro ‘__native_wor’
   36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
      |                     ^~~~~~~~~~~~~
./include/asm-generic/rwonce.h:49:2: note: in expansion of macro ‘compiletime_assert_rwonce_type’
   49 |  compiletime_assert_rwonce_type(x);    \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/rcupdate.h:436:43: note: in expansion of macro ‘READ_ONCE’
  436 |  typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \
      |                                           ^~~~~~~~~
./include/linux/rcupdate.h:584:2: note: in expansion of macro ‘__rcu_dereference_check’
  584 |  __rcu_dereference_check((p), __UNIQUE_ID(rcu), \
      |  ^~~~~~~~~~~~~~~~~~~~~~~
./include/linux/rcupdate.h:656:28: note: in expansion of macro ‘rcu_dereference_check’
  656 | #define rcu_dereference(p) rcu_dereference_check(p, 0)
      |                            ^~~~~~~~~~~~~~~~~~~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:674:9: note: in expansion of macro ‘rcu_dereference’
  674 |  conf = rcu_dereference(vif->chanctx_conf);
      |         ^~~~~~~~~~~~~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:674:28: error: ‘struct ieee80211_vif’ has no member named ‘chanctx_conf’
  674 |  conf = rcu_dereference(vif->chanctx_conf);
      |                            ^~
././include/linux/compiler_types.h:337:9: note: in definition of macro ‘__compiletime_assert’
  337 |   if (!(condition))     \
      |         ^~~~~~~~~
././include/linux/compiler_types.h:357:2: note: in expansion of macro ‘_compiletime_assert’
  357 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
      |  ^~~~~~~~~~~~~~~~~~~
./include/asm-generic/rwonce.h:36:2: note: in expansion of macro ‘compiletime_assert’
   36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
      |  ^~~~~~~~~~~~~~~~~~
./include/asm-generic/rwonce.h:49:2: note: in expansion of macro ‘compiletime_assert_rwonce_type’
   49 |  compiletime_assert_rwonce_type(x);    \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/rcupdate.h:436:43: note: in expansion of macro ‘READ_ONCE’
  436 |  typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \
      |                                           ^~~~~~~~~
./include/linux/rcupdate.h:584:2: note: in expansion of macro ‘__rcu_dereference_check’
  584 |  __rcu_dereference_check((p), __UNIQUE_ID(rcu), \
      |  ^~~~~~~~~~~~~~~~~~~~~~~
./include/linux/rcupdate.h:656:28: note: in expansion of macro ‘rcu_dereference_check’
  656 | #define rcu_dereference(p) rcu_dereference_check(p, 0)
      |                            ^~~~~~~~~~~~~~~~~~~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:674:9: note: in expansion of macro ‘rcu_dereference’
  674 |  conf = rcu_dereference(vif->chanctx_conf);
      |         ^~~~~~~~~~~~~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:674:28: error: ‘struct ieee80211_vif’ has no member named ‘chanctx_conf’
  674 |  conf = rcu_dereference(vif->chanctx_conf);
      |                            ^~
././include/linux/compiler_types.h:313:13: note: in definition of macro ‘__unqual_scalar_typeof’
  313 |   _Generic((x),      \
      |             ^
./include/asm-generic/rwonce.h:50:2: note: in expansion of macro ‘__READ_ONCE’
   50 |  __READ_ONCE(x);       \
      |  ^~~~~~~~~~~
./include/linux/rcupdate.h:436:43: note: in expansion of macro ‘READ_ONCE’
  436 |  typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \
      |                                           ^~~~~~~~~
./include/linux/rcupdate.h:584:2: note: in expansion of macro ‘__rcu_dereference_check’
  584 |  __rcu_dereference_check((p), __UNIQUE_ID(rcu), \
      |  ^~~~~~~~~~~~~~~~~~~~~~~
./include/linux/rcupdate.h:656:28: note: in expansion of macro ‘rcu_dereference_check’
  656 | #define rcu_dereference(p) rcu_dereference_check(p, 0)
      |                            ^~~~~~~~~~~~~~~~~~~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:674:9: note: in expansion of macro ‘rcu_dereference’
  674 |  conf = rcu_dereference(vif->chanctx_conf);
      |         ^~~~~~~~~~~~~~~
In file included from ./arch/arm64/include/asm/rwonce.h:71,
                 from ./include/linux/compiler.h:246,
                 from ./include/linux/export.h:33,
                 from ./include/linux/linkage.h:7,
                 from ./include/linux/kernel.h:17,
                 from ./include/linux/skbuff.h:13,
                 from ./include/linux/if_ether.h:19,
                 from ./include/linux/etherdevice.h:20,
                 from /home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc.h:21,
                 from /home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.h:20,
                 from /home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:17:
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:674:28: error: ‘struct ieee80211_vif’ has no member named ‘chanctx_conf’
  674 |  conf = rcu_dereference(vif->chanctx_conf);
      |                            ^~
./include/asm-generic/rwonce.h:44:72: note: in definition of macro ‘__READ_ONCE’
   44 | fine __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
      |                                                                     ^

./include/linux/rcupdate.h:436:43: note: in expansion of macro ‘READ_ONCE’
  436 |  typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \
      |                                           ^~~~~~~~~
./include/linux/rcupdate.h:584:2: note: in expansion of macro ‘__rcu_dereference_check’
  584 |  __rcu_dereference_check((p), __UNIQUE_ID(rcu), \
      |  ^~~~~~~~~~~~~~~~~~~~~~~
./include/linux/rcupdate.h:656:28: note: in expansion of macro ‘rcu_dereference_check’
  656 | #define rcu_dereference(p) rcu_dereference_check(p, 0)
      |                            ^~~~~~~~~~~~~~~~~~~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:674:9: note: in expansion of macro ‘rcu_dereference’
  674 |  conf = rcu_dereference(vif->chanctx_conf);
      |         ^~~~~~~~~~~~~~~
In file included from ./include/linux/rculist.h:11,
                 from ./include/linux/dcache.h:8,
                 from ./include/linux/fs.h:8,
                 from ./include/linux/highmem.h:5,
                 from ./include/linux/bvec.h:10,
                 from ./include/linux/skbuff.h:17,
                 from ./include/linux/if_ether.h:19,
                 from ./include/linux/etherdevice.h:20,
                 from /home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc.h:21,
                 from /home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.h:20,
                 from /home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:17:
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:674:28: error: ‘struct ieee80211_vif’ has no member named ‘chanctx_conf’
  674 |  conf = rcu_dereference(vif->chanctx_conf);
      |                            ^~
./include/linux/rcupdate.h:439:12: note: in definition of macro ‘__rcu_dereference_check’
  439 |  ((typeof(*p) __force __kernel *)(local)); \
      |            ^
./include/linux/rcupdate.h:656:28: note: in expansion of macro ‘rcu_dereference_check’
  656 | #define rcu_dereference(p) rcu_dereference_check(p, 0)
      |                            ^~~~~~~~~~~~~~~~~~~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:674:9: note: in expansion of macro ‘rcu_dereference’
  674 |  conf = rcu_dereference(vif->chanctx_conf);
      |         ^~~~~~~~~~~~~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:680:18: error: ‘struct ieee80211_sta’ has no member named ‘supp_rates’
  680 |        sizeof(sta->supp_rates[band]),
      |                  ^~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:681:12: error: ‘struct ieee80211_sta’ has no member named ‘supp_rates’
  681 |        &sta->supp_rates[band]);
      |            ^~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c: In function ‘nrc_assoc_h_ht’:
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:692:44: error: ‘struct ieee80211_sta’ has no member named ‘ht_cap’
  692 |  struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap;
      |                                            ^~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c: In function ‘nrc_assoc_h_phymode’:
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:720:9: error: ‘struct ieee80211_sta’ has no member named ‘ht_cap’
  720 |  if (sta->ht_cap.ht_supported)
      |         ^~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:722:14: error: ‘struct ieee80211_sta’ has no member named ‘supp_rates’
  722 |  else if (sta->supp_rates[NL80211_BAND_2GHZ] >> 4)
      |              ^~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c: In function ‘nrc_vendor_update_beacon’:
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:770:6: error: too few arguments to function ‘ieee80211_beacon_get_template’
  770 |  b = ieee80211_beacon_get_template(hw, vif, NULL);
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc.h:28,
                 from /home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.h:20,
                 from /home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:17:
./include/net/mac80211.h:5196:1: note: declared here
 5196 | ieee80211_beacon_get_template(struct ieee80211_hw *hw,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c: In function ‘nrc_mac_bss_info_changed’:
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:1457:24: error: ‘struct ieee80211_bss_conf’ has no member named ‘assoc’
 1457 |   nw->associated = info->assoc;
      |                        ^~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:1458:11: error: ‘struct ieee80211_bss_conf’ has no member named ‘assoc’
 1458 |   if (info->assoc) {
      |           ^~
In file included from /home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-hif.h:22,
                 from /home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:18:
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:1551:32: error: ‘struct ieee80211_bss_conf’ has no member named ‘ssid’; did you mean ‘bssid’?
 1551 |   nrc_mac_dbg("ssid=%s", info->ssid);
      |                                ^~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-debug.h:80:59: note: in definition of macro ‘nrc_mac_dbg’
   80 | #define nrc_mac_dbg(fmt, ...) nrc_dbg(NRC_DBG_MAC, fmt, ##__VA_ARGS__)
      |                                                           ^~~~~~~~~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:1553:46: error: ‘struct ieee80211_bss_conf’ has no member named ‘ssid_len’
 1553 |   nrc_wim_skb_add_tlv(skb, WIM_TLV_SSID, info->ssid_len,
      |                                              ^~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:1554:11: error: ‘struct ieee80211_bss_conf’ has no member named ‘ssid’; did you mean ‘bssid’?
 1554 |     info->ssid);
      |           ^~~~
      |           bssid
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c: In function ‘nrc_mac_set_tim’:
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:1844:23: error: too few arguments to function ‘ieee80211_beacon_get_template’
 1844 |   struct sk_buff *b = ieee80211_beacon_get_template(hw,
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc.h:28,
                 from /home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.h:20,
                 from /home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:17:
./include/net/mac80211.h:5196:1: note: declared here
 5196 | ieee80211_beacon_get_template(struct ieee80211_hw *hw,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c: In function ‘nrc_mac_ampdu_action’:
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:1976:35: error: ‘struct ieee80211_sta’ has no member named ‘ht_cap’
 1976 |   if (!nw->ampdu_supported || !sta->ht_cap.ht_supported)
      |                                   ^~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c: In function ‘nrc_mac_channel_policy’:
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:2462:10: error: ‘struct wireless_dev’ has no member named ‘chandef’
 2462 |  if (wdev->chandef.chan &&
      |          ^~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:2463:7: error: ‘struct wireless_dev’ has no member named ‘chandef’
 2463 |   wdev->chandef.chan->center_freq ==
      |       ^~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:2476:19: error: ‘struct ieee80211_bss_conf’ has no member named ‘assoc’
 2476 |  if (vif->bss_conf.assoc)
      |                   ^
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c: In function ‘nrc_mac_channel_switch_beacon’:
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:2693:6: error: too few arguments to function ‘ieee80211_beacon_get_template’
 2693 |  b = ieee80211_beacon_get_template(hw, vif, NULL);
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc.h:28,
                 from /home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.h:20,
                 from /home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:17:
./include/net/mac80211.h:5196:1: note: declared here
 5196 | ieee80211_beacon_get_template(struct ieee80211_hw *hw,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c: At top level:
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:2871:22: error: initialization of ‘void (*)(struct ieee80211_hw *, struct ieee80211_vif *, struct ieee80211_bss_conf *, u64)’ {aka ‘void (*)(struct ieee80211_hw *, struct ieee80211_vif *, struct ieee80211_bss_conf *, long long unsigned int)’} from incompatible pointer type ‘void (*)(struct ieee80211_hw *, struct ieee80211_vif *, struct ieee80211_bss_conf *, u32)’ {aka ‘void (*)(struct ieee80211_hw *, struct ieee80211_vif *, struct ieee80211_bss_conf *, unsigned int)’} [-Werror=incompatible-pointer-types]
 2871 |  .bss_info_changed = nrc_mac_bss_info_changed,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:2871:22: note: (near initialization for ‘nrc_mac80211_ops.bss_info_changed’)
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:2894:13: error: initialization of ‘int (*)(struct ieee80211_hw *, struct ieee80211_vif *, unsigned int,  u16,  const struct ieee80211_tx_queue_params *)’ {aka ‘int (*)(struct ieee80211_hw *, struct ieee80211_vif *, unsigned int,  short unsigned int,  const struct ieee80211_tx_queue_params *)’} from incompatible pointer type ‘int (*)(struct ieee80211_hw *, struct ieee80211_vif *, u16,  const struct ieee80211_tx_queue_params *)’ {aka ‘int (*)(struct ieee80211_hw *, struct ieee80211_vif *, short unsigned int,  const struct ieee80211_tx_queue_params *)’} [-Werror=incompatible-pointer-types]
 2894 |  .conf_tx = nrc_mac_conf_tx,
      |             ^~~~~~~~~~~~~~~
/home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.c:2894:13: note: (near initialization for ‘nrc_mac80211_ops.conf_tx’)
cc1: all warnings being treated as errors
make[2]: *** [scripts/Makefile.build:250: /home/pi/nrc7292_sw_pkg/package/host/src/nrc/nrc-mac80211.o] Error 1
make[1]: *** [Makefile:2012: /home/pi/nrc7292_sw_pkg/package/host/src/nrc] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.21-v8+'
make: *** [Makefile:62: modules] Error 2
bienxanh1901 commented 1 year ago

Got the same issue! Does anyone found a solution?

teledatics commented 1 year ago

Please see out Pull Request for a solution:

https://github.com/newracom/nrc7292_sw_pkg/pull/67

You can also use our nrc.ko driver fork with these changes at:

https://github.com/teledatics/nrc7292_sw_pkg/tree/teledatics_spi_crash_fix