]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
MBO: Fix reject reason codes
authorVidyullatha Kanchanapally <vkanchan@qti.qualcomm.com>
Thu, 23 Mar 2017 10:41:22 +0000 (16:11 +0530)
committerJouni Malinen <j@w1.fi>
Sun, 26 Mar 2017 18:13:21 +0000 (21:13 +0300)
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 <jouni@qca.qualcomm.com>
wpa_supplicant/wnm_sta.c

index dd6ce8de1ad262e24c0e83677bbef603b1859885..f17a8dc83878c9d8e4d25c65af88c936cbbf8ee0 100644 (file)
@@ -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);
        }
 }