developer | d243af0 | 2023-12-21 14:49:33 +0800 | [diff] [blame] | 1 | From 695e63f81f817c302e4594e44b49e1f7a8c7969c Mon Sep 17 00:00:00 2001 |
developer | dfb5098 | 2023-09-11 13:34:36 +0800 | [diff] [blame] | 2 | From: Michael-CY Lee <michael-cy.lee@mediatek.com> |
| 3 | Date: Fri, 1 Sep 2023 15:31:24 +0800 |
developer | d243af0 | 2023-12-21 14:49:33 +0800 | [diff] [blame] | 4 | Subject: [PATCH 38/54] mtk: hostapd: avoid color switch when beacon is not set |
developer | dfb5098 | 2023-09-11 13:34:36 +0800 | [diff] [blame] | 5 | |
| 6 | Signed-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 | |
| 11 | diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c |
developer | d243af0 | 2023-12-21 14:49:33 +0800 | [diff] [blame] | 12 | index ec7677f6a..2b563a572 100644 |
developer | dfb5098 | 2023-09-11 13:34:36 +0800 | [diff] [blame] | 13 | --- a/src/ap/hostapd.c |
| 14 | +++ b/src/ap/hostapd.c |
developer | d243af0 | 2023-12-21 14:49:33 +0800 | [diff] [blame] | 15 | @@ -4250,7 +4250,7 @@ void hostapd_switch_color(struct hostapd_data *hapd, u64 bitmap) |
developer | dfb5098 | 2023-09-11 13:34:36 +0800 | [diff] [blame] | 16 | { |
| 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 | -- |
| 25 | 2.18.0 |
| 26 | |