prevent coredump from the distributed config file.
XXX: pullup-7
This commit is contained in:
parent
b1c65f9623
commit
b5f88169da
6
external/bsd/wpa/dist/src/ap/ap_drv_ops.c
vendored
6
external/bsd/wpa/dist/src/ap/ap_drv_ops.c
vendored
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user