From d26cf63d0b4457574a2de7378e3d6e56269fd879 Mon Sep 17 00:00:00 2001 From: Amin Ben Ramdhane Date: Mon, 21 Sep 2020 00:14:23 +0100 Subject: [PATCH] WiFi: fix issue and update json file --- dmtree/tr181/wifi.c | 6 +++--- json/tr181.json | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dmtree/tr181/wifi.c b/dmtree/tr181/wifi.c index e89833b0..20f9c610 100644 --- a/dmtree/tr181/wifi.c +++ b/dmtree/tr181/wifi.c @@ -328,7 +328,7 @@ static int get_WiFiRadio_MaxSupportedAssociations(char *refparam, struct dmctx * return 0; } -/*#Device.WiFi.Radio.{i}.FragmentationThreshold!UCI:wireless/wifi-device,@i-1/frag*/ +/*#Device.WiFi.Radio.{i}.FragmentationThreshold!UCI:wireless/wifi-device,@i-1/frag_threshold*/ static int get_WiFiRadio_FragmentationThreshold(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value) { *value = dmuci_get_value_by_section_fallback_def(((struct wifi_radio_args *)data)->wifi_radio_sec, "frag_threshold", "2346"); @@ -349,7 +349,7 @@ static int set_WiFiRadio_FragmentationThreshold(char *refparam, struct dmctx *ct return 0; } -/*#Device.WiFi.Radio.{i}.RTSThreshold!UCI:wireless/wifi-device,@i-1/rts*/ +/*#Device.WiFi.Radio.{i}.RTSThreshold!UCI:wireless/wifi-device,@i-1/rts_threshold*/ static int get_WiFiRadio_RTSThreshold(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value) { *value = dmuci_get_value_by_section_fallback_def(((struct wifi_radio_args *)data)->wifi_radio_sec, "rts_threshold", "2347"); @@ -458,7 +458,7 @@ static int set_WiFiRadio_OperatingChannelBandwidth(char *refparam, struct dmctx static int get_WiFiRadio_PreambleType(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value) { dmuci_get_value_by_section_string(((struct wifi_radio_args *)data)->wifi_radio_sec, "short_preamble", value); - *value = ((*value)[0] == '0') ? "short" : "long"; + *value = ((*value)[0] == '1') ? "short" : "long"; return 0; } diff --git a/json/tr181.json b/json/tr181.json index 3b7e12a2..16985634 100644 --- a/json/tr181.json +++ b/json/tr181.json @@ -29946,7 +29946,7 @@ "index": "@i-1" }, "option": { - "name": "frag" + "name": "frag_threshold" } } } @@ -29972,7 +29972,7 @@ "index": "@i-1" }, "option": { - "name": "rts" + "name": "rts_threshold" } } }