Browse Source

P2P: Rename SD info not available define to match with spec change

Jouni Malinen 14 years ago
parent
commit
bf608cad56
2 changed files with 3 additions and 3 deletions
  1. 1 1
      src/common/ieee802_11_defs.h
  2. 2 2
      wpa_supplicant/p2p_supplicant.c

+ 1 - 1
src/common/ieee802_11_defs.h

@@ -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
 };
 

+ 2 - 2
wpa_supplicant/p2p_supplicant.c

@@ -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 */
 	}