From 98cf9c1c47cc3e9225edbba9867ea625aa4e63cd Mon Sep 17 00:00:00 2001 From: hanwckf Date: Tue, 5 Dec 2023 12:58:52 +0800 Subject: [PATCH] iwinfo: mtk: return txpower for signal iwinfo: mtk: set quality/quality_max to fixed value --- package/network/utils/iwinfo/src/iwinfo_mtk.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/package/network/utils/iwinfo/src/iwinfo_mtk.c b/package/network/utils/iwinfo/src/iwinfo_mtk.c index adab11846e..ae96a23bf1 100644 --- a/package/network/utils/iwinfo/src/iwinfo_mtk.c +++ b/package/network/utils/iwinfo/src/iwinfo_mtk.c @@ -258,7 +258,7 @@ static int mtk_get_txpower(const char *dev, int *buf) static int mtk_get_signal(const char *dev, int *buf) { - return -1; + return mtk_get_txpower(dev, buf); } static int mtk_get_noise(const char *dev, int *buf) @@ -268,12 +268,14 @@ static int mtk_get_noise(const char *dev, int *buf) static int mtk_get_quality(const char *dev, int *buf) { - return -1; + *buf = 100; + return 0; } static int mtk_get_quality_max(const char *dev, int *buf) { - return -1; + *buf = 100; + return 0; } static void fill_rate_info(HTTRANSMIT_SETTING HTSetting, struct iwinfo_rate_entry *re,