diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-04-20 21:25:14 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-04-20 21:25:14 +0000 |
commit | 605fbb51ce63d72ed682f5fd45589c73d92d86e3 (patch) | |
tree | 9367cce232243ffabbad448c3e0c5d073573b463 | |
parent | fad018cfdd49aaf68e71b8c2ee43a0aaa169a926 (diff) | |
download | mtk-20170518-605fbb51ce63d72ed682f5fd45589c73d92d86e3.zip mtk-20170518-605fbb51ce63d72ed682f5fd45589c73d92d86e3.tar.gz mtk-20170518-605fbb51ce63d72ed682f5fd45589c73d92d86e3.tar.bz2 |
hostapd: fix segmentation fault on non-mac80211 drivers (#7202)
SVN-Revision: 21065
-rw-r--r-- | package/hostapd/patches/370-basic_rates.patch | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/package/hostapd/patches/370-basic_rates.patch b/package/hostapd/patches/370-basic_rates.patch index 674e232..ef4691b 100644 --- a/package/hostapd/patches/370-basic_rates.patch +++ b/package/hostapd/patches/370-basic_rates.patch @@ -1,15 +1,17 @@ --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c -@@ -707,6 +707,14 @@ int hostapd_setup_interface_complete(str +@@ -707,6 +707,16 @@ int hostapd_setup_interface_complete(str } } -+ if (hostapd_prepare_rates(hapd, iface->current_mode)) { -+ wpa_printf(MSG_ERROR, "Failed to prepare rates table."); -+ hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211, ++ if (iface->current_mode) { ++ if (hostapd_prepare_rates(hapd, iface->current_mode)) { ++ wpa_printf(MSG_ERROR, "Failed to prepare rates table."); ++ hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211, + HOSTAPD_LEVEL_WARNING, + "Failed to prepare rates table."); -+ return -1; ++ return -1; ++ } + } + if (hapd->iconf->rts_threshold > -1 && |