Re: Driver for Qualcomm QCNFA765?

From: Charlie Li <vishwin_at_freebsd.org>
Date: Mon, 18 Nov 2024 22:40:12 UTC
Bjoern A. Zeeb wrote:
> On Sat, 16 Nov 2024, Robert Clausecker wrote:
>> I just obtained a Lenovo Thinkpad T16 AMD Gen2 with a
>> Qualcomm QNFA765 WLAN module.  Is support for this module
>> present or planned for FreeBSD?  If not, what other options
>> do I have?
> 
> https://wiki.freebsd.org/WiFi/Ath11k summarizes this still.
> 
fwiw ath11k(4), when connected to the build (it's still disconnected in 
the tree for reasons), no longer builds after the LLVM 19 merge into 
-CURRENT:

/usr/src/sys/contrib/dev/athk/ath11k/mac.c:1582:45: error: too few 
arguments to function call, expected 2, have 1
  1582 |             ieee80211_beacon_cntdwn_is_complete(vif)) {
       |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    ^
/usr/src/sys/compat/linuxkpi/common/include/net/mac80211.h:2245:1: note: 
'ieee80211_beacon_cntdwn_is_complete' declared here
  2245 | ieee80211_beacon_cntdwn_is_complete(struct ieee80211_vif *vif, 
uint32_t link_id)
       | ^ 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/contrib/dev/athk/ath11k/mac.c:1591:37: error: too few 
arguments to function call, expected 2, have 1
  1591 |                 ieee80211_beacon_update_cntdwn(vif);
       |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    ^
/usr/src/sys/compat/linuxkpi/common/include/net/mac80211.h:2230:1: note: 
'ieee80211_beacon_update_cntdwn' declared here
  2230 | ieee80211_beacon_update_cntdwn(struct ieee80211_vif *vif, 
uint32_t link_id)
       | ^ 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/contrib/dev/athk/ath11k/wmi.c:8620:35: error: too few 
arguments to function call, expected 2, have 1
  8620 |                         ieee80211_csa_finish(arvif->vif);
       |                         ~~~~~~~~~~~~~~~~~~~~           ^
/usr/src/sys/compat/linuxkpi/common/include/net/mac80211.h:1592:1: note: 
'ieee80211_csa_finish' declared here
  1592 | ieee80211_csa_finish(struct ieee80211_vif *vif, uint32_t link_id)
       | ^                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/contrib/dev/athk/ath11k/mac.c:9085:36: error: incompatible 
function pointer types initializing 'void (*)(struct ieee80211_hw *, 
bool)' (aka 'void (*)(struct ieee80211_hw *, _Bool)') with an expression 
of type 'void (struct ieee80211_hw *)' 
[-Wincompatible-function-pointer-types]
  9085 |         .stop                           = ath11k_mac_op_stop,
       |                                           ^~~~~~~~~~~~~~~~~~
*** [wmi.o] Error code 1

make[4]: stopped making "all" in /usr/src/sys/modules/ath11k

-- 
Charlie Li
...nope, still don't have an exit line.