WPS: Remove unnecessary SetSelectedRegistrar callback
This can be handled internally within core WPS code, so there is no need to go through wps_hostapd.c with a callback function that is just calling back into the core WPS code.
This commit is contained in:
parent
ad1f0291f8
commit
d0d45d8276
3 changed files with 1 additions and 14 deletions
|
@ -34,8 +34,6 @@ struct upnp_wps_device_ctx {
|
|||
void *priv, enum upnp_wps_wlanevent_type ev_type,
|
||||
const u8 *mac_addr, const struct wpabuf *msg,
|
||||
enum wps_msg_type msg_type);
|
||||
int (*rx_req_set_selected_registrar)(void *priv,
|
||||
const struct wpabuf *msg);
|
||||
};
|
||||
|
||||
struct upnp_wps_device_sm *
|
||||
|
|
|
@ -520,8 +520,7 @@ web_process_set_selected_registrar(struct upnp_wps_device_sm *sm, char *data,
|
|||
msg = xml_get_base64_item(data, "NewMessage", &ret);
|
||||
if (msg == NULL)
|
||||
return ret;
|
||||
if (!sm->ctx->rx_req_set_selected_registrar ||
|
||||
sm->ctx->rx_req_set_selected_registrar(sm->priv, msg)) {
|
||||
if (wps_registrar_set_selected_registrar(sm->wps->registrar, msg)) {
|
||||
wpabuf_free(msg);
|
||||
return HTTP_INTERNAL_SERVER_ERROR;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue