]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP MLD: Use if/else/endif comments more consistently
authorJouni Malinen <quic_jouni@quicinc.com>
Sat, 20 Apr 2024 12:58:12 +0000 (15:58 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 20 Apr 2024 12:58:12 +0000 (15:58 +0300)
Include the condition in #else similarly to #endif.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/ap/sta_info.c

index 6e0b6dc98664450b11a0c5c24cae3c61d6f1aec4..b62770735ed4720c6b20ba27e200ae0dd76d715c 100644 (file)
@@ -319,7 +319,7 @@ void ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta)
        if (!ap_sta_is_mld(hapd, sta) ||
            hapd->mld_link_id == sta->mld_assoc_link_id)
                wpa_auth_sta_deinit(sta->wpa_sm);
-#else
+#else /* CONFIG_IEEE80211BE */
        wpa_auth_sta_deinit(sta->wpa_sm);
 #endif /* CONFIG_IEEE80211BE */
 
@@ -905,7 +905,7 @@ static void ap_sta_disconnect_common(struct hostapd_data *hapd,
        if (!hapd->conf->mld_ap ||
            hapd->mld_link_id == sta->mld_assoc_link_id)
                wpa_auth_sta_deinit(sta->wpa_sm);
-#else
+#else /* CONFIG_IEEE80211BE */
        wpa_auth_sta_deinit(sta->wpa_sm);
 #endif /* CONFIG_IEEE80211BE */