- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
our host is iMX8 and we are using the FMAC backport 5.10.9. The device tree defines mmc_pwrseq for the control of WL_REG_ON. Do you have any documentation explaining how we can switch on or off WiFi or reset the IC from a user application?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Please refer the attached app note.
https://www.infineon.com/dgdl/Infineon-AN232689_-_Wi-Fi_software_user_guide-ApplicationNotes-v01_00-...
You can follow the following sequence for power-on and power-off Wifi -
Power on :
insmod compat.ko
insmod cfg80211.ko
insmod brcmutil.ko
insmod brcmfmac.ko
Power off-
rmmod brcmfmac.ko
rmmod brcmutil.ko
rmmod cfg80211.ko
rmmod compat.ko
Thanks,
Ambika
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Please refer the attached app note.
https://www.infineon.com/dgdl/Infineon-AN232689_-_Wi-Fi_software_user_guide-ApplicationNotes-v01_00-...
You can follow the following sequence for power-on and power-off Wifi -
Power on :
insmod compat.ko
insmod cfg80211.ko
insmod brcmutil.ko
insmod brcmfmac.ko
Power off-
rmmod brcmfmac.ko
rmmod brcmutil.ko
rmmod cfg80211.ko
rmmod compat.ko
Thanks,
Ambika
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Please use wl up and wl down for turning on and off the wifi radio, respectively.
In case you don't have the WL Tool, please contact your vendor.
Thanks,
Ambika
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Ambika for your reply. In some device tree files from Murata (module 1MW) the wlreg_on regulator has been replaced by mmc-pwrseq-simple which is controlled by mmc core. Does it means that we have to go through some mmc PM interface to control wlreg_on? I'm not so familiar with the Linux PM system yet so I'm a bit lost but then I would expect we could power on/off or reset the mmc interface assigned to the Wi-Fi and by doing so also power on/off or reset the IC?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please modify the .config of the kernel source by setting CONFIG_DEBUG_FS=y as explained in - https://community.infineon.com/t5/Resource-Library/FMAC-Debugging/ta-p/246042
' echo 1 > /sys/kernel/debug/ieee80211/phy0/reset ' will reset the radio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
rmmod brcmfmac and modprobe brcmfmac are working for me. Thanks a lot for your time.