Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

Wi-Fi Bluetooth for Linux Forum Discussions

Utsav
Level 2
Level 2
10 replies posted 10 sign-ins 5 replies posted

Hello @Vivek_gunapati ,

Currently we are using the dhd-android-1.363.125.17 for wifi and bluetooth in cyw43438. We will be porting from android 9 to android 12. We need support for the new drivers for this chipset cyw43438

Previously we asked support for android 11 but we have shifted towards android 12.

In this post https://community.infineon.com/t5/Wi-Fi-Bluetooth-for-Linux/dhd-android-1-363-125-17-for-Android-11-... you have provided a link to the software.

Can we use the same driver or is there any newer driver available.

If you remember we were using the dhd-android-1.363.125.17 for android 9 and there is option available for brcmfmac drivers also. Will the new driver for android 12 based on dhd or brcmfmac?

Regards,

Utsav Lath

0 Likes
17 Replies
Vivek_gunapati
Moderator
Moderator
Moderator
5 likes given 250 sign-ins 10 likes received

Hi @Utsav 
You can use the same driver. The latest driver is based on Android 13. link to the latest driver is -> https://community.infineon.com/t5/Wi-Fi-Bluetooth-for-Linux/Infineon-Android-Release-2022-12-23/td-p...

Currently we do not have brcmfmac drivers for android. 

Regards
Vivek.

0 Likes

Hello @Vivek_gunapati 

The 89570_AndroidBringup in the android_cy_ahd-2022_0909_REL_PKG.zip is related to Hikey platform 960.It is using PCIE whereas we use SDIO for WIFI/bluetooth.

Can you provide any guide related to imx8 platform and sdio protocol

Regards,

Utsav Lath

 

0 Likes
Vivek_gunapati
Moderator
Moderator
Moderator
5 likes given 250 sign-ins 10 likes received

Hi @Utsav , 

Currently 43438 is not recommended for new designs, the alternative is to use the AHD+43438 considering AHD goes through all Android-related certifications.  and the 43438 firmware can be taken from the FMAC release https://community.infineon.com/t5/Wi-Fi-Bluetooth-for-Linux/Cypress-Linux-WiFi-Driver-Release-FMAC-2..., AHD driver fully tested with the latest Infineon module like 54591,43012 & 55257x and not 43438. 

Currently, we do not have a guide for SDIO or a platform-specific guide. Using Hikey platform as reference, customer may have to port it to the target platform.

Regards
Vivek.

0 Likes

Hello @Vivek_gunapati 

Currently 43438 is not recommended for new designs, the alternative is to use the AHD+43438 considering AHD goes through all Android-related certifications

I dont understand the context here. Is AHD+43438 a new hardware availaible?

AHD driver fully tested with the latest Infineon module like 54591,43012 & 55257x and not 43438. 

The AHD+43438 is not tested or 43438 wifi bluetooth chips is at end of life?

Regards,

Utsav Lath

 

 

 

 

 

0 Likes
Vivek_gunapati
Moderator
Moderator
Moderator
5 likes given 250 sign-ins 10 likes received

Hi Utsav, 

 AHD+43438 combination is not verified even though the AHD driver works with 43438 as it is in maintenance mode and not end-of-life.

Regards
Vivek.

0 Likes

Hello @Vivek_gunapati ,

Can we continue using the same driver dhd-android-1.363.125.17 for android 12 also.

For android 11 you did suggest us dhd-android-1.363.125.25

Is any one of them feasible to be used for android 12?

Regards,

Utsav Lath

0 Likes
Vivek_gunapati
Moderator
Moderator
Moderator
5 likes given 250 sign-ins 10 likes received

Hi @Utsav

The latest AHD driver can be used for older  Android version. Usually, the drivers are backward compatible.

regards
Vivek.

0 Likes

Hello @Vivek_gunapati 

While compiling the driver with android 12 2.0.0 with imx8 kernel version 5.15.41. I am facing a lot of errors related to struct wireless_dev missing fields

