developer | 617abbd | 2024-04-23 14:50:01 +0800 | [diff] [blame^] | 1 | From 7449e88f54fb5e16296399c43c9f758535123cde Mon Sep 17 00:00:00 2001 |
| 2 | From: Michael-CY Lee <michael-cy.lee@mediatek.com> |
| 3 | Date: Fri, 1 Sep 2023 15:31:24 +0800 |
| 4 | Subject: [PATCH 063/104] mtk: hostapd: avoid color switch when beacon is not |
| 5 | set |
| 6 | |
| 7 | Signed-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 | |
| 12 | diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c |
| 13 | index 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 | -- |
| 26 | 2.39.2 |
| 27 | |