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 <j@w1.fi>
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;
}