Skip to content

Commit 3884bb7

Browse files
committed
[toup] fix DPP build warnings
Fix build warnings from hostap original code when DPP enabled. Signed-off-by: Fengming Ye <[email protected]>
1 parent 00c11d0 commit 3884bb7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/common/dpp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3290,7 +3290,7 @@ enum dpp_status_error dpp_conf_result_rx(struct dpp_authentication *auth,
32903290
size_t len[2];
32913291
u8 *unwrapped = NULL;
32923292
size_t unwrapped_len = 0;
3293-
enum dpp_status_error ret = 256;
3293+
enum dpp_status_error ret = 255;
32943294

32953295
wrapped_data = dpp_get_attr(attr_start, attr_len, DPP_ATTR_WRAPPED_DATA,
32963296
&wrapped_data_len);
@@ -3444,7 +3444,7 @@ enum dpp_status_error dpp_conn_status_result_rx(struct dpp_authentication *auth,
34443444
size_t len[2];
34453445
u8 *unwrapped = NULL;
34463446
size_t unwrapped_len = 0;
3447-
enum dpp_status_error ret = 256;
3447+
enum dpp_status_error ret = 255;
34483448
struct json_token *root = NULL, *token;
34493449
struct wpabuf *ssid64;
34503450

src/common/dpp_auth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ dpp_auth_req_rx(struct dpp_global *dpp, void *msg_ctx, u8 dpp_allowed_roles,
875875
wpa_printf(MSG_DEBUG, "DPP: Unexpected role in I-capabilities");
876876
wpa_msg(auth->msg_ctx, MSG_INFO,
877877
DPP_EVENT_FAIL "Invalid role in I-capabilities 0x%02x",
878-
auth->i_capab & DPP_CAPAB_ROLE_MASK);
878+
(u8)(auth->i_capab & DPP_CAPAB_ROLE_MASK));
879879
goto fail;
880880
}
881881

0 commit comments

Comments
 (0)