From 6a4363f5f512500ab8b3d207f57d14135cc64eae Mon Sep 17 00:00:00 2001 From: Vidyullatha Kanchanapally Date: Thu, 23 Mar 2017 16:11:22 +0530 Subject: [PATCH] MBO: Fix reject reason codes This change fixes the following compilation warnings: wnm_sta.c:1007:4: warning: implicit conversion from enumeration type 'enum mbo_transition_reason' to different enumeration type 'enum mbo_transition_reject_reason' [-Wenum-conversion] The actual value of both MBO_TRANSITION_REASON_UNSPECIFIED and MBO_TRANSITION_REJECT_REASON_UNSPECIFIED is 0, so this does not result in any change in the contents of the frames. Signed-off-by: Jouni Malinen --- wpa_supplicant/wnm_sta.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/wpa_supplicant/wnm_sta.c b/wpa_supplicant/wnm_sta.c index dd6ce8de1..f17a8dc83 100644 --- a/wpa_supplicant/wnm_sta.c +++ b/wpa_supplicant/wnm_sta.c @@ -1004,7 +1004,8 @@ static void wnm_bss_tm_connect(struct wpa_supplicant *wpa_s, "WNM: Sending successful BSS Transition Management Response"); wnm_send_bss_transition_mgmt_resp( wpa_s, wpa_s->wnm_dialog_token, WNM_BSS_TM_ACCEPT, - MBO_TRANSITION_REASON_UNSPECIFIED, 0, bss->bssid); + MBO_TRANSITION_REJECT_REASON_UNSPECIFIED, 0, + bss->bssid); } if (bss == wpa_s->current_bss) { @@ -1314,7 +1315,7 @@ static void ieee802_11_rx_bss_trans_mgmt_req(struct wpa_supplicant *wpa_s, wnm_send_bss_transition_mgmt_resp( wpa_s, wpa_s->wnm_dialog_token, wpa_s->reject_btm_req_reason, - MBO_TRANSITION_REASON_UNSPECIFIED, 0, NULL); + MBO_TRANSITION_REJECT_REASON_UNSPECIFIED, 0, NULL); return; } #endif /* CONFIG_MBO && CONFIG_TESTING_OPTIONS */ @@ -1413,7 +1414,8 @@ static void ieee802_11_rx_bss_trans_mgmt_req(struct wpa_supplicant *wpa_s, wnm_send_bss_transition_mgmt_resp( wpa_s, wpa_s->wnm_dialog_token, WNM_BSS_TM_REJECT_NO_SUITABLE_CANDIDATES, - MBO_TRANSITION_REASON_UNSPECIFIED, 0, NULL); + MBO_TRANSITION_REJECT_REASON_UNSPECIFIED, 0, + NULL); return; } @@ -1478,7 +1480,7 @@ static void ieee802_11_rx_bss_trans_mgmt_req(struct wpa_supplicant *wpa_s, } wnm_send_bss_transition_mgmt_resp( wpa_s, wpa_s->wnm_dialog_token, status, - MBO_TRANSITION_REASON_UNSPECIFIED, 0, NULL); + MBO_TRANSITION_REJECT_REASON_UNSPECIFIED, 0, NULL); } }