From e03237396c3f78fbc50fbe889925e758a853fe9e Mon Sep 17 00:00:00 2001 From: Jakob Olsson <jakob.olsson@iopsys.eu> Date: Mon, 22 May 2023 17:20:17 +0200 Subject: [PATCH] dpp: deprecate channel selection req upon URI recieval --- src/dpp.c | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/src/dpp.c b/src/dpp.c index 8bcab180..72c96cd4 100644 --- a/src/dpp.c +++ b/src/dpp.c @@ -706,32 +706,10 @@ struct dpp_enrollee *dpp_process_new_uri(struct controller *c, char *uri) return NULL; } if (e->num_chan) { - struct node *n = NULL; - e->band = wifi_channel_to_band(e->chan[0].channel); - /* need to swap to a channel that is supported in chanlist - * off-operating channel dpp_listen is not supported + /* need to off-channel listen not yet supported by current + * hostapd version used */ - - // TODO: algorithm - list_for_each_entry(n, &c->nodelist, list) { - struct netif_radio *r = NULL; - - list_for_each_entry(r, &n->radiolist, list) { - if (r->radio_el->band == e->band) { - cntrl_send_channel_selection(c, n->alid, - r->radio_el->macaddr, - e->chan[0].channel, - e->chan[0].opclass, - 15); - } - } - } - - // announce channel swap via CMDU - // trigger ubus API to swap to first commonly supported channel -- done - // prevent any further channel swaps within arbitrary time (1 minute?) - // some kind of check after 1 minute, swap to first any non-onboarded enrollee ch? } -- GitLab