hostapd: add support for authenticating with multiple PSKs via ubus helper
[openwrt/staging/nbd.git] / package / network / services / hostapd / patches / 804-hostapd_afc_ucode.patch
1 --- a/src/ap/afc.c
2 +++ b/src/ap/afc.c
3 @@ -737,6 +737,20 @@ static int hostapd_afc_send_receive(stru
4 return 0;
5 }
6
7 +#ifdef UCODE_SUPPORT
8 + request_obj = hostapd_afc_build_request(iface);
9 + if (!request_obj)
10 + return -ENOMEM;
11 +
12 + request = json_object_to_json_string(request_obj);
13 + ret = hostapd_ucode_afc_request(iface, request, buf, sizeof(buf));
14 + json_object_put(request_obj);
15 + if (ret < 0)
16 + return ret;
17 +
18 + return hostapd_afc_parse_reply(iface, buf);
19 +#endif
20 +
21 if (!iconf->afc.socket) {
22 wpa_printf(MSG_ERROR, "Missing AFC socket string");
23 return -EINVAL;