Skip to content
Snippets Groups Projects
Commit e0323739 authored by Jakob Olsson's avatar Jakob Olsson
Browse files

dpp: deprecate channel selection req upon URI recieval

parent 8723e715
Branches
No related tags found
1 merge request!240Dpp cleanup
......@@ -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?
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment