Hostapd: Get capapbilities and supported rates of ap?

I would like to get the capapbilities and supported rates from the hostapd.
Furthermore I would like to know if the ap supports ht and vht.
With the get_clients I can easily get the ht, and vht of the stations...

Is it correct that all this stuff is in



So I can find everything under



I think I will add something in the ubus support if this is correct...

If somebody is intersted here is a patch that shows is the ap (bss) can handle ht and vht.
I tried some other stuff but seems to be useless informations...