src/ap/*.c must not call functions in hostapd or wpa_supplicant directories directly, so avoid this by using a callback function pointer.
Commit 32da61d9c9 was supposed to add this file.
32da61d9c9