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

This commit is contained in:
Jouni Malinen 2010-06-27 11:46:44 -07:00 committed by Jouni Malinen
parent 706887fc28
commit bf608cad56
2 changed files with 3 additions and 3 deletions

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

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