From b5f88169da6bbf911a389ced33d93773e321af96 Mon Sep 17 00:00:00 2001 From: christos Date: Sat, 7 Mar 2015 22:31:24 +0000 Subject: [PATCH] prevent coredump from the distributed config file. XXX: pullup-7 --- external/bsd/wpa/dist/src/ap/ap_drv_ops.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/external/bsd/wpa/dist/src/ap/ap_drv_ops.c b/external/bsd/wpa/dist/src/ap/ap_drv_ops.c index cc4ac102ae66..1f74f9ff84e4 100644 --- a/external/bsd/wpa/dist/src/ap/ap_drv_ops.c +++ b/external/bsd/wpa/dist/src/ap/ap_drv_ops.c @@ -569,7 +569,8 @@ int hostapd_set_freq(struct hostapd_data *hapd, int mode, int freq, { struct hostapd_freq_params data; - if (hostapd_set_freq_params(&data, mode, freq, channel, ht_enabled, + if (hapd->iface->current_mode && + hostapd_set_freq_params(&data, mode, freq, channel, ht_enabled, vht_enabled, sec_channel_offset, vht_oper_chwidth, center_segment0, center_segment1, @@ -765,7 +766,8 @@ int hostapd_start_dfs_cac(struct hostapd_iface *iface, int mode, int freq, return -1; } - if (hostapd_set_freq_params(&data, mode, freq, channel, ht_enabled, + if (iface->current_mode && + hostapd_set_freq_params(&data, mode, freq, channel, ht_enabled, vht_enabled, sec_channel_offset, vht_oper_chwidth, center_segment0, center_segment1,