From: Jouni Malinen Date: Sat, 18 Oct 2025 09:01:38 +0000 (+0300) Subject: Check end of new basic_rates int_array encoding correctly X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10bf96b8abecb04362b2f0a4a0baa0ca274b14d1;p=thirdparty%2Fhostap.git Check end of new basic_rates int_array encoding correctly This place was missed when replacing the basic_rates encoding in hostapd configuration to use the 0 terminated style. Fixes: a3c1804d4112 ("Replace configuration int lists with int_arrays") Signed-off-by: Jouni Malinen --- diff --git a/src/ap/sta_info.c b/src/ap/sta_info.c index efeb64d1d..bf48747c6 100644 --- a/src/ap/sta_info.c +++ b/src/ap/sta_info.c @@ -884,7 +884,7 @@ struct sta_info * ap_sta_add(struct hostapd_data *hapd, const u8 *addr) for (i = 0; i < WLAN_SUPP_RATES_MAX; i++) { if (!hapd->iface->basic_rates) break; - if (hapd->iface->basic_rates[i] < 0) + if (hapd->iface->basic_rates[i] <= 0) break; sta->supported_rates[i] = hapd->iface->basic_rates[i] / 5; }