simwifi: Fix the error of the return value in wifidriver_set_txpower.

Signed-off-by: liqinhui <liqinhui@xiaomi.com>
This commit is contained in:
liqinhui 2024-07-09 22:45:57 +08:00 committed by Xiang Xiao
parent 91d849b70e
commit 4fa5451595

View file

@ -1119,7 +1119,7 @@ static int wifidriver_get_freq(FAR struct wifi_sim_s *wifidev,
int wifidriver_set_txpower(FAR struct wifi_sim_s *wifidev,
FAR struct iwreq *pwrq)
{
int ret;
int ret = OK;
switch (wifidev->mode)
{