[PATCH] NAN: Fix channel peer schedule channel filtering
Andrei Otcheretianski
andrei.otcheretianski at intel.com
Thu May 7 12:11:28 PDT 2026
Channel filtering should be done for any operating class of course.
The code was misplaced. Fix it.
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski at intel.com>
---
src/nan/nan.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/nan/nan.c b/src/nan/nan.c
index 140785729d..04cc47be90 100644
--- a/src/nan/nan.c
+++ b/src/nan/nan.c
@@ -2244,13 +2244,13 @@ nan_peer_get_committed_avail_add(const struct nan_data *nan,
freq = freq - 70 + idx * 20;
/* TODO: Missing support for 80 + 80 */
-
- /* Skip channels that are not in local schedule */
- if (local_sched &&
- !nan_peer_channel_in_local_sched(nan, freq, local_sched))
- return;
}
+ /* Skip channels that are not in local schedule */
+ if (local_sched &&
+ !nan_peer_channel_in_local_sched(nan, freq, local_sched))
+ return;
+
/* Assume committed for conditional slots if setup is done */
committed = (avail->type == NAN_AVAIL_ENTRY_CTRL_TYPE_COMMITTED) ||
(avail->type == NAN_AVAIL_ENTRY_CTRL_TYPE_COND &&
--
2.53.0
More information about the Hostap
mailing list