drivers/ieee802154: Fix settings channel/tx power in uart pipe driver

Being stopped or not should not be a blocker on these settings (real
hardware can get these settings configured while not being in rx/tx
mode for instance).

Fixes #8528

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2018-07-23 10:59:20 +02:00 committed by Jukka Rissanen
commit 39db4f48d7

View file

@ -193,11 +193,8 @@ static int upipe_cca(struct device *dev)
static int upipe_set_channel(struct device *dev, u16_t channel)
{
struct upipe_context *upipe = dev->driver_data;
if (upipe->stopped) {
return -EIO;
}
ARG_UNUSED(dev);
ARG_UNUSED(channel);
return 0;
}
@ -259,11 +256,8 @@ static int upipe_filter(struct device *dev,
static int upipe_set_txpower(struct device *dev, s16_t dbm)
{
struct upipe_context *upipe = dev->driver_data;
if (upipe->stopped) {
return -EIO;
}
ARG_UNUSED(dev);
ARG_UNUSED(dbm);
return 0;
}