blob: e1384d9c124d2da34f2e55ad699de8928a140936 [file] [log] [blame]
developer617abbd2024-04-23 14:50:01 +08001From 7449e88f54fb5e16296399c43c9f758535123cde Mon Sep 17 00:00:00 2001
2From: Michael-CY Lee <michael-cy.lee@mediatek.com>
3Date: Fri, 1 Sep 2023 15:31:24 +0800
4Subject: [PATCH 063/104] mtk: hostapd: avoid color switch when beacon is not
5 set
6
7Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
8---
9 src/ap/hostapd.c | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c
13index db451387b..0d4b79b48 100644
14--- a/src/ap/hostapd.c
15+++ b/src/ap/hostapd.c
16@@ -4707,7 +4707,7 @@ void hostapd_switch_color(struct hostapd_data *hapd, u64 bitmap)
17 {
18 struct os_reltime now;
19
20- if (hapd->cca_in_progress)
21+ if (hapd->cca_in_progress || !hapd->beacon_set_done)
22 return;
23
24 if (os_get_reltime(&now))
25--
262.39.2
27