remove rfill plugins, these are not implemented yet
This commit is contained in:
parent
928a53718b
commit
ef52d3eae2
3 changed files with 0 additions and 78 deletions
|
|
@ -1,13 +0,0 @@
|
|||
import rfkill
|
||||
|
||||
class BluetoothPlugin(rfkill.RFKillPlugin):
|
||||
"""
|
||||
Plugin for tuning bluetooth devices.
|
||||
"""
|
||||
|
||||
#
|
||||
# TODO: ticket #24
|
||||
#
|
||||
|
||||
def _post_init(self):
|
||||
self._dynamic_tuning = False
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
import rfkill
|
||||
from decorators import *
|
||||
#import tuned.logs
|
||||
|
||||
#log = tuned.logs.get()
|
||||
|
||||
class WirelessPlugin(rfkill.RFKillPlugin):
|
||||
"""
|
||||
Plugin for setting wireless powersaving options.
|
||||
"""
|
||||
|
||||
def _post_init(self):
|
||||
self._dynamic_tuning = False
|
||||
|
||||
@classmethod
|
||||
def _get_default_options(cls):
|
||||
return {
|
||||
"power_level" : None,
|
||||
}
|
||||
|
||||
@command_set("power_level", per_device=True)
|
||||
def _set_power_level(self, value, device):
|
||||
# TODO: not implemented ticket #26
|
||||
# 1. iwpriv <interface> set_power <power_level>
|
||||
# 2. /sys/bus/pci/devices/*/power_level
|
||||
log.warn("setting wifi power_level is not implemented, ticket #26")
|
||||
|
||||
@command_get("power_level")
|
||||
def _get_power_level(self, device):
|
||||
return None
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
import base
|
||||
from decorators import *
|
||||
import tuned.logs
|
||||
|
||||
log = tuned.logs.get()
|
||||
|
||||
class RFKillPlugin(base.Plugin):
|
||||
"""
|
||||
Base class for plugins which can be enabled/disabled using rfkill.
|
||||
"""
|
||||
|
||||
#
|
||||
# TODO: ticket #25
|
||||
#
|
||||
|
||||
@classmethod
|
||||
def _get_default_options(cls):
|
||||
return {
|
||||
"disable" : None,
|
||||
}
|
||||
|
||||
def _rfkill_device_type(self):
|
||||
raise NotImplementedError()
|
||||
|
||||
def _rfkill_devices(self):
|
||||
# rfkill list <self._rfkill_device_type()>
|
||||
return []
|
||||
|
||||
@command_set("disable", per_device=True)
|
||||
def _set_disabled(self, value, device):
|
||||
log.warn("RF killing is not implemented, ticket #25")
|
||||
|
||||
@command_get("disable")
|
||||
def _get_disabled(self, device):
|
||||
return False
|
||||
Loading…
Reference in a new issue