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:
parent
4c6b90e317
commit
39db4f48d7
1 changed files with 4 additions and 10 deletions
|
@ -193,11 +193,8 @@ static int upipe_cca(struct device *dev)
|
||||||
|
|
||||||
static int upipe_set_channel(struct device *dev, u16_t channel)
|
static int upipe_set_channel(struct device *dev, u16_t channel)
|
||||||
{
|
{
|
||||||
struct upipe_context *upipe = dev->driver_data;
|
ARG_UNUSED(dev);
|
||||||
|
ARG_UNUSED(channel);
|
||||||
if (upipe->stopped) {
|
|
||||||
return -EIO;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -259,11 +256,8 @@ static int upipe_filter(struct device *dev,
|
||||||
|
|
||||||
static int upipe_set_txpower(struct device *dev, s16_t dbm)
|
static int upipe_set_txpower(struct device *dev, s16_t dbm)
|
||||||
{
|
{
|
||||||
struct upipe_context *upipe = dev->driver_data;
|
ARG_UNUSED(dev);
|
||||||
|
ARG_UNUSED(dbm);
|
||||||
if (upipe->stopped) {
|
|
||||||
return -EIO;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue