From cd524ecb14fd66cb809c7a79a146b284b600dabc Mon Sep 17 00:00:00 2001 From: vdutta Date: Thu, 16 Mar 2023 10:04:07 +0530 Subject: [PATCH] Fix registrar band for 6GHz --- dmtree/tr181/ieee1905.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmtree/tr181/ieee1905.c b/dmtree/tr181/ieee1905.c index dffa1cab..6597b504 100644 --- a/dmtree/tr181/ieee1905.c +++ b/dmtree/tr181/ieee1905.c @@ -411,7 +411,7 @@ static int get_IEEE1905AL_RegistrarFreqBand(char *refparam, struct dmctx *ctx, v list_bands[0] = 0; dmjson_foreach_value_in_array(res, registrar_band, band, idx, 1, "registrar_band") { - pos += snprintf(&list_bands[pos], sizeof(list_bands) - pos, "802.11 %s GHz,", (*band == '2') ? "2.4" : (*band == '5') ? "5" : "60"); + pos += snprintf(&list_bands[pos], sizeof(list_bands) - pos, "802.11 %s GHz,", (*band == '2') ? "2.4" : band); } if (pos)