From 2e3a7f30adeb3edc0500641ab93b78273192a255 Mon Sep 17 00:00:00 2001 From: Sukru Senli Date: Sat, 28 Nov 2020 15:52:33 +0100 Subject: [PATCH] wifi: adapt OperatingChannelBandwidth get value to WiFi6 --- dmtree/tr181/wifi.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dmtree/tr181/wifi.c b/dmtree/tr181/wifi.c index 862cce03..ec225d0d 100644 --- a/dmtree/tr181/wifi.c +++ b/dmtree/tr181/wifi.c @@ -435,6 +435,14 @@ static int get_WiFiRadio_OperatingChannelBandwidth(char *refparam, struct dmctx *value = "80MHz"; else if (strncmp(*value, "VHT160", 6) == 0) *value = "160MHz"; + else if (strncmp(*value, "HE20", 4) == 0) + *value = "20MHz"; + else if (strncmp(*value, "HE40", 4) == 0) + *value = "40MHz"; + else if (strncmp(*value, "HE80", 4) == 0) + *value = "80MHz"; + else if (strncmp(*value, "HE160", 5) == 0) + *value = "160MHz"; return 0; }