|
|
@ -1,9 +1,10 @@ |
|
|
|
--- 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 (iface->current_mode) {
|
|
|
|
+ if (hostapd_prepare_rates(hapd, iface->current_mode)) {
|
|
|
|
+ if (hostapd_prepare_rates(hapd, iface->current_mode)) {
|
|
|
|
+ wpa_printf(MSG_ERROR, "Failed to prepare rates table.");
|
|
|
|
+ wpa_printf(MSG_ERROR, "Failed to prepare rates table.");
|
|
|
|
+ hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211,
|
|
|
|
+ hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211,
|
|
|
@ -11,6 +12,7 @@ |
|
|
|
+ "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 &&
|
|
|
|
hostapd_set_rts(hapd, hapd->iconf->rts_threshold)) {
|
|
|
|
hostapd_set_rts(hapd, hapd->iconf->rts_threshold)) {
|
|
|
|