Android12/vendor/nxp-opensource/kernel_imx/drivers/net/wireless/ahd/wl_cfg80211.c:7359:16: error: no member named 'current_bss' in 'struct wireless_dev'
while ((wdev->current_bss) && wait_cnt) {
~~~~ ^
Android12/vendor/nxp-opensource/kernel_imx/drivers/net/wireless/ahd/wl_cfg80211.c:12712:23: error: no member named 'preset_chandef' in 'struct wireless_dev'
dev->ieee80211_ptr->preset_chandef.chan,
~~~~~~~~~~~~~~~~~~ ^
Android12/vendor/nxp-opensource/kernel_imx/drivers/net/wireless/ahd/wl_cfg80211.c:16024:11: error: no member named 'ssid_len' in 'struct wireless_dev'
wdev->ssid_len = min(ssid->SSID_len, (uint32)DOT11_MAX_SSID_LEN);
~~~~ ^
Android12/vendor/nxp-opensource/kernel_imx/drivers/net/wireless/ahd/wl_cfg80211.c:16025:18: error: no member named 'ssid' in 'struct wireless_dev'
memcpy(wdev->ssid, ssid->SSID, wdev->ssid_len);
~~~~ ^
Android12/vendor/nxp-opensource/kernel_imx/drivers/net/wireless/ahd/wl_cfg80211.c:16025:42: error: no member named 'ssid_len' in 'struct wireless_dev'
memcpy(wdev->ssid, ssid->SSID, wdev->ssid_len);
~~~~ ^
Android12/vendor/nxp-opensource/kernel_imx/drivers/net/wireless/ahd/wl_cfg80211.c:16794:12: error: no member named 'channel' in 'struct cfg80211_roam_info'
roam_info.channel = notify_channel;
~~~~~~~~~ ^
Android12/vendor/nxp-opensource/kernel_imx/drivers/net/wireless/ahd/wl_cfg80211.c:16795:12: error: no member named 'bssid' in 'struct cfg80211_roam_info'
roam_info.bssid = curbssid;
~~~~~~~~~ ^
Android12/vendor/nxp-opensource/kernel_imx/drivers/net/wireless/ahd/wl_cfgvendor.c:1466:1: error: unused function 'wl_cfgvendor_get_wake_reason_stats' [-Werror,-Wunused-function]
wl_cfgvendor_get_wake_reason_stats(struct wiphy *wiphy,
^
Android12/vendor/nxp-opensource/kernel_imx/drivers/net/wireless/ahd/wl_cfgvendor.c:1541:1: error: unused function 'wl_cfgvendor_set_random_mac' [-Werror,-Wunused-function]
wl_cfgvendor_set_random_mac(struct wiphy *wiphy,
^
2 errors generated.
Android12/vendor/nxp-opensource/kernel_imx/drivers/net/wireless/ahd/wl_cfg80211.c:20445:11: error: no member named 'ssid' in 'struct wireless_dev'
/home/einfochips/Android12/vendor/nxp-opensource/kernel_imx/scripts/Makefile.build:286: recipe for target 'drivers/net/wireless/ahd/wl_cfgvendor.o' failed
make[6]: *** [drivers/net/wireless/ahd/wl_cfgvendor.o] Error 1
wdev->ssid, wdev->ssid_len);
~~~~ ^
Android12/vendor/nxp-opensource/kernel_imx/drivers/net/wireless/ahd/wl_cfg80211.c:1021:42: note: expanded from macro 'CFG80211_GET_BSS'
cfg80211_get_bss(wiphy, channel, bssid, ssid, ssid_len, \
^~~~
Android12/vendor/nxp-opensource/kernel_imx/drivers/net/wireless/ahd/wl_cfg80211.c:20445:23: error: no member named 'ssid_len' in 'struct wireless_dev'
wdev->ssid, wdev->ssid_len);

I believe this error should not be happening if the drivers are using the proper kernel version. Can you help me to understand this issue?

Regards,

Utsav Lath

0 Likes
Vivek_gunapati
Moderator
Moderator
Moderator
5 likes given 250 sign-ins 10 likes received

Hi @Utsav , 

Could you please share me the link of the AHD driver that you are using ?

 

Regards
Vivek.

0 Likes
Utsav
Level 2
Level 2
10 replies posted 10 sign-ins 5 replies posted

Hello @Vivek_gunapati ,

Any update regarding above query

Regards,

Utsav Lath

0 Likes
Vivek_gunapati
Moderator
Moderator
Moderator
5 likes given 250 sign-ins 10 likes received

Hi @Utsav 
One thing we missed in the document - enable DHD_ANDROID_KERNEL5_15_SUPPORT for 5_15 kernel.
Please enable this in Makefile. and check if the issue persist.

Regards
Vivek.

0 Likes

Hello @Vivek_gunapati 

We have added the support as

DHDCFLAGS += -DDHD_ANDROID_KERNEL5_15_SUPPORT
 
in the Makefile but the issue is not resolved.
In the driver source code also i dont find any reference related to
DHD_ANDROID_KERNEL5_15_SUPPORT
0 Likes
Utsav
Level 2
Level 2
10 replies posted 10 sign-ins 5 replies posted

Hello @Vivek_gunapati 

Any update regarding the above query

Regards,

Utsav Lath

0 Likes
Vivek_gunapati
Moderator
Moderator
Moderator
5 likes given 250 sign-ins 10 likes received

Hi Utsan, 

From searching the code i see the definition and here is one for reference. 

Vivek_gunapati_0-1675431358331.png

Could you please verify the same with the latest AHD release.? 

0 Likes

@Vivek_gunapati 

Could you please share the driver link again just to avoid confusion?

Regards,

Utsav Lath

 

 

 

0 Likes
Utsav
Level 2
Level 2
10 replies posted 10 sign-ins 5 replies posted

Hello @Vivek_gunapati ,

I checked the driver source for DHD_ANDROID_KERNEL5_15_SUPPORT support

I am really confused now. You suggested us to use the below link for Android 12 which does not have the DHD_ANDROID_KERNEL5_15_SUPPORT

https://community.infineon.com/t5/Wi-Fi-Bluetooth-for-Linux/Infineon-Android-Release-2022-09-20/td-p...

The flag DHD_ANDROID_KERNEL5_15_SUPPORT is available in the latest driver which is for android 13 and the link is below

https://community.infineon.com/t5/Wi-Fi-Bluetooth-for-Linux/Infineon-Android-Release-2022-12-23/td-p...

Can you suggest the appropriate link to us and help to expedite the process. Does infineon has proper support for the cyw43438 for imx8 android 12 2.0.0

Right now we even dont have a proper guide to port the drivers which is already consuming so much of time and after that all these issues are just delaying our launch.

We can have a call with your technical team also

Regards,

Utsav Lath

 

0 Likes