How to use Channel Switch Announcement(CSA) in openwrt

I am new of openwrt develop. I try to write code about auto swith 2.4g and 5g for my device.
I found the CSA action frame can do this. But still now, no document found.
Can you show me sample code about the CSA.