From d3375fe599da1dd48572354325d3186eccf6f449 Mon Sep 17 00:00:00 2001 From: andrekir Date: Fri, 30 Sep 2022 22:19:22 -0300 Subject: [PATCH] clean up channel_num comment --- config.proto | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/config.proto b/config.proto index c4c5db9..223b2c9 100644 --- a/config.proto +++ b/config.proto @@ -575,19 +575,11 @@ message Config { /* * This is controlling the actual hardware frequency the radio is transmitting on. * Most users should never need to be exposed to this field/concept. - * A channel number between 1 and N (whatever the max is in the current region). + * A channel number between 1 and NUM_CHANNELS (whatever the max is in the current region). * If ZERO then the rule is "use the old channel name hash based * algorithm to derive the channel number") * If using the hash algorithm the channel number will be: hash(channel_name) % * NUM_CHANNELS (Where num channels depends on the regulatory region). - * hash a string into an integer - djb2 by Dan Bernstein. - - * http://www.cse.yorku.ca/~oz/hash.html - * unsigned long hash(char *str) { - * unsigned long hash = 5381; int c; - * while ((c = *str++) != 0) - * hash = ((hash << 5) + hash) + (unsigned char) c; - * return hash; - * } */ uint32 channel_num = 11;