aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ap_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ap/ap_list.c')
-rw-r--r--src/ap/ap_list.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ap/ap_list.c b/src/ap/ap_list.c
index f9b1540..287d520 100644
--- a/src/ap/ap_list.c
+++ b/src/ap/ap_list.c
@@ -32,7 +32,8 @@ static int ap_list_beacon_olbc(struct hostapd_iface *iface, struct ap_info *ap)
{
int i;
- if (iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G ||
+ if (iface->current_mode == NULL ||
+ iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G ||
iface->conf->channel != ap->channel)
return 0;