UPnP: Renamed PutWLANResponse callback function to match action
authorJouni Malinen <jouni.malinen@atheros.com>
Fri, 6 Feb 2009 19:44:19 +0000 (21:44 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 6 Feb 2009 19:44:19 +0000 (21:44 +0200)
No point in adding extra "event_" to the name.

hostapd/wps_hostapd.c
src/wps/wps_upnp.h
src/wps/wps_upnp_web.c

index d32ee26..326a807 100644 (file)
@@ -853,7 +853,7 @@ static int hostapd_rx_req_del_sta_settings(void *priv,
 }
 
 
-static int hostapd_rx_req_put_wlan_event_response(
+static int hostapd_rx_req_put_wlan_response(
        void *priv, enum upnp_wps_wlanevent_type ev_type,
        const u8 *mac_addr, const struct wpabuf *msg,
        enum wps_msg_type msg_type)
@@ -965,8 +965,7 @@ static int hostapd_wps_upnp_init(struct hostapd_data *hapd,
        ctx->rx_req_get_sta_settings = hostapd_rx_req_get_sta_settings;
        ctx->rx_req_set_sta_settings = hostapd_rx_req_set_sta_settings;
        ctx->rx_req_del_sta_settings = hostapd_rx_req_del_sta_settings;
-       ctx->rx_req_put_wlan_event_response =
-               hostapd_rx_req_put_wlan_event_response;
+       ctx->rx_req_put_wlan_response = hostapd_rx_req_put_wlan_response;
        ctx->rx_req_set_selected_registrar =
                hostapd_rx_req_set_selected_registrar;
        ctx->rx_req_reboot_ap = hostapd_rx_req_reboot_ap;
index eb3397e..31b0556 100644 (file)
@@ -38,7 +38,7 @@ struct upnp_wps_device_ctx {
                                                   const struct wpabuf *msg);
        int (*rx_req_set_sta_settings)(void *priv, const struct wpabuf *msg);
        int (*rx_req_del_sta_settings)(void *priv, const struct wpabuf *msg);
-       int (*rx_req_put_wlan_event_response)(
+       int (*rx_req_put_wlan_response)(
                void *priv, enum upnp_wps_wlanevent_type ev_type,
                const u8 *mac_addr, const struct wpabuf *msg,
                enum wps_msg_type msg_type);
index 241afaa..db47c29 100644 (file)
@@ -1029,11 +1029,11 @@ web_process_put_wlan_response(struct upnp_wps_device_sm *sm, char *data,
                wpa_printf(MSG_DEBUG, "WPS UPnP: Message Type %d", type);
        } else
                type = -1;
-       if (!sm->ctx->rx_req_put_wlan_event_response ||
-           sm->ctx->rx_req_put_wlan_event_response(sm->priv, ev_type,
-                                                   macaddr, msg, type)) {
+       if (!sm->ctx->rx_req_put_wlan_response ||
+           sm->ctx->rx_req_put_wlan_response(sm->priv, ev_type, macaddr, msg,
+                                             type)) {
                wpa_printf(MSG_INFO, "WPS UPnP: Fail: sm->ctx->"
-                          "rx_req_put_wlan_event_response");
+                          "rx_req_put_wlan_response");
                wpabuf_free(msg);
                return HTTP_INTERNAL_SERVER_ERROR;
        }