Register for hostapd events in openwrt via unix socket

Hi all,

How to register for the hostapd events via socket located at /var/run/hostapd/wlan0 (not through hostapd_cli) to capture WiFi association and disassociation to filter the connected clients Mac Address.

https://w1.fi/wpa_supplicant/devel/hostapd_ctrl_iface_page.html