P2P: Rename SD info not available define to match with spec change
authorJouni Malinen <jouni.malinen@atheros.com>
Sun, 27 Jun 2010 18:46:44 +0000 (11:46 -0700)
committerJouni Malinen <j@w1.fi>
Thu, 9 Sep 2010 14:17:19 +0000 (07:17 -0700)
src/common/ieee802_11_defs.h
wpa_supplicant/p2p_supplicant.c

index c00f4db..3adfbd9 100644 (file)
@@ -736,7 +736,7 @@ enum p2p_service_protocol_type {
 enum p2p_sd_status {
        P2P_SD_SUCCESS = 0,
        P2P_SD_PROTO_NOT_AVAILABLE = 1,
-       P2P_SD_QUERY_DATA_NOT_AVAILABLE = 2,
+       P2P_SD_REQUESTED_INFO_NOT_AVAILABLE = 2,
        P2P_SD_BAD_REQUEST = 3
 };
 
index fc69392..6d142c5 100644 (file)
@@ -1166,7 +1166,7 @@ static void wpas_sd_req_bonjour(struct wpa_supplicant *wpa_s,
                           "available");
 
                /* Status Code */
-               wpabuf_put_u8(resp, P2P_SD_QUERY_DATA_NOT_AVAILABLE);
+               wpabuf_put_u8(resp, P2P_SD_REQUESTED_INFO_NOT_AVAILABLE);
                /* Response Data: empty */
                WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos -
                             2);
@@ -1296,7 +1296,7 @@ static void wpas_sd_req_upnp(struct wpa_supplicant *wpa_s,
                wpa_printf(MSG_DEBUG, "P2P: Requested UPnP service not "
                           "available");
                /* Status Code */
-               wpabuf_put_u8(resp, P2P_SD_QUERY_DATA_NOT_AVAILABLE);
+               wpabuf_put_u8(resp, P2P_SD_REQUESTED_INFO_NOT_AVAILABLE);
                /* Response Data: empty */
        }