Files
wlan-ap/feeds/ipq807x_v5.4/hostapd/patches/t00-005-hostapd_afc_ucode.patch
Felix Fietkau 49560ef3d3 ipq807x_v5.4: backport AFC support
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-04-20 11:44:38 +02:00

24 lines
576 B
Diff

--- a/src/ap/afc.c
+++ b/src/ap/afc.c
@@ -737,6 +737,20 @@ static int hostapd_afc_send_receive(stru
return 0;
}
+#ifdef UCODE_SUPPORT
+ request_obj = hostapd_afc_build_request(iface);
+ if (!request_obj)
+ return -ENOMEM;
+
+ request = json_object_to_json_string(request_obj);
+ ret = hostapd_ucode_afc_request(iface, request, buf, sizeof(buf));
+ json_object_put(request_obj);
+ if (ret < 0)
+ return ret;
+
+ return hostapd_afc_parse_reply(iface, buf);
+#endif
+
if (!iconf->afc.socket) {
wpa_printf(MSG_ERROR, "Missing AFC socket string");
return -EINVAL;