diff options
-rw-r--r-- | src/ap/hw_features.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ap/hw_features.c b/src/ap/hw_features.c index 76c4211..0900e78 100644 --- a/src/ap/hw_features.c +++ b/src/ap/hw_features.c @@ -129,6 +129,8 @@ int hostapd_prepare_rates(struct hostapd_iface *iface, i = 0; while (basic_rates[i] >= 0) i++; + if (i) + i++; /* -1 termination */ os_free(iface->basic_rates); iface->basic_rates = os_malloc(i * sizeof(int)); if (iface->basic_rates) |