blob: 23ca582d5a8e8c91de8ecb28045e553184cd9682 [file] [log] [blame]
developerd243af02023-12-21 14:49:33 +08001From 695e63f81f817c302e4594e44b49e1f7a8c7969c Mon Sep 17 00:00:00 2001
developerdfb50982023-09-11 13:34:36 +08002From: Michael-CY Lee <michael-cy.lee@mediatek.com>
3Date: Fri, 1 Sep 2023 15:31:24 +0800
developerd243af02023-12-21 14:49:33 +08004Subject: [PATCH 38/54] mtk: hostapd: avoid color switch when beacon is not set
developerdfb50982023-09-11 13:34:36 +08005
6Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
7---
8 src/ap/hostapd.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c
developerd243af02023-12-21 14:49:33 +080012index ec7677f6a..2b563a572 100644
developerdfb50982023-09-11 13:34:36 +080013--- a/src/ap/hostapd.c
14+++ b/src/ap/hostapd.c
developerd243af02023-12-21 14:49:33 +080015@@ -4250,7 +4250,7 @@ void hostapd_switch_color(struct hostapd_data *hapd, u64 bitmap)
developerdfb50982023-09-11 13:34:36 +080016 {
17 struct os_reltime now;
18
19- if (hapd->cca_in_progress)
20+ if (hapd->cca_in_progress || !hapd->beacon_set_done)
21 return;
22
23 if (os_get_reltime(&now))
24--
252.18.0
26