Signed-off-by: wujun <2019125625@qq.com>
This commit is contained in:
wujun 2023-12-07 21:36:51 +08:00
commit dd35d8572c
2 changed files with 2 additions and 9 deletions

View File

@ -39,10 +39,6 @@ if (defined(ohos_lite)) {
shared_library("wifi_power_saving_service") {
sources = local_base_sources
include_dirs = local_base_include_dirs
include_dirs += [
"//foundation/ability/ability_base/interfaces/kits/native/configuration/include",
"//foundation/appexecfwk/adapter/interfaces/innerkits/appexecfwk_base/include",
]
deps = [
"$WIFI_ROOT_DIR/services/wifi_standard/wifi_framework/wifi_toolkit:wifi_toolkit",
@ -82,10 +78,6 @@ if (defined(ohos_lite)) {
install_enable = true
sources = local_base_sources
include_dirs = local_base_include_dirs
include_dirs += [
"//foundation/ability/ability_base/interfaces/kits/native/configuration/include",
"//foundation/appexecfwk/adapter/interfaces/innerkits/appexecfwk_base/include",
]
deps = [
"$WIFI_ROOT_DIR/services/wifi_standard/wifi_framework/wifi_toolkit:wifi_toolkit",

View File

@ -66,7 +66,7 @@ void RxListenArbitration::CheckRxListenSwitch()
std::string param;
std::string ifName = "wlan0";
if ((m_arbitrationCond == 0) && !m_isRxListenOn) {
param = ENABLE_RX_LISTENER;
param = ENABLE_RX_LISTEN;
if (WifiPowerCmdClient::GetInstance().SendCmdToDriver(ifName, CMD_SET_RX_LISTEN_POWER_SAVING_SWITCH,
param) != 0) {
WIFI_LOGE("%{public}s enable rx_listen fail", __FUNCTION__);
@ -75,6 +75,7 @@ void RxListenArbitration::CheckRxListenSwitch()
m_isRxListenOn = true;
WIFI_LOGD("%{public}s enable rx_listen successful", __FUNCTION__);
} else if ((m_arbitrationCond != 0) && m_isRxListenOn) {
param = DISABLE_RX_LISTEN;
if (WifiPowerCmdClient::GetInstance().SendCmdToDriver(ifName, CMD_SET_RX_LISTEN_POWER_SAVING_SWITCH,
param) != 0) {
WIFI_LOGE("%{public}s disable rx_listen fail", __FUNCTION__);