X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/4ccd13ebfa22d9ae1dee2091ee780147088d6eec..feaf88f721ae706a43e144f7b7975d915aad4d7e:/package/hostapd/patches/370-basic_rates.patch diff --git a/package/hostapd/patches/370-basic_rates.patch b/package/hostapd/patches/370-basic_rates.patch index 674e232f5..6c3fafe83 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 +@@ -716,6 +716,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 &&