From 162d91c4b96b74d248eb2f696c19a757a4269247 Mon Sep 17 00:00:00 2001 From: Raphael <68374617+raphaelscholle@users.noreply.github.com> Date: Thu, 24 Oct 2024 22:14:38 +0200 Subject: [PATCH] Update ioctl_cfg80211.c --- os_dep/linux/ioctl_cfg80211.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index 38f4cd1..fe79a83 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -4865,13 +4865,14 @@ static int cfg80211_rtw_set_txpower(struct wiphy *wiphy, } // OpenHD #if 1 - // openhd_override_tx_power_mbm=get_openhd_override_tx_power_mbm(); - if(openhd_override_tx_power_mbm){ - // wiphy_data->txpwr_total_lmt_mbm = UNSPECIFIED_MBM; - // wiphy_data->txpwr_total_target_mbm= openhd_override_tx_power_mbm; - // If the chip cannot do the requested tx power, the driver just seems to set tx power index 63" - RTW_WARN("Using openhd_override_tx_power_mbm %d",openhd_override_tx_power_mbm); - } + openhd_override_tx_power_mbm=get_openhd_override_tx_power_mbm(); + RTW_WARN("Using openhd_override_tx_power_mbm %d",openhd_override_tx_power_mbm); + // if(openhd_override_tx_power_mbm){ + // // wiphy_data->txpwr_total_lmt_mbm = UNSPECIFIED_MBM; + // // wiphy_data->txpwr_total_target_mbm= openhd_override_tx_power_mbm; + // // If the chip cannot do the requested tx power, the driver just seems to set tx power index 63" + // RTW_WARN("Using openhd_override_tx_power_mbm %d",openhd_override_tx_power_mbm); + // } #endif RTW_WARN(FUNC_WIPHY_FMT" OpenHD cf80211 tx power %s txpwr_total_lmt_mbm:%d txpwr_total_target_mbm%d openhd_override_tx_power_mbm:%d\n", FUNC_WIPHY_ARG(wiphy) , nl80211_tx_power_setting_str(type), wiphy_data->txpwr_total_lmt_mbm,wiphy_data->txpwr_total_target_mbm,