diff --git a/src/ap/hw_features.c b/src/ap/hw_features.c index bb5404fa7..4b66b02f4 100644 --- a/src/ap/hw_features.c +++ b/src/ap/hw_features.c @@ -838,6 +838,8 @@ static int hostapd_is_usable_edmg(struct hostapd_iface *iface) iface->freq, NULL, iface->hw_features, iface->num_hw_features); + if (!pri_chan) + return 0; hostapd_encode_edmg_chan(iface->conf->enable_edmg, iface->conf->edmg_channel, pri_chan->chan,