iwinfo: mtk: return txpower for signal

iwinfo: mtk: set quality/quality_max to fixed value
This commit is contained in:
hanwckf 2023-12-05 12:58:52 +08:00
parent cbfb74a070
commit 98cf9c1c47

View File

@ -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,