mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 07:03:21 +02:00
hostapd: fix segmentation fault on non-mac80211 drivers (#7202)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21065 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
1ffbdd6858
commit
09eb5bc27f
@ -1,15 +1,17 @@
|
|||||||
--- a/src/ap/hostapd.c
|
--- a/src/ap/hostapd.c
|
||||||
+++ b/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)) {
|
+ if (iface->current_mode) {
|
||||||
+ wpa_printf(MSG_ERROR, "Failed to prepare rates table.");
|
+ if (hostapd_prepare_rates(hapd, iface->current_mode)) {
|
||||||
+ hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211,
|
+ wpa_printf(MSG_ERROR, "Failed to prepare rates table.");
|
||||||
|
+ hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211,
|
||||||
+ HOSTAPD_LEVEL_WARNING,
|
+ HOSTAPD_LEVEL_WARNING,
|
||||||
+ "Failed to prepare rates table.");
|
+ "Failed to prepare rates table.");
|
||||||
+ return -1;
|
+ return -1;
|
||||||
|
+ }
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
if (hapd->iconf->rts_threshold > -1 &&
|
if (hapd->iconf->rts_threshold > -1 &&
|
||||||
|
Loading…
Reference in New Issue
Block a user