Wakeup Protocol Project

I have an OpenWRT One router and I am trying to modify it so that it can produce a wakeup signal from the antenna by altering some of the firmware that is written for the WiFi chip.

I started by just making some changes to the hostapd ubus.c file from the OpenWRT github to practice compiling just that portion of the code and copying it onto the router to check if wireless functionality is still present. But, I am struggling to compile just the hostapd portion as it does not seem to be compiling a similar file to the file currently present on the router, despite having the correct target in menuconfig selected.

I am wondering how to perform this compilation process for my intended modification.

Commands I am using:
Compiling hostapd with: make package/network/services/hostapd/compile