An example of using the Linux kernel netlink protocol, specifically nl80211 via libnl/libnl-genl, to catch stations associating/disassociating with an 802.11 AP.
doctaweeks/ap-notify
Example of using nl80211 via libnl to get 802.11 station association events
CGPL-2.0