mirror of
https://gitee.com/openharmony/communication_wifi.git
synced 2024-12-18 20:40:11 +00:00
gn file
Signed-off-by: wujun <2019125625@qq.com>
This commit is contained in:
commit
dd35d8572c
@ -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",
|
||||
|
@ -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__);
|
||||
|
Loading…
Reference in New Issue
Block a user