Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/wpa/dist/src/ap prevent coredump from the distr...
details: https://anonhg.NetBSD.org/src/rev/7abb7948dd92
branches: trunk
changeset: 336623:7abb7948dd92
user: christos <christos%NetBSD.org@localhost>
date: Sat Mar 07 22:31:24 2015 +0000
description:
prevent coredump from the distributed config file.
XXX: pullup-7
diffstat:
external/bsd/wpa/dist/src/ap/ap_drv_ops.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r 2732d3877c5b -r 7abb7948dd92 external/bsd/wpa/dist/src/ap/ap_drv_ops.c
--- a/external/bsd/wpa/dist/src/ap/ap_drv_ops.c Sat Mar 07 22:13:16 2015 +0000
+++ b/external/bsd/wpa/dist/src/ap/ap_drv_ops.c Sat Mar 07 22:31:24 2015 +0000
@@ -569,7 +569,8 @@
{
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 @@
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,
Home |
Main Index |
Thread Index |
Old Index