mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-30 18:07:52 +00:00
hostapd: fix phy level max-assoc settings
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
13
feeds/wifi-ax/hostapd/patches/780-maxassoc.patch
Normal file
13
feeds/wifi-ax/hostapd/patches/780-maxassoc.patch
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
Index: hostapd-2021-02-20-59e9794c/src/ap/sta_info.c
|
||||||
|
===================================================================
|
||||||
|
--- hostapd-2021-02-20-59e9794c.orig/src/ap/sta_info.c
|
||||||
|
+++ hostapd-2021-02-20-59e9794c/src/ap/sta_info.c
|
||||||
|
@@ -717,7 +717,7 @@ struct sta_info * ap_sta_add(struct host
|
||||||
|
return sta;
|
||||||
|
|
||||||
|
wpa_printf(MSG_DEBUG, " New STA");
|
||||||
|
- if (hapd->num_sta >= hapd->conf->max_num_sta) {
|
||||||
|
+ if (hostapd_check_max_sta(hapd)) {
|
||||||
|
/* FIX: might try to remove some old STAs first? */
|
||||||
|
wpa_printf(MSG_DEBUG, "no more room for new STAs (%d/%d)",
|
||||||
|
hapd->num_sta, hapd->conf->max_num_sta);
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
From c56a1d430f797495d23829547b3cf595d8282c19 Mon Sep 17 00:00:00 2001
|
||||||
|
From: John Crispin <john@phrozen.org>
|
||||||
|
Date: Mon, 2 May 2022 08:46:19 +0200
|
||||||
|
Subject: [PATCH] hostapd: fix phy level max-assoc settings
|
||||||
|
|
||||||
|
Signed-off-by: John Crispin <john@phrozen.org>
|
||||||
|
---
|
||||||
|
.../services/hostapd/patches/780-maxassoc.patch | 13 +++++++++++++
|
||||||
|
1 file changed, 13 insertions(+)
|
||||||
|
create mode 100644 package/network/services/hostapd/patches/780-maxassoc.patch
|
||||||
|
|
||||||
|
diff --git a/package/network/services/hostapd/patches/780-maxassoc.patch b/package/network/services/hostapd/patches/780-maxassoc.patch
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000000..98840f382a
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/package/network/services/hostapd/patches/780-maxassoc.patch
|
||||||
|
@@ -0,0 +1,13 @@
|
||||||
|
+Index: hostapd-2021-02-20-59e9794c/src/ap/sta_info.c
|
||||||
|
+===================================================================
|
||||||
|
+--- hostapd-2021-02-20-59e9794c.orig/src/ap/sta_info.c
|
||||||
|
++++ hostapd-2021-02-20-59e9794c/src/ap/sta_info.c
|
||||||
|
+@@ -717,7 +717,7 @@ struct sta_info * ap_sta_add(struct host
|
||||||
|
+ return sta;
|
||||||
|
+
|
||||||
|
+ wpa_printf(MSG_DEBUG, " New STA");
|
||||||
|
+- if (hapd->num_sta >= hapd->conf->max_num_sta) {
|
||||||
|
++ if (hostapd_check_max_sta(hapd)) {
|
||||||
|
+ /* FIX: might try to remove some old STAs first? */
|
||||||
|
+ wpa_printf(MSG_DEBUG, "no more room for new STAs (%d/%d)",
|
||||||
|
+ hapd->num_sta, hapd->conf->max_num_sta);
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
||||||
Reference in New Issue
Block a user