diff --git a/src/dpp.c b/src/dpp.c index 8bcab1807d2d75cc753a9baef02e408327084e1b..72c96cd4b74156cf7588def69e686336864a1ac4 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? }